Repository navigation
fix(run-enrichment): git add -f to override .gitignore on .nemar/ - #6
Merged
Merged
Conversation
First smoke test against nm099999 failed at git add because the dataset repo's .gitignore includes .nemar/ (local-dev convenience). The workflow is the authoritative writer of .nemar/metadata.json so it must override the ignore via -f. Same latent issue existed in the legacy per-repo template; nm099999's gitignore was likely added after the legacy workflow last ran successfully on it.
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.
First smoke test of the new central workflow (gh workflow run run-enrichment.yml -f dataset_id=nm099999 -f force=true) failed at the commit step with:
The dataset repo's
.gitignoreincludes.nemar/as a local-dev convenience (keeps the managed metadata folder out ofgit statuswhen developers edit BIDS files). But the workflow IS the authoritative writer of.nemar/metadata.json, so it must override the ignore via-f.Same latent issue existed in the legacy per-repo
llm-enrichment.yml—nm099999's.gitignorewas likely added after the legacy workflow last ran successfully on it, so the issue surfaced only when the central workflow tried to write for the first time.Test plan
After merge, re-run
gh workflow run run-enrichment.yml --repo nemarDatasets/.github -f dataset_id=nm099999 -f force=true. Expect green; commit to land onnemarDatasets/nm099999@mainupdating.nemar/metadata.json.