Skip to content

Stop CI running the unit tests twice on every pull request - #706

Merged
hannesa2 merged 1 commit into
masterfrom
run-the-unit-tests-once-per-pr
Sep 21, 2026
Merged

hannesa2 merged 1 commit into
masterfrom
run-the-unit-tests-once-per-pr

Conversation

@goneng

@goneng goneng commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

The screenshot step tests the whole scheme, so it repeats the GitXTests
run that has already passed in its own step earlier in the same job.

  • Point the "Run tests" step at make ui-test, narrowing it to
    GitXUITests. Every other argument stays as it was, including the
    result bundle the screenshot extraction reads afterwards.
  • Update the Makefile's map of targets to CI steps, since all-tests
    now matches no step and is left as a way to run everything locally
    in one command.

What the duplicate costs, and why it is worth removing anyway, is in
#705.

Test plan:

  • Dry-run both targets: ui-test is all-tests plus
    -only-testing:GitXUITests and nothing else, so the result bundle the
    screenshot steps read is unchanged.
  • Locally, make ui-test into a result bundle followed by
    scripts/extract_screenshots.py produced the three screenshots, which
    is the pair of steps this touches.
  • The workflow still parses, with exactly three test steps left: the
    unit tests, the baseline UI tests, and this one.

Closes #705

The screenshot step tests the whole scheme, so it repeats the GitXTests
run that has already passed in its own step earlier in the same job.

- Point the "Run tests" step at `make ui-test`, narrowing it to
  GitXUITests. Every other argument stays as it was, including the
  result bundle the screenshot extraction reads afterwards.
- Update the Makefile's map of targets to CI steps, since `all-tests`
  now matches no step and is left as a way to run everything locally
  in one command.
@goneng
goneng marked this pull request as ready for review September 21, 2026 07:28
@goneng goneng added the test Test related label Sep 21, 2026
@hannesa2
hannesa2 merged commit eecc284 into master Sep 21, 2026
3 checks passed
@hannesa2
hannesa2 deleted the run-the-unit-tests-once-per-pr branch September 21, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: the unit test suite runs twice on every pull request

2 participants