Skip to content

fix(ingest): serialize ingests + fix scan-all REPOS_DIR path leak#40

Closed
hyperpolymath wants to merge 12 commits into
mainfrom
claude/fix-ingest-race-scanpath
Closed

fix(ingest): serialize ingests + fix scan-all REPOS_DIR path leak#40
hyperpolymath wants to merge 12 commits into
mainfrom
claude/fix-ingest-race-scanpath

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

  • scripts/scan-all.sh: The expression /var$REPOS_DIR concatenated a literal /var prefix with the variable, producing the literal string /var$REPOS_DIR when REPOS_DIR was unset. This leaked into program_path in every scans/*.json. Fixed with a proper guard: only use REPOS_DIR when it is non-empty and points to an existing directory.
  • .github/workflows/ingest.yml: Concurrent repository_dispatch deliveries were racing on the commit+push step, causing one writer to lose. Added a concurrency group with cancel-in-progress: false to queue them instead of cancelling.

Test plan

  • Verify scan-all.sh diff: no more /var$REPOS_DIR expression
  • Verify ingest.yml diff: concurrency block queues (not cancels) concurrent ingests
  • No logic changes to the ingest step itself

🤖 Generated with Claude Code

hyperpolymath and others added 10 commits May 26, 2026 12:16
…fs gitbot-fleet#148, #208; affinescript#229)

Removes 1 copies of the stale SafeDOMExample.res ReScript fixture from this repo. One of 1,267 byte-clustered copies across the estate (129 repos). ReScript is fully banned in new code (2026-04-30 policy refresh). Current-grammar AffineScript replacement lives at gitbot-fleet/bots/*/examples/SafeDOMExample.affine (PR gitbot-fleet#210 MERGED). The example fixtures are not load-bearing — propagated from an earlier template-instantiation script.

Refs hyperpolymath/gitbot-fleet#148, #208
Refs hyperpolymath/affinescript#57, #229

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- C001: CodeQL language fixes
- C002: License identifier standardization
- C003: Outdated actions audit
- C004: Pin standards refs to SHA 861b5e9
- C005: Add workflow-level permissions
scan-all.sh: `/var$REPOS_DIR` concatenated a literal `/var` prefix,
producing `/var$REPOS_DIR` when REPOS_DIR was unset. Replace with a
proper guard: use REPOS_DIR only when it is non-empty and points to an
existing directory.

ingest.yml: concurrent repository_dispatch deliveries race on the
commit+push; one writer loses. Add a concurrency group
(cancel-in-progress: false) to queue them instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath enabled auto-merge (squash) June 13, 2026 21:03
hyperpolymath and others added 2 commits June 13, 2026 22:04
lint-workflows check requires every workflow file to declare a top-level
permissions block. rsr-antipattern.yml was the only caller missing one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lint-workflows checks require both a top-level permissions declaration
and SHA-pinned reusable workflow references. rsr-antipattern.yml was
missing both. Pins to standards main (2ff85f8).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hyperpolymath

Copy link
Copy Markdown
Owner Author

Superseded by #41 (claude/fix-ingest-v2) — rebased onto current main to eliminate merge conflicts.

auto-merge was automatically disabled June 13, 2026 21:08

Pull request was closed

@hyperpolymath
hyperpolymath deleted the claude/fix-ingest-race-scanpath branch June 13, 2026 21:14
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.

2 participants