Skip to content

Commit 3d75664

Browse files
committed
fix
1 parent baba7c2 commit 3d75664

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/ci-pr.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ env:
1313
ALGOTEST: 1
1414
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
1515
SKIP_GO_INSTALLATION: True
16-
# Partition configuration - edit these to change partition counts
17-
TEST_PARTITIONS: 6
18-
INTEGRATION_PARTITIONS: 5
19-
E2E_EXPECT_PARTITIONS: 10
2016

2117
concurrency:
2218
group: pr-${{ github.event.pull_request.number || github.ref }}
@@ -32,11 +28,11 @@ jobs:
3228
fail-fast: false
3329
matrix:
3430
platform: ["ubuntu-24.04"]
35-
partition_id: [0, 1, 2, 3, 4, 5] # Must match TEST_PARTITIONS above
31+
partition_id: [0, 1, 2, 3, 4, 5] # 6 partitions total
3632
runs-on: ${{ matrix.platform }}
3733
env:
3834
PARTITION_ID: ${{ matrix.partition_id }}
39-
PARTITION_TOTAL: ${{ env.TEST_PARTITIONS }}
35+
PARTITION_TOTAL: 6
4036
CIRCLECI: true
4137
SHORTTEST: "-short"
4238
steps:
@@ -53,7 +49,7 @@ jobs:
5349
with:
5450
test-type: test
5551
platform: ${{ matrix.platform }}
56-
partition-total: ${{ env.PARTITION_TOTAL }}
52+
partition-total: 6
5753
- name: Setup test environment
5854
uses: ./.github/actions/setup-test
5955
- name: Run tests
@@ -113,12 +109,12 @@ jobs:
113109
fail-fast: false
114110
matrix:
115111
platform: ["ubuntu-24.04"]
116-
partition_id: [0, 1, 2, 3, 4] # Must match INTEGRATION_PARTITIONS above
112+
partition_id: [0, 1, 2, 3, 4] # 5 partitions total
117113
runs-on: ${{ matrix.platform }}
118114
env:
119115
CIRCLECI: true
120116
PARTITION_ID: ${{ matrix.partition_id }}
121-
PARTITION_TOTAL: ${{ env.INTEGRATION_PARTITIONS }}
117+
PARTITION_TOTAL: 5
122118
E2E_TEST_FILTER: GO
123119
PARALLEL_FLAG: "-p 4"
124120
SHORTTEST: "-short"
@@ -136,7 +132,7 @@ jobs:
136132
with:
137133
test-type: integration
138134
platform: ${{ matrix.platform }}
139-
partition-total: ${{ env.PARTITION_TOTAL }}
135+
partition-total: 5
140136
- name: Setup test environment
141137
uses: ./.github/actions/setup-test
142138
- name: Build e2e binaries
@@ -173,12 +169,12 @@ jobs:
173169
fail-fast: false
174170
matrix:
175171
platform: ["ubuntu-24.04"]
176-
partition_id: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # Must match E2E_EXPECT_PARTITIONS above
172+
partition_id: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # 10 partitions total
177173
runs-on: ${{ matrix.platform }}
178174
env:
179175
CIRCLECI: true
180176
PARTITION_ID: ${{ matrix.partition_id }}
181-
PARTITION_TOTAL: ${{ env.E2E_EXPECT_PARTITIONS }}
177+
PARTITION_TOTAL: 10
182178
E2E_TEST_FILTER: EXPECT
183179
PARALLEL_FLAG: "-p 4"
184180
SHORTTEST: "-short"
@@ -196,7 +192,7 @@ jobs:
196192
with:
197193
test-type: e2e_expect
198194
platform: ${{ matrix.platform }}
199-
partition-total: ${{ env.PARTITION_TOTAL }}
195+
partition-total: 10
200196
- name: Setup test environment
201197
uses: ./.github/actions/setup-test
202198
with:
@@ -307,13 +303,13 @@ jobs:
307303
run: |
308304
case "${{ matrix.test_type }}" in
309305
test)
310-
echo "PARTITION_TOTAL=${{ env.TEST_PARTITIONS }}" >> $GITHUB_ENV
306+
echo "PARTITION_TOTAL=6" >> $GITHUB_ENV
311307
;;
312308
integration)
313-
echo "PARTITION_TOTAL=${{ env.INTEGRATION_PARTITIONS }}" >> $GITHUB_ENV
309+
echo "PARTITION_TOTAL=5" >> $GITHUB_ENV
314310
;;
315311
e2e_expect)
316-
echo "PARTITION_TOTAL=${{ env.E2E_EXPECT_PARTITIONS }}" >> $GITHUB_ENV
312+
echo "PARTITION_TOTAL=10" >> $GITHUB_ENV
317313
;;
318314
esac
319315
- name: Save timing data for future partition optimization

0 commit comments

Comments
 (0)