From ab54586349446306f6d0be1cda3f82d7924ef0fe Mon Sep 17 00:00:00 2001 From: Leonid Kondrashov Date: Sat, 16 Nov 2024 15:41:04 +0800 Subject: [PATCH] Bump go to 1.22 Signed-off-by: Leonid Kondrashov --- .github/workflows/build.yml | 2 +- CHANGELOG.md | 4 ++++ configs/setup/system.json | 2 +- docs/knative/update_kn.md | 2 +- docs/quickstart_guide.md | 4 ++-- go.mod | 2 +- go.work | 6 ++++-- go.work.sum | 7 +++++++ power_manager/go.mod | 2 +- scripts/github_runner/go.mod | 2 +- scripts/go.mod | 2 +- scripts/openyurt-deployer/go.mod | 2 +- 12 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6aeb3bec4..9b90864d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: build: strategy: matrix: - go: ['1.21', '1.22'] + go: ['1.22', '1.23'] # Build all variants regardless of failures fail-fast: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 5896b6b70..bd3f6fdc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ ### Fixed +- Fix IP choice for CloudLab clusters to use the internal network interface for control plane communication. +- Fix disk issues on CloudLab profiles after restart. +- Bump Go to 1.22. + ## Release v1.7.1 ### Added diff --git a/configs/setup/system.json b/configs/setup/system.json index 4357b8a4d..df4b8bd1a 100644 --- a/configs/setup/system.json +++ b/configs/setup/system.json @@ -1,5 +1,5 @@ { - "GoVersion": "1.21.9", + "GoVersion": "1.22.9", "GoDownloadUrlTemplate": "https://go.dev/dl/go%s.linux-%s.tar.gz", "ContainerdVersion": "1.6.18", "ContainerdDownloadUrlTemplate": "https://github.com/containerd/containerd/releases/download/v%s/containerd-%s-linux-%s.tar.gz", diff --git a/docs/knative/update_kn.md b/docs/knative/update_kn.md index 7b3244b5a..d1e9a04a0 100644 --- a/docs/knative/update_kn.md +++ b/docs/knative/update_kn.md @@ -7,7 +7,7 @@ This guide describes how to make changes to Knative Serving and use the changed wget -qO- https://github.com/google/ko/releases/download/v0.15.1/ko_0.15.1_Linux_x86_64.tar.gz | sudo tar -C /usr/bin/ -xz ko sudo chmod +x /usr/bin/ko ``` - 2. Install `go` (1.21 or later). + 2. Install `go` (1.22 or later). 3. Install `git`; already installed on CloudLab. 4. Login to Docker Hub account that the Knative images will be pushed to. ```sh diff --git a/docs/quickstart_guide.md b/docs/quickstart_guide.md index 28c510820..db22d9e0b 100644 --- a/docs/quickstart_guide.md +++ b/docs/quickstart_guide.md @@ -45,12 +45,12 @@ SSD-equipped nodes are highly recommended. Full list of CloudLab nodes can be fo ### 4. Go Installation -If you intend to build the setup scripts from source, you need to install go by running: (This will install version `1.21.1`. You can configure the version to install in `configs/setup/system.json` as `GoVersion`) +If you intend to build the setup scripts from source, you need to install go by running: (This will install version `1.22.9`. You can configure the version to install in `configs/setup/system.json` as `GoVersion`) ```bash ./scripts/install_go.sh; source /etc/profile ``` -Another option is to install using official instructions: [https://golang.org/doc/install](https://golang.org/doc/install). Note that the version should be at least `1.21`. +Another option is to install using official instructions: [https://golang.org/doc/install](https://golang.org/doc/install). Note that the version should be at least `1.22`. - Confirm the installation: ```bash diff --git a/go.mod b/go.mod index 40c1b484f..16b2d83f6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vhive-serverless/vhive -go 1.21 +go 1.22.9 // Copied from firecracker-containerd replace ( diff --git a/go.work b/go.work index cc41a9ca3..b13317f5b 100644 --- a/go.work +++ b/go.work @@ -1,9 +1,11 @@ -go 1.21 +go 1.22.9 + +toolchain go1.23.3 use ( . + ./power_manager ./scripts ./scripts/github_runner ./scripts/openyurt-deployer - ./power_manager ) diff --git a/go.work.sum b/go.work.sum index 2cb4baf1b..aa5238c23 100644 --- a/go.work.sum +++ b/go.work.sum @@ -215,6 +215,10 @@ golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= +golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= +golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp/shiny v0.0.0-20230801115018-d63ba01acd4b/go.mod h1:UH99kUObWAZkDnWqppdQe5ZhPYESUw8I0zVV1uWBR+0= golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -259,10 +263,13 @@ golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= +golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/power_manager/go.mod b/power_manager/go.mod index e7c1237ab..add720425 100644 --- a/power_manager/go.mod +++ b/power_manager/go.mod @@ -1,3 +1,3 @@ module github.com/vhive-serverless/vhive/power_manager -go 1.21 +go 1.22.9 diff --git a/scripts/github_runner/go.mod b/scripts/github_runner/go.mod index ac79bf939..69f5c2820 100644 --- a/scripts/github_runner/go.mod +++ b/scripts/github_runner/go.mod @@ -1,6 +1,6 @@ module github.com/vhive-serverless/vhive/scripts/github_runner/deploy_runners -go 1.21 +go 1.22.9 require ( github.com/sfreiberg/simplessh v0.0.0-20220719182921-185eafd40485 diff --git a/scripts/go.mod b/scripts/go.mod index 08a4a2957..6793229b3 100644 --- a/scripts/go.mod +++ b/scripts/go.mod @@ -1,3 +1,3 @@ module github.com/vhive-serverless/vHive/scripts -go 1.21 +go 1.22.9 diff --git a/scripts/openyurt-deployer/go.mod b/scripts/openyurt-deployer/go.mod index 0982cc612..38752ab3d 100644 --- a/scripts/openyurt-deployer/go.mod +++ b/scripts/openyurt-deployer/go.mod @@ -1,6 +1,6 @@ module github.com/vhive-serverless/vhive/scripts/openyurt_deployer -go 1.21 +go 1.22.9 require ( github.com/sfreiberg/simplessh v0.0.0-20220719182921-185eafd40485