Skip to content

docs(openspec): plan #3050 reduce test job time to 5 min bound - #3131

Closed
devops-cli-service[bot] wants to merge 1 commit into
mainfrom
perf/3050-the-tests-coverage-check-averages-7
Closed

devops-cli-service[bot] wants to merge 1 commit into
mainfrom
perf/3050-the-tests-coverage-check-averages-7

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #3050

This change plans the reduction of the Tests & Coverage CI check to the 5-minute bound in AGENTS.md rule 5. It enables caching in the test job to remove repeated start-up cost. It adds parallel worker execution to split the 15,700-test suite. It extends the Test Job Duration window from 10 to 20 runs to match the acceptance criterion. No required check is removed or weakened. See #3050.

Change: openspec/changes/3050-the-tests-coverage-check-averages-7/

@dan-petty

Copy link
Copy Markdown
Owner

Advisory pre-merge review (automated; a person decides).

Recommendation: hold. The plan rests on a false premise, and its spec delta conflicts with the base spec.

# Severity Where Problem Evidence Fix
1 blocker tasks.md task 1.1; design.md; proposal.md Two of the three speed levers already exist. The third adds a cache write race. The plan does not find the cause of the slow job. pyproject.toml:200 already has addopts = "-n logical --dist worksteal ...", so a worker count adds nothing. ci.yml:133 sets save-uv-cache: "false" on the test job on purpose. The input text in .github/actions/setup-toolchain/action.yml:20-22 says: use "false" in jobs that run beside Static Analysis, so only one job writes the key. A uv cache does not remove test-process start or coverage cost. The issue's own option "split the job across runners" is not in the plan. Feasibility gives no command output that shows a lever works. Measure first (step times of a slow and a fast run). Pick the lever from that data. Return the item to New with evidence if it cannot be built as written (AGENTS.md rule 2).
2 major specs/ci-job-time/spec.md The delta uses ADDED for a rule that exists. The base spec (openspec/specs/ci-job-time/spec.md:9) fixes the default at 10 runs, with scenarios for 10 runs. A new 20-run requirement contradicts it. Base line 9: "10 runs, with a limit of 300 seconds". The delta header is ## ADDED Requirements. Use MODIFIED and copy the whole base requirement and its scenarios.
3 major tasks.md; proposal.md Impact The place of the 20-run window is not clear, and no failing-first test is named. The spec describes command behavior. The task only edits the workflow. The default is DEFAULT_CI_JOB_TIME_RUNS = 10 in src/devops_cli/config/defaults.py:445, used in src/devops_cli/commands/ci.py:2435. --runs exists already. If the step passes --runs 20, no spec change is needed. If the default changes, defaults.py, commands/ci.py and a test are needed, and none is named. The task says "a 20-run window flag" with no name. Choose one path. List the files and the test it needs (AGENTS.md rule 4).
4 major tasks.md; docs/TESTING.md:166; ci.yml:180 Documents that the change makes wrong are not in the plan (AGENTS.md rule 8). docs/TESTING.md:166 and the ci.yml:180 comment both say "last ten completed pushes". Add both files to the task and to Impact.
5 major tasks.md; proposal.md Acceptance criteria 1 and 2 of #3050 have no verifiable step. The step-time record is a GitHub comment, not a repo change. No task shows the 20-run mean is at most 5 minutes. The only verify command is actionlint, which does not prove a speed gain. Issue #3050 AC1 and AC2. Task 1.1 ends with "Record the step times ... and verify that actionlint passes". The Feasibility command uv run devops ci --check --no-cache --only test is a full local gate run, not a measure of CI time. Add a measuring step with a repeatable command and a target value. Split the measurement from the edit.
6 minor tasks.md Removing --no-cache from the required check changes what it proves. The plan does not say so. AC4 forbids a weaker check. ci.yml:146 runs devops ci --check --no-cache --only test. src/devops_cli/commands/ci.py:1428 defines --cache/--no-cache. Without the flag, CI may trust a stored result and run no tests. The flag is the devops result cache, not the uv cache. Keep --no-cache, or show with evidence that the runner has no stored entry.

Notes: PR hygiene is good. The body starts with "Plans #3050" and has no closing keyword. The title is a valid Conventional Commit. The Test Job Duration job already exists (ci.yml:187), so AC3 of the issue is already met.

Checks that I ran:

  • Read the PR worktree at fa34ca6c: tasks.md, the spec delta, ci.yml:125-150, setup-toolchain/action.yml, pyproject.toml:200.
  • Compared the delta with openspec/specs/ci-job-time/spec.md (10-run text at line 9).
  • Searched docs/TESTING.md and ci.yml for "last ten".
  • A plan lens checked openspec validate --strict and devops openspec check: both pass. They do not detect findings 1 to 6.
  • I did not re-run the CI times quoted in the issue.

@dan-petty dan-petty closed this Nov 2, 2026
@dan-petty

Copy link
Copy Markdown
Owner

Closed. An independent review found that the premise of this plan is false (see the review comment above):

  • The test job already runs pytest-xdist (pyproject.toml).
  • save-uv-cache: "false" on the test job is deliberate (ci.yml), so turning it on adds a cache write race and no speed.
  • The plan never finds the cause of the slow job, and its acceptance criteria have no verifiable step.

Text edits cannot fix this, because the cause of the 7 minutes is still unknown. The stage job plans without a way to read code; the read-only toolbox of #3037 is in progress. #3050 stays open and the stage job plans it again after the toolbox merges.

Owner decision of 2026-11-02.

@dan-petty
dan-petty deleted the perf/3050-the-tests-coverage-check-averages-7 branch November 2, 2026 03:28
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