Skip to content

Nightly doc-drift job files area issues from the doc-refs backlog (Part of #7627) - #7684

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7627-20261104T1142Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7627-20261104T1142Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7627 (step 4 of #7624). Needs #7623 (merged).

What

A nightly workflow (doc-drift.yml, 05:29 UTC, plus workflow_dispatch) runs tests/tools/doc_drift_issues.py. It calls tests/doc_refs_audit.py --json, groups findings by area (skills, rules and agents, wiki, docs, package READMEs, tests, other), and splits each area into chunks of 4 files. Each chunk is one documentation issue titled doc drift: <area> [k] with a file:line list.

  • Dedupe by title: an open issue with the same title has its body updated only when it differs (a second run on unchanged findings does nothing).
  • An open doc drift: issue whose chunk no longer exists is commented on and closed.
  • The summary (step summary and stdout) says "N fixed: shrink the baseline (--write-baseline)" when the committed baseline is larger than the live findings. Today: 47 live vs 164 baselined.
  • It never opens a PR and never edits the baseline.

Runner cost (ci-workflows.md)

One job, stdlib only, no setup-python, no install, shallow checkout of main: about 30 s (checkout plus a ~2 s audit), once a day. It does not run on PRs, so it adds no PR load and has no plan job. Dry-run locally against the live repo: 47 findings, 10 chunks (--dry-run prints the create/update/close actions).

Gates

audit_check.py all clear; 7 new tests pass (grouping, chunk cap, create then quiet second run, update not duplicate, close at zero, summary, and that the workflow is one nightly job with no install or PR trigger); test_change_classifier, test_suite_select_plan, tools -k workflow/cache/critical/plan green; time_ratchet clean. docs_read_by_tests.txt regenerated (generated file). Paths in the new tests/script are built with "/".join because a literal doc path in tests/tools registers as a doc a test reads and flips test_prose_nothing_reads_skips.

Class / Sibling gaps

Class: the doc-refs backlog (47 live findings) by area, all handled by this one mechanism: skills (2 chunks), rules and agents, docs (3+), wiki, package READMEs, tests and root files each become an issue chunk automatically; none needs separate code. Sibling gaps: none in the mechanism. Not done here: shrinking the stale baseline (164 entries vs 47 live) is a separate --write-baseline change that churn issues or a follow-up can carry; a first live run (workflow_dispatch after merge) will open about 10 issues.

Cross-repo

None.

🤖 Generated with Claude Code

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

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 11:54
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 11:55
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 4, 2026 12:08
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

PR #7684 @ 684de24: 1 failed check(s)

== Analyze (python) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41824722043/job/126556420762
repro: no local equivalent; read the check page
errors:
expect-error: false
##[error]Process completed with exit code 1.
log tail:
CODEQL_WORKFLOW_STARTED_AT: 2026-11-04T11:59:22.403Z
CODEQL_ACTION_HAS_SET_UP_CODEQL: true
CODEQL_RAM: 14570
CODEQL_THREADS: 4
CODEQL_ACTION_SARIF_RESULTS_OUTPUT_DIR: codeql-results
CODEQL_UPLOAD_SARIF__LANGUAGE_PYTHON__CODEQL: CODEQL_UPLOAD_SARIF__LANGUAGE_PYTHON__CODEQL
CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY: true
GH_TOKEN: ***
PR: 7684
REPO: squid-protocol/gitgalaxy
##[endgroup]
### CodeQL: 1 new result(s), 1 blocking (fails this PR)
PR analysis 399 results, main's 393. New means not on main, in a file this PR changed.
- py/file-not-closed: 1
| Level | Rule | Where |
|---|---|---|
| warning | py/file-not-closed | tests/tools/test_doc_drift_issues.py:69 |
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
Existing job run UUID is 67e71e99-0fae-40c1-a9f1-97b87c2618ab.
CodeQL job status was success.
Sending status report for init-post step.
Status report sent for init-post step.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/5d1a8c3c-2cf0-4bd2-95cd-cc998e4fdf72' 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-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (b7d3868) 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). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 4, 2026 12:10
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. 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 Nov 4, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 12:13
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 12:14
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd
squid-shepherd Bot merged commit 8165d36 into main Nov 4, 2026
74 of 93 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7627-20261104T1142Z branch November 4, 2026 12:47
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.

2 participants