Skip to content

tests: mark planted-fixture assess tests slow for the time ratchet (Closes #5240) - #5246

Merged
squid-protocol merged 1 commit into
mainfrom
fix/ci-red-main-5240
Oct 16, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/ci-red-main-5240

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Closes #5240.

Root Cause

In tests/cobol_mainframe/test_assess.py (added in #5234), the module-scoped planted fixture runs two full subprocess invocations of python -m gitgalaxy.cli assess (each of which spawns a gitgalaxy.galaxyscope subprocess scan).

  • On PRs, smoke-test.yml adds --ignore=tests/cobol_mainframe (delegating tests/cobol_mainframe/ to mainframe-ground-truth.yml, which does not run time_ratchet.py check), so the missing @pytest.mark.slow(reason=...) marker did not surface until merge to main.
  • On main (push), smoke-test.yml split the three planted tests across full-suite parts 1–3:
    • Part 1/3 failed time_ratchet.py check on test_planted_text_never_reaches_the_report (25.5s > 15s limit).
    • Part 2/3 warned on test_the_estate_is_read_only (11.0s > 10s threshold) because planted is module-scoped and ran setup again in part 2/3.

Fix

Mark the three planted-fixture tests (test_planted_text_never_reaches_the_report, test_the_estate_is_read_only, test_out_inside_the_estate_is_refused) with @pytest.mark.slow(reason="#4726: planted fixture runs two subprocess gitgalaxy assess scans (#5240)"), matching test_assess_every_burned_estate in the same module.

Verification

  • GITGALAXY_TEST_TIMES=/tmp/times-5240.json pytest tests/cobol_mainframe/test_assess.py -k "planted or read_only or out_inside" && python tests/tools/time_ratchet.py check --times /tmp/times-5240.json (3 tests checked, 0 over the per-test limit, 0 warned)
  • tests/tools/box/heavy-run.sh python tests/tools/pr_gates.py --fast (6/6 gates pass)

@squid-protocol
squid-protocol marked this pull request as ready for review October 16, 2026 11:19
@squid-protocol
squid-protocol merged commit ab6fc63 into main Oct 16, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the fix/ci-red-main-5240 branch October 16, 2026 11:40
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.

main is red: GitGalaxy Smoke Tests

1 participant