Skip to content

CI: merge main only for a reason; shepherd stops updating behind branches (Fixes #5134) - #5138

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5134-20261014T1741Z
Oct 14, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5134-20261014T1741Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #5134 (owner decision, option A).

What

  • tests/tools/shepherd_gh.py: removed the behind -> update_branch rule in decide() and the update_branch op in apply(). The marker-pair approval carry-over stays (PRs the bot updated earlier, and plain merges of main by workers, keep shepherd:merge).
  • tests/tools/box/ci_shepherd.py (same mechanism, local fallback): removed behind -> gh pr update-branch; a green PR GitHub calls behind now logs that it is not updated.
  • .claude/agents/gitgalaxy-pr-worker.md, docs/ci.md, parallel-pr-agents skill, a stale comment in shepherd-reconcile.yml: merge main only for a conflict, a main-caused required-check failure, or a re-bless after a sibling merge that moved golden masters/generated files.

Class: automation/guidance that updates a PR branch from main just to keep it current.

Tests: test_shepherd_gh.py and test_ci_shepherd.py now assert no update is made in any behind state (green, pending, failed, held, auto-merge, unlabelled); 90 pass. pr_gates.py --fast 6/6, --ratchets 7/7.

Cross-repo: none. No parsing logic touched; no golden re-bless.

After merge: count merge-main commits per PR for 3 days. The owner clears classic branch-protection strict: true by hand; while set, GitHub reports green PRs as behind and pr_check refuses them.

🤖 Generated with Claude Code

…hind branch (Fixes #5134)

Owner option A: workers merge main only when the PR is conflicting, a required check fails because of main, or golden masters/generated files need a re-bless. Drops behind->update-branch from shepherd_gh.py and the local ci_shepherd.py; updates pr-worker.md, docs/ci.md, parallel-pr-agents.

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 14, 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 14, 2026 17:55
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 17:55
@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 #5138 @ cd7e67f: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38610748042/job/116014125893
repro: python -m pytest -q tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate
failing tests: tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate
errors:
fail-on-cache-miss: false
FAILED tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate - Failed: DID NOT RAISE ValueError
##[error]Process completed with exit code 1.
log tail:
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid[// fn (a: i32, b: i32)] - Known limitation: No block shielding for args inside comments
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_func_start_invalid[//SYSUDUMP DD DATA,DLM=$$\n//BAD EXEC PGM=X\n$$] - Known limitation: No block shielding for instream data in JCL
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_class_start_invalid[//SYSIN DD \n//FAKE JOB 1\n/] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/*] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
FAILED tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate - Failed: DID NOT RAISE ValueError
1 failed, 9692 passed, 22 skipped, 8 xfailed, 3 xpassed, 2 warnings in 1053.48s (0:17:33)
##[error]Process completed with exit code 1.
##[group]Run python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
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]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/09e31c29-bfb3-4f71-8b4f-ebc625e12f9e' 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 the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 14, 2026
@squid-protocol squid-protocol added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md 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:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 14, 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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 8b52c81 into main Oct 14, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the churn/5134-20261014T1741Z branch October 14, 2026 21:45
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.

Owner decision: merge-main reruns (52/155 PRs re-ran full CI since 10-11) -- worker/shepherd update policy

1 participant