Skip to content

cics-crucible.yml: per-test time ratchet over runner-tests (Part of #5257) - #6404

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5257-20261024T0729Z
Oct 24, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5257-20261024T0729Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

What

cics-crucible.yml runner-tests ran tests/cics_crucible with no per-test time ratchet (sibling of #5166). Both pytest steps now write their own GITGALAXY_TEST_TIMES file under runner.temp, a "Per-test time ratchet" step runs time_ratchet.py check --times over both, and the times upload (test-times-cics-crucible, outside the test-times-part-* budget glob).

Needs the owner

This PR edits .github/workflows/cics-crucible.yml, and the queue item carried no allow_workflows. The workflow edit is the whole item (nothing else can add the ratchet), so it is kept, not dropped: an owner must approve a workflow change.

Facts checked

  • Committed .test_durations: 667 tests/cics_crucible entries, none over 15 s; slowest is test_cics_task_interval_control_follows_start_retrieve_and_cancel at 11.5 s locally (could pass 15 s on a 1.2-2x slower runner).
  • The three e2e files (test_cics_crucible_runner.py, test_det_port_bytes_4965.py, test_return_channel_carry_5005.py) are skipped locally, so their real times are only visible in this job. Hence the ratchet lives here.
  • Not run locally: the workflow itself (draft runs only cheap audits). If an e2e test is over 15 s on CI, the first real run fails the new step; fix by speeding it up or slow(reason=...), never by raising the baseline.

Tests / gates

  • New tests/core_engine/test_cics_crucible_time_ratchet_workflow.py (4 tests), plus the ground-truth sibling test, test_timeouts_4904.py, test_env_gated_tests_run_in_ci_5954.py: 27 passed (plain pytest from /tmp).
  • pr_gates.py --ratchets --only-ratchets time: PASS. audit_check.py: all clear.
  • No engine change, so no golden bless.

Sibling gaps

Checklist: done [c:7fdcbdf3]

🤖 Generated with Claude Code

…5257)

The e2e tests under tests/cics_crucible run only in this job, so it is the one run that can time them. Each pytest step writes its
GITGALAXY_TEST_TIMES file, a ratchet step checks both, and the times are uploaded outside the nightly-budget glob.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 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 24, 2026 19:39
@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 24, 2026 19:50
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6404 @ 88d69b5: 2 failed check(s)

== full-suite (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/40126275962/job/120974214536
repro: fails on main too: fix main (then merge origin/main here)
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
Build Date: 2026-10-21T00:45:21Z
Worker ID: {af32ded9-4b41-4e36-9a21-16f686259d0c}
Region: westus
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, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: full
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: full)
##[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/40126275962/job/120971046051
repro: python -m pytest -q tests/tools/test_workflow_inputs.py::test_every_path_filtered_workflow_triggers_on_what_it_reads
failing tests: tests/tools/test_workflow_inputs.py::test_every_path_filtered_workflow_triggers_on_what_it_reads
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
E AssertionError: add these to the workflow's pull_request paths (or to ALLOW, with the reason): cics-crucible.yml: tests/tools/time_ratchet.py
tests/tools/test_workflow_inputs.py:36: AssertionError
FAILED tests/tools/test_workflow_inputs.py::test_every_path_filtered_workflow_triggers_on_what_it_reads - AssertionError: add these to the workflow's pull_request paths (or to ALLOW, with the reason): cics-crucible.yml: tests/tools/time_rat
##[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 210379
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 4589338eb7d18abbcdb674e1a227db51c3c7328f1c939eab396fa3cbf94f43c8
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12572954858
Artifact test-times-part-1 has been successfully uploaded! Final size is 210379 bytes. Artifact ID is 12572954858
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40126275962/artifacts/12572954858
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/1b2136d8-18a5-4216-bd95-ed8376371197' 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 labels Oct 24, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed 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 labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 15d8383 into main Oct 24, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the churn/5257-20261024T0729Z branch October 24, 2026 20:46
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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