Skip to content

Smoke: part count, matrix and timeout from the plan job (Part of #5919) - #6116

Closed
squid-protocol wants to merge 3 commits into
mainfrom
churn/5919-20261023T0126Z
Closed

squid-protocol wants to merge 3 commits into
mainfrom
churn/5919-20261023T0126Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Part of #5919 (step 3 of the Opus rescue plan; the queued "slice 2" was already merged in #6088, so this is the next open step).

Needs the owner (workflow edit): this PR edits .github/workflows/smoke-test.yml and its queue item had no allow_workflows. The workflow edit is the change itself (#5919 plan step 3 says so: Python-only versions of this step did nothing until a later workflow edit), so it was kept rather than dropped. Merge needs the owner's OK on the workflow change.

What

  • .github/workflows/smoke-test.yml: new suite-plan job (actions: read; sparse checkout of the planner; restores the exact durations key the durations job chose, else the committed .test_durations). It reads the queue depth with ci_layout.py --print-waiting on a pull request only (empty = calm) and runs suite_shard_plan.py --smoke, which outputs matrix, splits, timeout.
  • full-suite-part takes its matrix, timeout-minutes and --splits "$SPLITS" from the plan; the job name is full-suite part N/<splits> (still matches the ci_digest pattern). full-suite-durations and suite-time expected "3 parts" of artifacts: they now expect splits.
  • A plan failure (empty durations) skips the parts, so the required full-suite check fails loudly (a skipped part passes only when tested-tree proved the tree).
  • Tests: test_suite_shard_plan.py pins no literal --splits N / group: [..] / part N/<digit> and the plan-job wiring; test_ci_digest.py renders the new job-name expression.

Facts checked

Class table

Class: pytest-split suite parts whose count and job timeout are typed in workflow YAML.

Member Status
Smoke full-suite parts (#5133) fixed here
Full Suite Gate legs (#5156) not here: --gate exists (#6054); adoption is step 4 (its own PR: two include blocks, pinned tests)
Evidence Refresh --evidence-plan queue depth open, plans calm (sparse checkout lacks ci_layout.py)

Remaining slices

  1. Full Suite Gate adoption of suite_shard_plan.py --gate (full-suite-gate.yml and its workflow tests).
  2. Step 5: 7-day calibration check, no code.

No burned-estate program needs any of these (core CI).

Cross-repo: none.

Lessons for agents

  • Never pin a plan's exact output on the committed .test_durations: every durations refresh moves it (ground-truth: durations refreshed, cache/layout measured and documented (Part of #5543) #6146 broke both pins). Pin bounds and orderings.
  • When a literal count becomes planned, grep tests too (--splits 3 lived in test_ci_critical_path_split.py).
  • A job name: with a needs.<hyphenated-job>.outputs... expression breaks test_ci_digest's renderer: add the expression to MATRIX_SAMPLE (its regex now allows -).
  • Nightly artifact-merge steps hard-coded the part count (3): grep = 3 || when a count becomes planned.

Checklist: partial -- Smoke done; Full Suite Gate legs and calibration left.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 01:45
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 01:53
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6116 @ afd83c5: 1 failed check(s)

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39885841637/job/120202420184
repro: python -m pytest -q tests/tools/test_ci_critical_path_split.py::test_full_suite_parts_are_balanced_by_least_duration
failing tests: tests/tools/test_ci_critical_path_split.py::test_full_suite_parts_are_balanced_by_least_duration
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
tests/tools/test_ci_critical_path_split.py:208: AssertionError
FAILED tests/tools/test_ci_critical_path_split.py::test_full_suite_parts_are_balanced_by_least_duration - assert []
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 193423
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is be8a891427e85276552fa7d0ba9b2a16cf5cb98bee671a4a401d120aa2f46ae5
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12473833259
Artifact test-times-part-1 has been successfully uploaded! Final size is 193423 bytes. Artifact ID is 12473833259
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39885841637/artifacts/12473833259
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/70d18d84-8f51-4ddc-b9b9-d0546f186ea3' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 23, 2026
squid-protocol and others added 2 commits October 22, 2026 23:51
…t of #5919)

test_full_suite_parts_are_balanced_by_least_duration looked for `--splits 3`, which
this PR replaced with the planned `--splits "$SPLITS"`. The suite_shard_plan "today's
counts" pins broke when #6146 refreshed .test_durations (Smoke now plans 2 parts):
they assert bounds and leg ordering instead of one day's numbers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (9c34f06) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 03:58
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-10-23). Nothing is needed from contributors; work resumes once it is answered.

@squid-protocol

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-10-24). Nothing is needed from contributors; work resumes once it is answered.

@squid-protocol

Copy link
Copy Markdown
Owner Author

Regrafted onto current main as #6553, which supersedes this PR. Main has since added its own suite-plan job (#6278), so the shard planner is now shard-plan. The old branch is left as it is (not rebased or force-pushed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant