Skip to content

Abridged tests on PRs#9216

Merged
stephanos merged 4 commits intotemporalio:mainfrom
stephanos:slim-jobs
Feb 13, 2026
Merged

Abridged tests on PRs#9216
stephanos merged 4 commits intotemporalio:mainfrom
stephanos:slim-jobs

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented Feb 4, 2026

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 xdc and ndc with 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?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Abridged run: https://github.com/temporalio/temporal/actions/runs/21849078475/job/63051453069
(note smoke test)

Full run: https://github.com/temporalio/temporal/actions/runs/21846314222/job/63043110945

@stephanos stephanos force-pushed the slim-jobs branch 6 times, most recently from 1a5f710 to ea0720a Compare February 4, 2026 23:06
Comment thread tests/namespace_delete_test.go Outdated
@stephanos stephanos force-pushed the slim-jobs branch 23 times, most recently from 5a96985 to 07c7788 Compare February 5, 2026 01:36
@stephanos stephanos changed the title Abridged test on PRs Abridged tests on PRs Feb 5, 2026
Comment thread .github/workflows/run-tests.yml Outdated
@stephanos stephanos force-pushed the slim-jobs branch 15 times, most recently from 151e888 to 7460eec Compare February 5, 2026 23:04
Comment on lines +63 to +65
# Check for test-all-dbs label
elif echo '${{ toJson(github.event.pull_request.labels.*.name) }}' | jq -e 'any(. == "test-all-dbs")' > /dev/null 2>&1; then
FULL_TEST_REASON="Running full tests on all DBs (test-all-dbs label)."
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the escape catch.

Comment thread .github/workflows/run-tests.yml Outdated
TEST_TOTAL_SHARDS: ${{ matrix.total_shards }}
TEST_SHARD_INDEX: ${{ matrix.total_shards && matrix.shard_index }} # guard with total_shards to avoid falsy eval of shard_index=0
TEST_SHARD_SALT: ${{ vars.TEST_SHARD_SALT || '-salt-26' }}
TEST_ARGS: ${{ matrix.test_args }}
Copy link
Copy Markdown
Contributor Author

@stephanos stephanos Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for smoke tests that set their own -run

# Check for persistence code changes
elif [[ -n "$merge_base" ]]; then
echo "Changed persistence files:"
git diff --name-only "$merge_base" "$COMMIT" | grep -E "^(common/persistence/|schema/)" || echo "(none)"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sure changes to persistence are fully tested.

if: ${{ !cancelled() }}
with:
name: junit-xml--${{github.run_id}}--${{ steps.get_job_id.outputs.job_id }}--${{github.run_attempt}}--${{matrix.name}}--shard${{matrix.shard_index}}--functional-test
name: junit-xml--${{ github.run_id }}--${{ steps.get_job_id.outputs.job_id }}--${{ github.run_attempt }}--${{ matrix.name }}--${{ matrix.display_name }}--functional-test
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display_name contains shard for sharded jobs

cmd: make functional-test-coverage
test_timeout: 5m
github_timeout: 10
test_args: '"-run=TestActivityTestSuite|TestSignalWorkflowTestSuite|TestWorkflowTestSuite"'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the double quotation; required for Makefile to prevent interpretation of |.

persistence_type: nosql
persistence_driver: cassandra
containers: [cassandra, elasticsearch]
arch: arm
Copy link
Copy Markdown
Contributor Author

@stephanos stephanos Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using ARM here now.

persistence_type: sql
persistence_driver: postgres12
containers: [postgresql]
arch: arm
Copy link
Copy Markdown
Contributor Author

@stephanos stephanos Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using ARM here now.

Copy link
Copy Markdown
Contributor

@KeithB-Temporal KeithB-Temporal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants