Repository navigation
fix(ci): name the matrix jobs that an if: can skip without their matrix expression (#1532) - #1539
Conversation
…l#1532) When validate selects no task, the tasks-check job of repo-eval.yml is skipped by its `if:` before its matrix expands, and GitHub listed its name unevaluated, as `repo tasks check ${{ matrix.task }}`. The job is now named `repo tasks check`, so a skipped one is listed under that name, and a running one gets the matrix value GitHub appends, as `repo tasks check (<task>)`. A test pins that no matrix job of the workflow has a `matrix.` expression in its name. A caller whose branch protection requires a task's check by the old name must require the new one. Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
…#1532) The test-seeds job of ci.yml is skipped by its `if:` on every pull request and push, before its matrix expands, so GitHub listed its name unevaluated, as `Tests (seed ${{ matrix.leg }})`, the same way as the tasks-check job of repo-eval.yml. The job is now named `Tests (seed)`; a running leg gets the matrix value GitHub appends. The test that pins a matrix job's name now covers both workflows, and CONTRIBUTING.md names the job as `Tests (seed)`. A ruleset that requires `Tests (seed <leg>)` by name must require the new form. Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 5 selected item(s). CI at `e26c020`: 1 failing, 25 passing, 4 skippedNot fully read: log of Test Linux Python 3.14: longer than 8000000 bytes, only the start was read
Review details
|
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
What changed in this PR
Updates GitHub Actions job display names to avoid showing unevaluated ${{ matrix.* }} expressions when matrix jobs are skipped by an if: condition, and adds regression tests/documentation for that behavior.
Changes:
- Remove matrix expressions from the
name:oftasks-check(repo-eval.yml) andtest-seeds(ci.yml) so skipped jobs render cleanly. - Add a parametrized test asserting matrix+
if:jobs don’t includematrix.in theirname. - Update docs and a changelog fragment to reflect the new job names.
| File | Description |
|---|---|
dokimi/tests/test_repo_eval_action_checkout.py |
Adds a parametrized regression test covering both workflows’ job names. |
dokimi/changelog.d/20261202_120000_tasks-check-job-name.md |
Notes the fix and describes the naming change for skipped vs running jobs. |
dokimi/CONTRIBUTING.md |
Updates contributor docs to use the new test-seeds display name. |
.github/workflows/repo-eval.yml |
Changes tasks-check job display name to omit ${{ matrix.task }}. |
.github/workflows/ci.yml |
Changes test-seeds job display name to omit ${{ matrix.leg }}. |
Review effort: Lite
Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
|
Review points answered at Declined, with the evidence in the replies:
Follow-up issues opened:
|
napetrov
left a comment
There was a problem hiding this comment.
Change class: CONTRACT (head d159d0a)
- Contract: changed. wf .github/workflows/repo-eval.yml
- Responsibility: none
- Dependency: none
- Review depth: check the changed surface: callers, docs, tests pin new behaviour
- Coverage gaps: none
0 new must-fix findings. Nothing to fix in this round. Both skippable matrix jobs use static names. The focused workflow tests pass.
Checked the diff, input edges, and focused offline Linux tests (head: 60 passed in 5.54s). Checked workflow YAML and task selection. GitHub’s resulting job display names were not exercised on this head.
|
Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
|
Pushed e26c020: merges current main (no conflicts). The branch predated #1545 and #1406, so Tests (py3.14) failed on the agent run fault fixture and schema_compat saw expected_outcome as removed; neither comes from this PR. On the merged tree the new test, test_cli_fault_contract.py and ruff pass on the host, and the PR changes no schema. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1539 +/- ##
==========================================
- Coverage 96.50% 96.49% -0.02%
==========================================
Files 538 538
Lines 72140 72148 +8
Branches 12441 12442 +1
==========================================
- Hits 69620 69618 -2
- Misses 1544 1548 +4
- Partials 976 982 +6 🚀 New features to boost your workflow:
|
@napetrov (#1539 (review)): The review approves with no finding. Re-checked at e26c020: both skippable matrix jobs ( |
@xaleryb (#1539 (comment)): A run recap with no finding and no change asked for. At e26c020 the diff still touches only the two job names, CONTRIBUTING.md, the changelog fragment and the one test. |
@xaleryb (#1539 (comment)): A note on the merge of main (e26c020). It asks for no change. The branch has no commit after it, and |
napetrov
left a comment
There was a problem hiding this comment.
Change class: CONTRACT (head e26c020)
- Contract: changed. wf .github/workflows/repo-eval.yml
- Responsibility: none
- Dependency: none
- Review depth: check the changed surface: callers, docs, tests pin new behaviour
- Coverage gaps: none
No merge-blocking findings.
Ran 24 focused workflow tests with current main. GitHub shows the new static skipped seed name and matrix-expanded task names on this head. Required CI passed.

Summary
A job skipped by its
if:never expands its matrix, and GitHub then lists itsnamewith the matrix expression unevaluated. Two jobs onmaindo this:if:mainwhen skippedtasks-checkin.github/workflows/repo-eval.ymlneeds.validate.outputs.tasks != '[]', false whenvalidateselects no task (a guidance-only manifest, ortasks: changedwith no task changed)repo tasks check ${{ matrix.task }}(the issue's evidence:dokimi / repo tasks check ${{ matrix.task }}: skippedin a caller whose manifest has onlyguidance:)test-seedsin.github/workflows/ci.ymlgithub.event_name == 'schedule' || github.event_name == 'workflow_dispatch', false on every push and pull requestTests (seed ${{ matrix.leg }})(read from the workflow; the listing itself is not in the issue's evidence)The fix is the one the issue proposes, the only option it lists: drop the expression from the name. A matrix job whose name has no matrix expression gets the matrix values appended by GitHub (the issue's evidence is a
buildjob shown asbuild (3.13, --pre)), so a runningtasks-checkjob is listed asrepo tasks check (<task>)and a skipped one asrepo tasks check;test-seedsis namedTests (seed)the same way.Closes #1532
Changes
.github/workflows/repo-eval.yml:tasks-checkis namedrepo tasks check. The job id, the matrix keytask, theif:, theTASKenv entries, the artifact namerepo-eval-check-<id>-<task>and every step are unchanged..github/workflows/ci.yml:test-seedsis namedTests (seed). Nothing else of the job changes.dokimi/tests/test_repo_eval_action_checkout.py:test_a_matrix_job_name_holds_no_matrix_expressionruns for both workflows and asserts that every job with astrategy.matrixand anif:has a name with nomatrix.expression, and thattasks-check(inrepo-eval.yml) andtest-seeds(inci.yml) are among them.dokimi/CONTRIBUTING.mdnames the weekly job asTests (seed).Risk
A caller whose branch protection requires a task's check by its old name (
repo tasks check <task>) must require the new form,repo tasks check (<task>). A ruleset that requiresTests (seed <leg>)by name must requireTests (seed) (<leg>); the job runs only on the weekly schedule and on manual dispatch, so it is not a pull-request check. Nothing else changes: the artifact name, the matrices and the steps are as before. The docs (repo-evaluation-contract.md, "CI for a repository") do not name the job's display name, so they are unchanged.Testing
On a Linux review host, at
d159d0a4(onmain892f927):make ci-local: 37 passed, 1 failed, 16 skipped (the steps that need another job's output, a runner-only condition, micromamba, semgrep or the other Python versions). The one failing step is pytest: 33948 tests passed, 1 failed, 28 skipped. The failure istests/test_cli_fault_contract.py::test_a_bad_path_is_refused_as_the_quickstart_says[agent run]("agent run: no path parameter is reached; add a filler to FILLERS in tests/cli_faults.py"), which this PR does not touch and which fails the same way onmain's own tree (pytest -k "agent and run"there: 1 failed).main's code the new test fails for both workflows (2 failed, 11 passed in the file):assert 'matrix.' not in 'repo tasks check ${{ matrix.task }}'andassert 'matrix.' not in 'Tests (seed ${{ matrix.leg }})'.${{ matrix.task }}in thetasks-checkname fails therepo-evalcase on the name assertion; restoring${{ matrix.leg }}in thetest-seedsname fails thecicase on it.Open questions
None.
Revert
A plain revert restores the old names, with the unevaluated expression on a skipped job. Nothing is stored.
Checklist
pytestpasses (the new test passes;test_a_bad_path_is_refused_as_the_quickstart_says[agent run]fails onmaintoo, tracked in test_cli_fault_contract:agent runreaches no path parameter, so its case fails on main #1544)ruff,mypy, and schema checks passAGENTS.mdraise/exit and test names the doc, contract or issue it traces to.github/.licenserc.yaml)