Skip to content

test(redact): leaf guard uses os.walk — rglob raced vanishing scratch dirs (5 PRs red) - #1239

Merged
ang-fleet-lander[bot] merged 1 commit into
mainfrom
fix/redact-leaf-guard-walk-race
Sep 26, 2026
Merged

ang-fleet-lander[bot] merged 1 commit into
mainfrom
fix/redact-leaf-guard-walk-race

Conversation

@ang-fleet-interactive

@ang-fleet-interactive ang-fleet-interactive Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Root cause of tests/agent/test_redact_json_leaf.py::test_no_serialize_then_redact_text_call_sites failing on 5 PRs (#1118 #1116 #1218 #1223 #1225): REPO.rglob raises FileNotFoundError when a parallel test's scratch dir (hermes_agent-0.20.6) vanishes mid-walk. Switch to os.walk (ignores vanished dirs), skip unreadable files. Repro with a churned dir: rglob raised 6/40, os.walk 0/40. 28/28 local.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…sts' vanishing scratch dirs

test_no_serialize_then_redact_text_call_sites rglob'd the repo root; parallel tests create and delete
hermes_agent-* dirs there, so rglob raised FileNotFoundError mid-walk (CI 2026-09-26: 5 PRs red on it).
os.walk ignores vanished dirs; read errors skipped. Repro: churned dir -> rglob 6/40 raises, os.walk 0/40.
28 passed.
@ang-fleet-lander

Copy link
Copy Markdown

🤖 merged-by: apollo · lane: kanban-merge-pass · gate: BYPASS: FleetReview paused since 09-22; gate = CI green + Apollo diff review · why: ROOT-CAUSE: redact leaf-guard rglob race ejecting PRs (5 red); os.walk; repro rglob 6/40 vs walk 0/40

@ang-fleet-lander
ang-fleet-lander Bot added this pull request to the merge queue Sep 26, 2026
Merged via the queue into main with commit 6d91d8c Sep 26, 2026
56 checks passed
@ang-fleet-lander
ang-fleet-lander Bot deleted the fix/redact-leaf-guard-walk-race branch September 26, 2026 09:44
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.

1 participant