Skip to content

Commit

Permalink
downgrade Go to version 1.21.1
Browse files Browse the repository at this point in the history
Signed-off-by: xy [email protected]
  • Loading branch information
XunyiiZ committed Apr 11, 2024
1 parent 5143a83 commit 3e7b45d
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 33 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
name: Build setup scripts
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Check out the code
uses: actions/checkout@v4
Expand All @@ -35,4 +35,4 @@ jobs:

- name: Show scripts help info
run: ./scripts/setup_tool -h


4 changes: 2 additions & 2 deletions .github/workflows/cri_minio_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cri_stock_containerd_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up golang
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Build setup scripts
run: pushd scripts && go build -o setup_tool && popd
Expand All @@ -50,4 +50,4 @@ jobs:

- name: Cleaning
if: ${{ always() }}
run: ./scripts/github_runner/clean_cri_runner.sh stock-only
run: ./scripts/github_runner/clean_cri_runner.sh stock-only
5 changes: 2 additions & 3 deletions .github/workflows/cri_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
runs-on: ${{ fromJSON(format('["self-hosted", "{0}-cri"]', inputs.sandbox)) }}

steps:

- name: Host Info
run: |
echo $HOSTNAME
Expand All @@ -31,8 +30,8 @@ jobs:
- name: Set up golang
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: "1.21"

- name: Add rsync
run: |
sudo apt update
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
test-name: [test, test-man-bench]
steps:

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Set up Python 3.x
uses: actions/setup-python@v5
Expand Down Expand Up @@ -81,4 +81,4 @@ jobs:
- name: Cleaning
if: ${{ always() }}
run: ./scripts/setup_tool clean_fcctr
run: ./scripts/setup_tool clean_fcctr
10 changes: 5 additions & 5 deletions .github/workflows/nightly_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Upgrade git
run: |
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down Expand Up @@ -109,4 +109,4 @@ jobs:
- name: Cleaning
if: ${{ always() }}
run: ./scripts/github_runner/clean_cri_runner.sh
run: ./scripts/github_runner/clean_cri_runner.sh
6 changes: 3 additions & 3 deletions .github/workflows/openyurt-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Check out the code
uses: actions/checkout@v4
Expand All @@ -38,4 +38,4 @@ jobs:
run: |
cd scripts/openyurt-deployer
chmod +x unit_test_workflow.sh
./unit_test_workflow.sh
./unit_test_workflow.sh
6 changes: 3 additions & 3 deletions .github/workflows/stargz_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
- name: Checkout LFS objects
run: git lfs checkout

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Build setup scripts
run: pushd scripts && go build -o setup_tool && popd
Expand Down Expand Up @@ -79,4 +79,4 @@ jobs:
run: kn service apply stargz-test -f ./configs/knative_workloads/stargz-node.yaml --concurrency-target 1

- name: Curl container
run: curl http://stargz-test.default.127.0.0.1.sslip.io | grep "Hello World"
run: curl http://stargz-test.default.127.0.0.1.sslip.io | grep "Hello World"
14 changes: 7 additions & 7 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
module: [misc, networking, snapshotting]
steps:

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Set up Python 3.x
uses: actions/setup-python@v5
Expand Down Expand Up @@ -74,10 +74,10 @@ jobs:
module: [profile]
steps:

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Set up Python 3.x
uses: actions/setup-python@v5
Expand Down Expand Up @@ -122,10 +122,10 @@ jobs:
module: [ ctriface, ctriface/image, devmapper ]
steps:

- name: Set up Go 1.22
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.21'

- name: Upgrade git
run: |
Expand Down Expand Up @@ -163,4 +163,4 @@ jobs:
- name: Cleaning
if: ${{ always() }}
run: ./scripts/setup_tool clean_fcctr
run: ./scripts/setup_tool clean_fcctr
2 changes: 1 addition & 1 deletion configs/setup/system.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"GoVersion": "1.22.0",
"GoVersion": "1.21.1",
"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",
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ 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.22.0`. 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.21.1`. You can configure the version to install in `configs/setup/system.json` as `GoVersion`)
```bash
./scripts/install_go.sh; source /etc/profile
```
Expand Down

0 comments on commit 3e7b45d

Please sign in to comment.