Repository navigation
Stop agent scratch directories from breaking the boring-cyborg check - #72642
Merged
Merged
Conversation
Coding agents create write-tracking scratch directories next to whatever directory a tool call happened to run in, so they appear anywhere in the tree rather than only at the repo root. When one lands in the UI locales directory the boring-cyborg check reads it as a locale code and fails the commit with a message that points at boring-cyborg.yml, which is not where the problem is. The directories are empty, so git status gives no hint either and the cause is invisible without listing hidden entries. The repository's own ignore rule for them was anchored to the root, which left contributors relying on a personal global ignore file for the rest of the tree.
potiuk
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan,
jason810496 and
jscheffl
as code owners
September 7, 2026 15:22
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
aws-airflow-bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Sep 8, 2026
…yborg check (apache#72642) Coding agents create write-tracking scratch directories next to whatever directory a tool call happened to run in, so they appear anywhere in the tree rather than only at the repo root. When one lands in the UI locales directory the boring-cyborg check reads it as a locale code and fails the commit with a message that points at boring-cyborg.yml, which is not where the problem is. The directories are empty, so git status gives no hint either and the cause is invisible without listing hidden entries. The repository's own ignore rule for them was anchored to the root, which left contributors relying on a personal global ignore file for the rest of the tree. (cherry picked from commit 8850c32) Co-authored-by: Jarek Potiuk <[email protected]>
potiuk
added a commit
that referenced
this pull request
Sep 9, 2026
…yborg check (#72642) (#72712) Coding agents create write-tracking scratch directories next to whatever directory a tool call happened to run in, so they appear anywhere in the tree rather than only at the repo root. When one lands in the UI locales directory the boring-cyborg check reads it as a locale code and fails the commit with a message that points at boring-cyborg.yml, which is not where the problem is. The directories are empty, so git status gives no hint either and the cause is invisible without listing hidden entries. The repository's own ignore rule for them was anchored to the root, which left contributors relying on a personal global ignore file for the rest of the tree. (cherry picked from commit 8850c32) Co-authored-by: Jarek Potiuk <[email protected]>
regarmukesh3g
pushed a commit
to regarmukesh3g/airflow
that referenced
this pull request
Sep 27, 2026
…pache#72642) Coding agents create write-tracking scratch directories next to whatever directory a tool call happened to run in, so they appear anywhere in the tree rather than only at the repo root. When one lands in the UI locales directory the boring-cyborg check reads it as a locale code and fails the commit with a message that points at boring-cyborg.yml, which is not where the problem is. The directories are empty, so git status gives no hint either and the cause is invisible without listing hidden entries. The repository's own ignore rule for them was anchored to the root, which left contributors relying on a personal global ignore file for the rest of the tree.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Coding agents (Claude Code, and anything else using the same write-tracking convention) create
.claude/.cc-writes/scratch directories next to whatever directory a tool call ran in, so they turn up anywhere in the tree — this checkout had 22 of them, underdev/,providers/,ts-sdk/docs/, and so on.The failure this fixes. When one lands in the UI locales directory,
boring_cyborg.pyglobslocales/*and treats every directory as a locale code, so it reports:The commit is blocked, and the message points at
boring-cyborg.yml, which is not where the problem is. The directories are empty, sogit statusshows nothing and the real cause is invisible withoutls -a.Changes:
scripts/ci/prek/boring_cyborg.py— skip dot-directories when enumerating locales. Locale codes never start with a dot. This matches the guardcheck_shared_distributions_usage.pyalready uses..gitignore— add**/.claude/.cc-writes/. The existing.claude/*rule contains a slash, so git anchors it to the repo root; nested occurrences were only ignored for contributors who happen to have a matching pattern in their personal global ignore file.Verified by recreating
locales/.claude/.cc-writesand re-running the hook: exits 1 before, "No found problems" after.git -c core.excludesFile=/dev/null check-ignoreconfirms the new pattern catches nested dirs without relying on a global ignore.Not changed: the other dir-iterating prek scripts don't need this —
check_no_new_airflow_core_utils_modules.pyandcheck_shared_distributions_usage.pyalready skip dot-names, and the twoshared/ones gate on apyproject.tomlmarker. No unit test:boring_cyborg.pyraisesSystemExitwhen imported as a module, so it is deliberately outside thescripts/tests/ci/prek/suite, and making a one-line guard testable would mean undoing that.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines