Repository navigation
feat(reusable): add run-batch-command for selective PR runs - #36
Merged
Merged
Conversation
New optional input 'run-batch-command' enables repos to use a different command (e.g. toolkit run --batch batch.txt) when a PR triggers the pipeline and batch.txt has content. Falls back to run-command otherwise. This lets repos with make run-all switch to batch mode on PRs without changing their schedule/dispatch behavior.
The drift-check script was looking for infra/agent-context-builder/ dataciviclab.config.yml locally, which doesn't exist in CI (separate repo). Now fetches from GitHub API by default, falls back to local file if --config is explicitly passed.
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.
Summary
Aggiunge l'input opzionale
run-batch-commandalla reusable workflowpipeline-reusable.yml.Problema
Quando un repo chiama la reusable con
run-command: make run-all, il pipeline runna tutti i dataset ad ogni post-merge, anche se solo uno è cambiato nella PR. I repo conmake run-allignorano ilbatch.txtgenerato dal detect.Soluzione
Nuovo input
run-batch-command: se fornito, su PR con batch.txt non vuoto, usa quello al posto dirun-command. Su schedule/dispatch rimanerun-command(full refresh).Effetto
run-batch-commandnon è fornito, nulla cambiaChecklist