Skip to content

ci: pin the smoke-test pytest-split durations once per run; lint every durations restore (Part of #5114, #5135) - #5182

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5114-20261015T1042Z
Oct 15, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5114-20261015T1042Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5114, Part of #5135.

What

smoke-test.yml full-suite-part (3 parts, pytest-split) each restored test-durations- with restore-keys themselves, so a nightly cache save between two parts' starts gave different slices (a test dropped or run twice). New tiny durations job (lookup-only cache restore, no checkout) resolves the matched key once and outputs it; each part restores that exact key (no restore-keys), and falls back to the committed .test_durations when the key is empty. The if keeps !cancelled(), so a failed or skipped durations never skips the required check.

Job counts per smoke-test run: before 3 parts (+ gate on push); after 3 parts + 1 durations (+ gate on push). det-sweep.yml is untouched: a full run stays 12 jobs (6 shards + 4 db2 + plan + det).

Class table (shards that pick their own durations)

Member Status
det-sweep.yml shard / db2 handled (#5111 det-durations artifact from plan); now pinned by test
evidence-refresh.yml sweep / records / db2 re-checked: no durations cache restore; balanced by the committed file at the lane commit, so one split. Comment + test only
smoke-test.yml full-suite-part fixed here
det-sweep det (nightly, single job, extends then saves) not a shard; allowed in the test

New tests/tools/test_shard_split_pinned.py (6 tests): no matrix job restores with restore-keys; the only "pick the newest" restores are det-sweep plan/det and smoke-test durations; det shard/db2 download det-durations; evidence-refresh reads none; smoke parts restore the exact key. The test_a_rerun_shard_... failure seen on #5139's CI does not reproduce on main (23 pass).

#5135 acceptance (not met yet: stays open)

Since #5139 merged (2026-10-14T21:52Z), 100 det-sweep PR runs: 12-job full sweeps that succeeded = 8 (<10 required). Det done (run start to det job end): 14.4, 15.8, 18.9, 23.8, 26.3, 26.9, 27.1, 42.9 min, median ~25 min, vs the #5139 before-baseline median 70 min (different metric: run start to last update, 26 jobs, 20 shards). Job count 26 -> 12. Those 8 det jobs succeeded, so missing_cases is 0 (a missing case fails the aggregate). Script and raw table are in scratch (not committed). Re-measure when 10 distinct det PRs have full sweeps.

Cross-repo

None.

Lessons for agents

  • ruff check on a bare test path flags S101; the repo gate is python tests/ruff_audit.py --ci (baselined), use that.

🤖 Generated with Claude Code

…class (Part of #5135, #5114)

smoke-test.yml: a `durations` job resolves the newest measured durations cache key once; the three full-suite parts
restore that exact key, never "the newest" on their own (a nightly save between part starts cut different slices).
evidence-refresh.yml: comment only (its split is the committed file at the lane commit). New
tests/tools/test_shard_split_pinned.py pins every durations restore across the workflows.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 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 15, 2026 10:48
@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 10:49
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5182 @ bbb1375: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38722919905/job/116388051272
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {f7e9cde1-5e96-4957-a83d-0166d9b5b187}
Region: eastus2
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
##[endgroup]
full-suite parts: failure (tested-tree skip: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38722919905/job/116381681572
repro: python -m pytest -q tests
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
FAIL tests/cobol_mainframe/test_decimal_comma.py::test_a_vsam_entity_keeps_the_comma_pictures_as_their_text: 10.3s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests/cobol_mainframe/test_no_jcl_batch_controller.py:190: no Maven + JDK 17
SKIPPED [3] tests/cobol_mainframe/test_pointer_commarea_4270.py:192: needs Docker and a JDK 17 (JAVA_HOME / JDK_17)
SKIPPED [19] tests/cobol_mainframe/test_det_nondigit_zoned.py:490: needs Docker (EQUIVALENCE_E2E=1)
SKIPPED [3] tests/cobol_mainframe/test_link_xctl_commarea_4816.py:149: needs Docker (GnuCOBOL) and a JDK + Maven
SKIPPED [2] tests/cobol_mainframe/test_link_commarea_bytes_4806.py:115: needs Docker (GnuCOBOL) and a JDK + Maven
3979 passed, 577 skipped, 1 warning in 937.54s (0:15:37)
##[group]Run python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-1.json"
python tests/tools/time_ratchet.py check --times "$RUNNER_TEMP/times-part-1.json"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 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
##[endgroup]
FAIL tests/cobol_mainframe/test_decimal_comma.py::test_a_vsam_entity_keeps_the_comma_pictures_as_their_text: 10.3s is over 10s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
4556 tests checked, 1 over the per-test limit
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/fe58799c-aca6-4496-910b-7f70b07fc1aa' 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 and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol
squid-protocol merged commit e7495c5 into main Oct 15, 2026
64 of 67 checks passed
@squid-protocol
squid-protocol deleted the churn/5114-20261015T1042Z branch October 15, 2026 11:23
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant