Skip to content

Commit c6e8482

Browse files
mx-psipovilasv
authored andcommitted
[chore] Use 'stable' and 'oldstable' to refer to Go versions (open-telemetry#41538)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Same as open-telemetry/opentelemetry-collector/pull/13461
1 parent 1247ed6 commit c6e8482

15 files changed

+41
-41
lines changed

.github/workflows/build-and-test-arm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4949
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
5050
with:
51-
go-version: 1.23.10
51+
go-version: oldstable
5252
cache: false
5353
- name: Cache Go
5454
id: go-cache
@@ -122,7 +122,7 @@ jobs:
122122
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
123123
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
124124
with:
125-
go-version: 1.23.10
125+
go-version: oldstable
126126
cache: false
127127
- name: Cache Go
128128
id: go-cache

.github/workflows/build-and-test-darwin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3636
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3737
with:
38-
go-version: 1.23.10
38+
go-version: oldstable
3939
cache: false
4040
- name: Cache Go
4141
id: go-cache
@@ -77,7 +77,7 @@ jobs:
7777
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7878
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
7979
with:
80-
go-version: 1.23.10
80+
go-version: oldstable
8181
cache: false
8282
- name: Install Tools
8383
if: steps.go-cache.outputs.cache-hit != 'true'

.github/workflows/build-and-test-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools
6161
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
6262
with:
63-
go-version: 1.23.10
63+
go-version: oldstable
6464
cache: false
6565
- name: Cache Go
6666
id: go-mod-cache
@@ -138,7 +138,7 @@ jobs:
138138
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
139139
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
140140
with:
141-
go-version: 1.23.10
141+
go-version: oldstable
142142
cache: false
143143
- name: Cache Go
144144
id: go-cache

.github/workflows/build-and-test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3030
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3131
with:
32-
go-version: 1.23.10
32+
go-version: oldstable
3333
cache: false
3434
- name: Cache Go
3535
id: go-cache
@@ -85,7 +85,7 @@ jobs:
8585
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
8686
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
8787
with:
88-
go-version: 1.23.10
88+
go-version: oldstable
8989
cache: false
9090
- name: Cache Go
9191
id: go-cache
@@ -154,7 +154,7 @@ jobs:
154154
- name: Setup Go
155155
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
156156
with:
157-
go-version: 1.23.10
157+
go-version: oldstable
158158
cache: false
159159
- name: Cache Go
160160
id: go-cache
@@ -178,7 +178,7 @@ jobs:
178178
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
179179
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
180180
with:
181-
go-version: 1.23.10
181+
go-version: oldstable
182182
cache: false
183183
- name: Cache Go
184184
id: go-cache
@@ -249,7 +249,7 @@ jobs:
249249
strategy:
250250
fail-fast: false
251251
matrix:
252-
go-version: ["~1.24", "~1.23"] # 1.20 is interpreted as 1.2 without quotes
252+
go-version: [stable, oldstable]
253253
runner: [ubuntu-24.04]
254254
group:
255255
- receiver-0
@@ -306,24 +306,24 @@ jobs:
306306
# - On main, with the go version that we didn't run the JUnit tests with.
307307
- name: Run Unit Tests
308308
id: tests
309-
if: github.ref != 'refs/heads/main' || !startsWith( matrix.go-version, '~1.23' )
309+
if: github.ref != 'refs/heads/main' || !startsWith( matrix.go-version, 'oldstable' )
310310
run: make gotest GROUP=${{ matrix.group }}
311311

312312
# JUnit tests are super long, so we only run them for one go version.
313313
# This is used for automation that automatically creates issues for flaky tests that are
314314
# merged to main, so we don't run them on every PR.
315315
- name: Run Unit Tests With JUnit and Coverage
316316
id: tests-with-junit
317-
if: startsWith( matrix.go-version, '~1.23' ) && github.ref == 'refs/heads/main' && github.event_name == 'push'
317+
if: startsWith( matrix.go-version, 'oldstable' ) && github.ref == 'refs/heads/main' && github.event_name == 'push'
318318
continue-on-error: true # Allow uploading artifacts even if the test fails
319319
run: make gotest-with-junit-and-cover GROUP=${{ matrix.group }}
320320
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
321-
if: startsWith( matrix.go-version, '~1.23' ) && github.ref == 'refs/heads/main' && github.event_name == 'push'
321+
if: startsWith( matrix.go-version, 'oldstable' ) && github.ref == 'refs/heads/main' && github.event_name == 'push'
322322
with:
323323
name: coverage-artifacts-${{ matrix.go-version }}-${{ matrix.runner }}-${{ matrix.group }}
324324
path: ${{ matrix.group }}-coverage.txt
325325
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
326-
if: startsWith( matrix.go-version, '~1.23' ) && github.ref == 'refs/heads/main' && github.event_name == 'push'
326+
if: startsWith( matrix.go-version, 'oldstable' ) && github.ref == 'refs/heads/main' && github.event_name == 'push'
327327
with:
328328
name: test-results-${{ matrix.go-version }}-${{ matrix.runner }}-${{ matrix.group }}
329329
path: internal/tools/testresults/
@@ -394,7 +394,7 @@ jobs:
394394
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
395395
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
396396
with:
397-
go-version: 1.23.10
397+
go-version: oldstable
398398
cache: false
399399
- name: Cache Go
400400
id: go-cache
@@ -427,7 +427,7 @@ jobs:
427427
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
428428
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
429429
with:
430-
go-version: 1.23.10
430+
go-version: oldstable
431431
cache: false
432432
- name: Cache Go
433433
id: go-cache
@@ -471,7 +471,7 @@ jobs:
471471
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
472472
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
473473
with:
474-
go-version: 1.23.10
474+
go-version: oldstable
475475
cache: false
476476
- name: Cache Go
477477
id: go-cache
@@ -498,7 +498,7 @@ jobs:
498498
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
499499
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
500500
with:
501-
go-version: 1.23.10
501+
go-version: oldstable
502502
cache: false
503503
- name: Cache Go
504504
id: go-cache
@@ -570,7 +570,7 @@ jobs:
570570
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
571571
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
572572
with:
573-
go-version: 1.23.10
573+
go-version: oldstable
574574
cache: false
575575
- name: Cache Go
576576
id: go-cache
@@ -620,7 +620,7 @@ jobs:
620620
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
621621
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
622622
with:
623-
go-version: 1.23.10
623+
go-version: oldstable
624624
cache: false
625625
- name: Mkdir bin and dist
626626
run: |
@@ -766,7 +766,7 @@ jobs:
766766
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
767767
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
768768
with:
769-
go-version: 1.23.10
769+
go-version: oldstable
770770
cache: false
771771
- name: Cache Go
772772
id: go-cache

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fetch-depth: 0
3636
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3737
with:
38-
go-version: 1.23.10
38+
go-version: oldstable
3939
cache: false
4040
- name: Cache Go
4141
id: go-cache

.github/workflows/check-codeowners.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3434
with:
35-
go-version: 1.23.10
35+
go-version: oldstable
3636
cache: false
3737

3838
- name: Cache Go Tools

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2727
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
2828
with:
29-
go-version: 1.23.10
29+
go-version: oldstable
3030
cache: false
3131

3232
# Initializes the CodeQL tools for scanning.

.github/workflows/e2e-tests-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4848
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
4949
with:
50-
go-version: 1.23.10
50+
go-version: oldstable
5151
cache: false
5252
- name: Cache Go
5353
id: go-mod-cache
@@ -83,7 +83,7 @@ jobs:
8383
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
8484
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
8585
with:
86-
go-version: 1.23.10
86+
go-version: oldstable
8787
cache: false
8888
- name: Cache Go
8989
id: go-mod-cache
@@ -121,7 +121,7 @@ jobs:
121121
- name: Setup Go
122122
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
123123
with:
124-
go-version: 1.23.10
124+
go-version: oldstable
125125
cache: false
126126
- name: Cache Go
127127
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4

.github/workflows/e2e-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3030
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3131
with:
32-
go-version: 1.23.10
32+
go-version: oldstable
3333
cache: false
3434
- name: Cache Go
3535
id: go-cache
@@ -60,7 +60,7 @@ jobs:
6060
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6161
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
6262
with:
63-
go-version: 1.23.10
63+
go-version: oldstable
6464
cache: false
6565
- name: Cache Go
6666
id: go-cache
@@ -92,7 +92,7 @@ jobs:
9292
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
9393
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
9494
with:
95-
go-version: 1.23.10
95+
go-version: oldstable
9696
cache: false
9797
- name: Cache Go
9898
id: go-cache
@@ -141,7 +141,7 @@ jobs:
141141
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
142142
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
143143
with:
144-
go-version: 1.23.10
144+
go-version: oldstable
145145
cache: false
146146
- name: Cache Go
147147
id: go-cache

.github/workflows/load-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3232
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
3333
with:
34-
go-version: 1.23.10
34+
go-version: oldstable
3535
cache: false
3636
- name: Cache Go
3737
id: go-cache
@@ -70,7 +70,7 @@ jobs:
7070
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7171
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
7272
with:
73-
go-version: 1.23.10
73+
go-version: oldstable
7474
cache: false
7575
- name: Cache Go
7676
id: go-cache

0 commit comments

Comments
 (0)