Skip to content

test(roadmap): Move the golden base commit check to a ci row - #5575

Merged
dan-petty merged 6 commits into
mainfrom
test/4449-check-golden-base-commits-in-a
Nov 14, 2026
Merged

dan-petty merged 6 commits into
mainfrom
test/4449-check-golden-base-commits-in-a

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

One pytest test of the golden stage eval set starts a real git with subprocess.run against the repository root and skips when the clone is shallow, and docs/TESTING.md forbids a test of src/ that starts a system program and a skip that reads host state, so the check of the base commits becomes a row of devops ci that may read the git history (#4449). The Static Analysis job now checks out the full history (fetch-depth: 0), because the new row reads it and fails on a shallow clone.

Closes #4449

Change: openspec/changes/archive/2026-11-14-4449-check-golden-base-commits-in-a/

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 2931048/18301 pytest on base: tests/commands/test_ci_gate_rows.py, tests/invariants/test_roadmap_stage_eval_commits_check.py
group 2 done 1 245993/2369 -
  • scoped check pre-push: passed, 8 s
  • scoped check static: passed, 24 s
  • scoped check tests: passed, 12 s
  • scoped check tests: the changed files select more than 30 test modules, so only the changed test modules ran. The required checks of CI run the others
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.commands.test_ci_gate_rows::test_a_gate_row_runs_the_main_of_its_module[roadmap-stage-eval-commits-roadmap_stage_eval_commits], tests.commands.test_ci_gate_rows::test_the_gate_rows_have_a_title_that_names_what_they_check, tests.commands.test_ci_gate_rows::test_the_gate_rows_come_last_in_the_table_in_this_order.
  • verify of group 2: uv run devops ci test tests/roadmap/stage/test_roadmap_stage_eval_cases.py exits 0.
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/agent/worktrees/w-4449
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, syrupy-7.0.0, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, platformdirs-4.14.5, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 17 items

tests/roadmap/stage/test_roadmap_stage_eval_cases.py .................                                                                                                                                                                             [100%]

=================================================================================================================== 17 passed in 0.42s ===================================================================================================================
Bytecode compiled 19311 files in 480ms
Bytecode compiled 19311 files in 448ms
/home/devops/.data/agent/worktrees/w-4449/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))

@devops-cli-service devops-cli-service Bot added type/test Type test: a new or changed test scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 14, 2026
@dan-petty
dan-petty force-pushed the test/4449-check-golden-base-commits-in-a branch from 26efa89 to 72ac848 Compare November 14, 2026 01:19
@dan-petty

Copy link
Copy Markdown
Owner

An agent changed this branch to fix the failed Static Analysis check (shepherd cycle 51).

  • Cause: the new row roadmap-stage-eval-commits reads the base commit of each golden case. The Static Analysis job of .github/workflows/ci.yml checked out the branch with depth 1, so the row failed with "the shallow clone lacks the history that the golden cases need (59 cases)". The plan did not name ci.yml, so the fix step stopped with outside_plan.
  • Change: the plan now names .github/workflows/ci.yml and tests/invariants/test_workflow_contracts.py. The static job checks out the full history (fetch-depth: 0), as the test jobs do. The contract test changed first: it failed before the ci.yml edit and passed after it. The row does not fetch history and does not skip a shallow clone.
  • Proof: on a depth-1 clone the row fails with the CI message; on a full clone it passes (59 cases). Lint, format, zizmor, actionlint, openspec and 175 named tests pass. The archive commit stays last.
  • The branch is rebased on main 7b27444, which holds fix(security): bump helm to 4.3.2 and renew the kubectl Trivy ignores #5584. That fix removes the other failure (the expired ignore entries in shard 3).

devops-cli-service Bot and others added 6 commits November 14, 2026 02:09
The static job of .github/workflows/ci.yml runs the new
roadmap-stage-eval-commits row on a clone of depth 1, so the row fails
there on the shallow clone. The plan now names the workflow and its
contract test, and gives the reason for fetch-depth: 0.
…4449)

The static job runs every devops ci row but test, outdated and
actionlint, so it runs the new roadmap-stage-eval-commits row. Its
checkout was the default clone of depth 1, and the row failed there:
"the shallow clone lacks the history that the golden cases need (59
cases)". fetch-depth: 0 gives the row the history, as the test-shard,
test, service-image and runner-image jobs have. The contract test of
the static checkout now expects full history.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(roadmap): check golden base commits in a devops ci row

1 participant