Skip to content

ci-timing waits for unittest-vm too (fixes unittest-harness after #265) - #275

Merged
284km merged 1 commit into
mainfrom
ci-timing-needs-unittest-vm
Nov 25, 2026
Merged

284km merged 1 commit into
mainfrom
ci-timing-needs-unittest-vm

Conversation

@284km

@284km 284km commented Nov 25, 2026

Copy link
Copy Markdown
Owner

#265 added the job unittest-vm and did not add it to ci-timing's needs. tools/ci_timing_check.py (test_report_waits_for_all_work_and_keeps_read_only_permissions) requires the report to wait for every other job, so unittest-harness fails on every run since #265.

The change

  • ci-timing needs unittest-vm too.
  • A test: a run whose unittest-vm is skipped gives a report that is complete and successful, with no unknown start delay and no execution time for the skipped job.

Why the job, and not an exception in the check

unittest-vm runs on a schedule and on dispatch only; on a push or a pull request it is skipped. ci-timing has if: always(), so a skipped need does not skip it, and tools/ci_timing.py already reads a skipped job as one with no start delay and no execution (test_skipped_job_and_steps_have_no_execution), and counts it as done and successful (measured_jobs_successful accepts skipped). On the runs where it does run, the report waits for it and gives its time, which is the time #265 asked for.

Checked

  • python3 tools/ci_timing_check.py -v: 18 tests, OK.
  • With main's ci.yml and this check: test_report_waits_for_all_work_and_keeps_read_only_permissions fails (unittest-vm in the jobs, not in needs), as on CI.

The other red on main (build-linux's headers_check on capi/vendor/erb_escape.c) is #253's and is fixed by #273.

🤖 Generated with Claude Code

#265 added the job unittest-vm and not to ci-timing's needs, and
tools/ci_timing_check.py requires the report to wait for every other job:
unittest-harness failed on every run since.

unittest-vm runs on a schedule and on dispatch only. On other runs it is
skipped, which ci-timing (if: always()) runs after, and the report counts
as complete and successful with no unknown start delay: a test says so.

@284km 284km left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Reviewed 8c87d7b. No Critical / Major / Minor findings.

  • ci-timing now lists unittest-vm in needs, so tools/ci_timing_check.py's check that needs covers every other job passes again. This is the unittest-harness failure that every PR's CI hit after #265.
  • ci-timing runs with if: always(), so a push run that skips unittest-vm still produces the report. The new test pins that a skipped job leaves the report complete and successful, with no unknown start delay. On schedule and dispatch runs, the report now includes unittest-vm's time, which #265 wanted.
  • Ran python3 tools/ci_timing_check.py on this head's tree: 18 tests OK. git merge-tree against current main: clean.

This PR changes .github/workflows/ci.yml, so it waits for the owner's review before merge.

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.

1 participant