Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ jobs:
# Whole suite on the lock under four fresh random seeds a week, to find order dependence before it fails a PR.
# Schedule and dispatch only: https://github.com/intel/dokimi/issues/1059
test-seeds:
name: Tests (seed ${{ matrix.leg }})
name: Tests (seed)
timeout-minutes: 30
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ${{ github.repository_owner == 'intel' && github.event_name == 'pull_request' && vars.LINUX_RUNNER_OFF != 'true' && 'dokimi-ec2' || 'ubuntu-latest' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo-eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ jobs:
if-no-files-found: ignore

tasks-check:
name: repo tasks check ${{ matrix.task }}
name: repo tasks check
needs: validate
if: needs.validate.outputs.tasks != '[]'
runs-on: ${{ inputs.runs-on }}
Expand Down
2 changes: 1 addition & 1 deletion dokimi/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
under `-n auto` with `--randomly-seed` 1 to 20 (`scripts/repeat_changed_tests.py`), at
most 10 files; the log names the rest. It stops at the first failing seed and prints it
for replay. Run it locally with `python scripts/repeat_changed_tests.py --base <remote>/main`.
- **Not a PR check. Seeds run weekly.** The weekly and manual run of `ci.yml` also runs the `Tests (seed N)`
- **Not a PR check. Seeds run weekly.** The weekly and manual run of `ci.yml` also runs the `Tests (seed)`
job: the whole suite on `main` (a manual run too, whichever branch it is started on) under `-n auto` in four legs, each with its own
`--randomly-seed` (`GITHUB_RUN_NUMBER * 10 + leg`). The `Pick the seed` step prints the seed
and the job summary shows it; replay a failing leg with `pytest -n auto --randomly-seed=<seed>`.
Expand All @@ -115,12 +115,12 @@
and evidence ids) against the tests that ran. A test claims an id with
`@pytest.mark.outcome("<id>")`. An id no test claims, or a claimed test that
fails, fails the job; if every claimed test is skipped, the job is inconclusive.
`outcomes-result.json` says which. Changing a promised behaviour means changing

Check notice on line 118 in dokimi/CONTRIBUTING.md

View workflow job for this annotation

GitHub Actions / self / repo scan

repo scan unresolved

dokimi/CONTRIBUTING.md: path: `outcomes-result.json`: tried outcomes-result.json, dokimi/outcomes-result.json; .gitignore:16 (`/dokimi/outcomes-result.json`) ignores it, so it is likely generated rather than tracked
the doc, the test and the contract together. `pytest --outcomes -m outcome` runs
only the evidence. The same session checks the journey trace: each criterion
in `tests/outcomes/journeys.yaml` with `enforce: true` needs its `cjm-*`
evidence ids claimed by passing tests. It writes `--journeys-report`
(default `journeys-result.json`, plus `.md`); see

Check notice on line 123 in dokimi/CONTRIBUTING.md

View workflow job for this annotation

GitHub Actions / self / repo scan

repo scan unresolved

dokimi/CONTRIBUTING.md: path: `journeys-result.json`: tried journeys-result.json, dokimi/journeys-result.json; .gitignore:17 (`/dokimi/journeys-result.json`) ignores it, so it is likely generated rather than tracked
[traceability](docs/user-journeys/traceability.md#what-the-check-enforces).
- **Docs build** — `mkdocs build --strict`, from `dokimi/`. `make dev` already
installs its packages and `make ci-local` runs it; by hand, install them with
Expand Down Expand Up @@ -190,7 +190,7 @@
`mutmut show <name>` for a survivor's diff. A test that kills a survivor
asserts the value the mutant changes. Some survivors are equivalent (the mutant
computes the same result, e.g. a `<` that differs only at a value no input
reaches); leave those alone. `mutants/` is scratch and git-ignored.

Check notice on line 193 in dokimi/CONTRIBUTING.md

View workflow job for this annotation

GitHub Actions / self / repo scan

repo scan unresolved

dokimi/CONTRIBUTING.md: path: `mutants/`: tried mutants, dokimi/mutants; .gitignore:20 (`/dokimi/mutants/`) ignores it, so it is likely generated rather than tracked

**Fuzzing.** [atheris](https://github.com/google/atheris) fuzzes the parsers
that read untrusted text: judge and agent replies (`llm_json`, the YES/NO, A/B
Expand Down
8 changes: 8 additions & 0 deletions dokimi/changelog.d/20261202_120000_tasks-check-job-name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!--
Copyright (C) 2026 Intel Corporation
SPDX-License-Identifier: Apache-2.0
-->

### Fixed

- **A skipped `tasks-check` job of `repo-eval.yml` and a skipped `test-seeds` job of `ci.yml` are no longer listed with an unevaluated matrix expression** (#1532) — a job skipped by its `if:` never expands its matrix, and GitHub showed the raw expression in its name (`repo tasks check ${{ matrix.task }}`, `Tests (seed ${{ matrix.leg }})`). The jobs are now named `repo tasks check` and `Tests (seed)`: a skipped one is listed under that name, and a running one with the matrix value GitHub appends, as `repo tasks check (<task>)`. A caller whose branch protection requires a task's check by its old name (`repo tasks check <task>`), or a ruleset that requires `Tests (seed <leg>)`, must require the new form.
Comment thread
antonwolfy marked this conversation as resolved.
Resolved
16 changes: 16 additions & 0 deletions dokimi/tests/test_repo_eval_action_checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@

from pathlib import Path

import pytest
import yaml

ROOT = Path(__file__).resolve().parents[2]
CI = ROOT / ".github/workflows/ci.yml"
REPO_EVAL = ROOT / ".github/workflows/repo-eval.yml"
REPO_EVAL_SELF = ROOT / ".github/workflows/repo-eval-self.yml"
CHECKOUT_PATH = ".dokimi-action"
Expand Down Expand Up @@ -198,6 +200,20 @@ def test_scan_and_tasks_check_install_the_package_commit_validate_gated() -> Non
assert workflow["jobs"]["validate"]["outputs"]["dokimi-sha"] == "${{ steps.dokimi.outputs.sha }}"


@pytest.mark.parametrize(
("workflow", "skippable_job"),
[(REPO_EVAL, "tasks-check"), (CI, "test-seeds")],
ids=["repo-eval", "ci"],
)
def test_a_matrix_job_name_holds_no_matrix_expression(workflow: Path, skippable_job: str) -> None:
# A job skipped by its `if:` never expands its matrix, and GitHub then lists the raw expression in its name.
jobs = _load(workflow)["jobs"]
skippable = {job_id: job for job_id, job in jobs.items() if "matrix" in job.get("strategy", {}) and "if" in job}
assert skippable_job in skippable
for job_id, job in skippable.items():
assert "matrix." not in str(job.get("name", "")), job_id


def test_every_checkout_in_repo_eval_keeps_no_credentials() -> None:
# The checkouts sit in jobs that run the checked-out task code: the token must not stay in .git/config.
checkouts = [(job_id, step) for job_id, job in _load(REPO_EVAL)["jobs"].items()
Expand Down
Loading