Skip to content

fix(ci): name the matrix jobs that an if: can skip without their matrix expression (#1532) - #1539

Merged
antonwolfy merged 4 commits into
intel:mainfrom
antonwolfy:fix/tasks-check-job-name
Dec 3, 2026
Merged

antonwolfy merged 4 commits into
intel:mainfrom
antonwolfy:fix/tasks-check-job-name

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A job skipped by its if: never expands its matrix, and GitHub then lists its name with the matrix expression unevaluated. Two jobs on main do this:

Job if: Listed on main when skipped
tasks-check in .github/workflows/repo-eval.yml needs.validate.outputs.tasks != '[]', false when validate selects no task (a guidance-only manifest, or tasks: changed with no task changed) repo tasks check ${{ matrix.task }} (the issue's evidence: dokimi / repo tasks check ${{ matrix.task }}: skipped in a caller whose manifest has only guidance:)
test-seeds in .github/workflows/ci.yml github.event_name == 'schedule' || github.event_name == 'workflow_dispatch', false on every push and pull request Tests (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 build job shown as build (3.13, --pre)), so a running tasks-check job is listed as repo tasks check (<task>) and a skipped one as repo tasks check; test-seeds is named Tests (seed) the same way.

Closes #1532

Changes

  • .github/workflows/repo-eval.yml: tasks-check is named repo tasks check. The job id, the matrix key task, the if:, the TASK env entries, the artifact name repo-eval-check-<id>-<task> and every step are unchanged.
  • .github/workflows/ci.yml: test-seeds is named Tests (seed). Nothing else of the job changes.
  • dokimi/tests/test_repo_eval_action_checkout.py: test_a_matrix_job_name_holds_no_matrix_expression runs for both workflows and asserts that every job with a strategy.matrix and an if: has a name with no matrix. expression, and that tasks-check (in repo-eval.yml) and test-seeds (in ci.yml) are among them.
  • dokimi/CONTRIBUTING.md names the weekly job as Tests (seed).
  • Changelog fragment (Fixed) names both jobs.

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 requires Tests (seed <leg>) by name must require Tests (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 (on main 892f927):

  • 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 is tests/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 on main's own tree (pytest -k "agent and run" there: 1 failed).
  • On 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 }}' and assert 'matrix.' not in 'Tests (seed ${{ matrix.leg }})'.
  • Mutants: restoring ${{ matrix.task }} in the tasks-check name fails the repo-eval case on the name assertion; restoring ${{ matrix.leg }} in the test-seeds name fails the ci case on it.
  • Not run: the effect on GitHub itself (how a skipped and a running job are listed), which this build cannot see; it rests on the issue's evidence.

Open questions

None.

Revert

A plain revert restores the old names, with the unevaluated expression on a skipped job. Nothing is stored.

Checklist

  • Tests added/updated and pytest passes (the new test passes; test_a_bad_path_is_refused_as_the_quickstart_says[agent run] fails on main too, tracked in test_cli_fault_contract: agent run reaches no path parameter, so its case fails on main #1544)
  • ruff, mypy, and schema checks pass
  • Docs updated (or N/A) — see the docs-drift checklist in CONTRIBUTING.md
  • Self-reviewed per "Before opening a PR" in AGENTS.md
  • Each new raise/exit and test names the doc, contract or issue it traces to
  • No ad-hoc run artifacts committed
  • New files carry the SPDX license header (or are exempt in .github/.licenserc.yaml)

…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>
@antonwolfy
antonwolfy requested a review from a team as a code owner December 2, 2026 16:30
@antonwolfy antonwolfy self-assigned this Dec 2, 2026
Copilot AI balanced review requested due to automatic review settings December 2, 2026 16:33
@exai-bot

exai-bot commented Dec 2, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 5 selected item(s).

CI at `e26c020`: 1 failing, 25 passing, 4 skipped

Not fully read: log of Test Linux Python 3.14: longer than 8000000 bytes, only the start was read

One of 30 checks failed; the other 29 passed or were skipped. The available failing-job log is truncated and shows passing tests through 79%, with no failure diagnostic, so attribution to this change is unknown. The four skipped jobs are gated by workflow conditions, not observed test failures.

Check Status Assessment
Test Linux Python 3.14 failing at step Install the package and run ci/test.py Cause unclear. The available log contains passing test output but no failing assertion, traceback, exit status, or timeout diagnostic. After reading the diff and installed-package test runner, there is insufficient evidence to distinguish a change-caused failure from an existing test failure or infrastructure...
Review details
  • Commit reviewed: e26c020 against merge base 8be8b21
  • Coverage: 5 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 78k tokens (48k from cache), 9s
  • Tool calls: 10 (7 file_read, 1 ci_status, 1 code_search, 1 local_check_results)
  • Task-check job naming across workflows, tests, and documentation: 5 files

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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: of tasks-check (repo-eval.yml) and test-seeds (ci.yml) so skipped jobs render cleanly.
  • Add a parametrized test asserting matrix+if: jobs don’t include matrix. in their name.
  • 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

Comment thread dokimi/CONTRIBUTING.md Resolved
Signed-off-by: Anton Volkov <antonwolfy@gmail.com>
@antonwolfy

Copy link
Copy Markdown
Contributor Author

Review points answered at d159d0a; 1 checks still pending (GitHub Actions (no workflow run reported at this head yet)); every other check passed.

Declined, with the evidence in the replies:

Follow-up issues opened:

@napetrov napetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@xaleryb xaleryb closed this Dec 3, 2026
@xaleryb xaleryb reopened this Dec 3, 2026
@xaleryb

xaleryb commented Dec 3, 2026

Copy link
Copy Markdown
Contributor
  • Run: the head merged with current main (26cb154). The new test fails on main (2 failed) and passes on the merged tree. Putting either matrix expression back in its job name turns that case red. Full suite: the same failing tests as main alone (host-only). ruff, mypy, bandit -ll, check_growth, docs check --strict and zizmor: clean.
  • The required check contexts on main (Linux Python 3.14, Static checks ...) come from jobs this PR does not rename. Nothing else in the repo uses the old names.
  • The two Copilot threads are answered: the diff changes CONTRIBUTING.md line 109 only, and the placeholders are inside backticks.
  • No findings, no commits from us.
  • No workflow run existed at d159d0a; the PR was closed and reopened to start CI.

Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
@xaleryb

xaleryb commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

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-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.49%. Comparing base (8be8b21) to head (e26c020).
⚠️ Report is 1 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

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     

see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@antonwolfy

Copy link
Copy Markdown
Contributor Author

(commented) ### Change class: CONTRACT (head d159d0a)

@napetrov (#1539 (review)): The review approves with no finding. Re-checked at e26c020: both skippable matrix jobs (tasks-check, test-seeds) have names without a matrix expression. How GitHub then lists a running and a skipped job is not exercised here, as the description's "Not run" line says.

@antonwolfy

Copy link
Copy Markdown
Contributor Author
  • Run: the head merged with current main (26cb154). The new test fails on main (2 failed) and passes on the merged tree. Putting either matrix expression back in its job name turns that case red. Fu

@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.

@antonwolfy

Copy link
Copy Markdown
Contributor Author

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; ne

@xaleryb (#1539 (comment)): A note on the merge of main (e26c020). It asks for no change. The branch has no commit after it, and git diff origin/main...HEAD touches no schema.

@napetrov napetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@antonwolfy
antonwolfy merged commit e1cde59 into intel:main Dec 3, 2026
35 of 36 checks passed
@antonwolfy
antonwolfy deleted the fix/tasks-check-job-name branch December 3, 2026 16:03
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.

repo-eval.yml: a skipped tasks-check job is listed as repo tasks check ${{ matrix.task }}

6 participants