Conversation
9c9f362 to
07ba05d
Compare
| path: ~/.cache/go-build | ||
| key: go-${{ runner.os }}${{ runner.arch }}-build-${{ env.COMMIT }} | ||
|
|
||
| - name: Run functional test xdc |
There was a problem hiding this comment.
merged into functional-test
|
|
||
| # NDC matrix job. Include `${{ matrix.name }}` in the display name so each | ||
| # matrix variant has a unique name for the job-id lookup. | ||
| functional-test-ndc: |
There was a problem hiding this comment.
merged into functional-test
|
|
||
| # XDC matrix job. Include `${{ matrix.name }}` in the display name so each | ||
| # matrix variant has a unique name for the job-id lookup. | ||
| functional-test-xdc: |
There was a problem hiding this comment.
merged into functional-test
1a5f710 to
ea0720a
Compare
| } | ||
| s.T().Logf("Running %s in test shard %d/%d", s.T().Name(), index+1, total) | ||
| } | ||
|
|
There was a problem hiding this comment.
drive-by cleanup: not used!
6bb6773 to
49192f8
Compare
Makefile
Outdated
| FUNCTIONAL_TEST_ROOT := ./tests | ||
| FUNCTIONAL_TEST_XDC_ROOT := ./tests/xdc | ||
| FUNCTIONAL_TEST_NDC_ROOT := ./tests/ndc | ||
| FUNCTIONAL_TEST_ALL_ROOTS := $(FUNCTIONAL_TEST_ROOT) $(FUNCTIONAL_TEST_XDC_ROOT) $(FUNCTIONAL_TEST_NDC_ROOT) |
There was a problem hiding this comment.
Running all 3 together now.
44f55e2 to
00a67f3
Compare
| done | ||
| echo "job_matrix=$MATRIX" >> "$GITHUB_OUTPUT" | ||
| echo "Generated $(jq length <<< "$MATRIX") jobs" |
There was a problem hiding this comment.
^ I didn't think there's much of a benefit of having this a script.
73bd85a to
0bd6218
Compare
84f7ef3 to
41349da
Compare
| name: Test setup | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| shard_indices: ${{ steps.generate_output.outputs.shard_indices }} |
There was a problem hiding this comment.
Some of these are now in compute_matrix
607f6c8 to
43b31f1
Compare
.github/workflows/run-tests.yml
Outdated
| # smoke tests run specific suites via TEST_ARGS | ||
| TEST_TOTAL_SHARDS: ${{ matrix.total_shards || '' }} | ||
| TEST_SHARD_INDEX: ${{ matrix.shard_index || '' }} | ||
| TEMPORAL_TEST_TOTAL_SHARDS: ${{ matrix.total_shards || '' }} |
There was a problem hiding this comment.
Using prefix TEMPORAL_ to be consistent with other Temporal env vars.
There was a problem hiding this comment.
They were chosen to be consistent with Bazel's test sharding protocol, but we're not using that so 🤷
a2733fd to
5c8ab11
Compare
721d440 to
151e888
Compare
What changed?
Running an abridged database coverage (unless on main/release branch or touching persistence)
Why?
Reduce PR failure rate by not running tests for every database setup.
Note that an earlier version of this PR also merged
xdcandndcwith the other tests across shards but there were a couple of issues (e.g. xdc and ndc are not shard aware) that we'll address later.How did you test it?