fix(gitignore): keep the bytecode rule in evals/ #267
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry!267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "windmill-implement/266-4322"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Every repository the source adopts copies the root
.gitignoreas it is —docs/INSTALL.md, step 2 of the adoption steps — butevals/stays in the source, so the copied.gitignorehas always carried a rule and a comment that serve only the source's compiled readers:# Python bytecode of the eval readersand__pycache__/, added in commit6930f9cforevals/evidence.py. An adopted repository holds text that names files it does not have, and its change review reports the entry as needless text that the adoption steps give it no way to drop.Closes #266
What changed
The rule and its comment move from the root
.gitignoreintoevals/.gitignore, which stays in the source with the readers it serves. The copied.gitignore— what every adopter receives — no longer carries either. The source's own bytecode exclusion is preserved:evals/__pycache__/*.pycstays ignored, and the pre-existing check intests/agent-config/real-source.shguards it.No other file changes; the validator, the tests, and the documents keep their current text.
How to verify
Base
7e74699(main), branchwindmill-implement/266-4322at7f979bd.Scenario A — the rule moves with the readers (a fresh checkout): on the base,
git check-ignore -q scripts/__pycache__/x.pycexits 0 — the root rule reaches everywhere. On the branch, the same command exits non-zero — the copied.gitignorecarries nothing for it. Andgit check-ignore -q evals/__pycache__/evidence.cpython-314.pycexits 0 on both revisions — the source keeps its exclusion. On7f979bd,bash tests/agent-config/real-source.shprintsall 13 agent configuration tests passed.Scenario B — the reproduction (the defect's own test): on the base, with the branch's new check copied into the tree,
bash tests/agent-config/real-source.shprintsnot ok - the root .gitignore carries no bytecode rule, keeping adopters from inheriting the eval readers'while the other 12 checks pass — it fails for the reported reason. On the branch, the same command printsall 13 agent configuration tests passed.The checks already run on
7f979bd, all from the repository root:bash tests/verify-agent-config.sh— all 362 agent configuration tests passed;bash tests/check-work-folder.sh— all 46 work-folder check tests passed;.agents/hooks/shellcheck.sh repo— 51 files clean;prettier --check '**/*.md'— all matched files use Prettier code style;scripts/verify-agent-config.sh— agent configuration statically valid: state=template;git diff --check main— clean;.agents/scripts/check-work-folder.sh --verified— no gap.Considerations
.gitignoreno longer ignores__pycache__/anywhere in an adopter; that is the defect being fixed. The source keeps its exclusion throughevals/.gitignore, soevals/__pycache__/is still ignored there.check-ignore.docs/INSTALL.md,UPGRADING.md, and every other tracked file keep their current text.Review ready:
7f979bdec9Review: comments
Reviewed
7f979bdec9d9: 0 blocking and 2 minor findings.Reproduced
7f979bdfresh checkout: real-source.sh 13/13, verify-agent-config.sh 362/362, check-work-folder.sh 46/46, shellcheck 51 clean, prettier clean, validator statically valid, git diff --check clean.Questions and details
@ -16,6 +16,13 @@ elsenot_ok "$name"finame="the root .gitignore carries no bytecode rule, keeping adopters from inheriting the eval readers'"Minor: The test name trails off with an apostrophe ('...the eval readers'') — the fold's trim cut the clause, leaving a dangling fragment. Finish the sentence.
@ -17,2 +17,4 @@finame="the root .gitignore carries no bytecode rule, keeping adopters from inheriting the eval readers'"if ! git -C "$REPO_ROOT" check-ignore -q scripts/__pycache__/x.pyc; thenMinor: The check proves only that the scripts path is not ignored, so a scoped root rule like evals/pycache/ would still pass while the name would be false and the rule would reach adopters. Reading the root .gitignore for a bytecode rule would match the claim.
Command failed
The agent did not complete this command, so nothing came of it. A person should look at this thread.
The run failed at step "aoe_purge". The operator reads the job logs in the Windmill editor, or finds the run with:
wmill job list --path f/agents/bot_commands