Derive the nextflow branch key and URL from the workflow being run - #14
Open
jbrestel wants to merge 1 commit into
Open
Derive the nextflow branch key and URL from the workflow being run#14jbrestel wants to merge 1 commit into
jbrestel wants to merge 1 commit into
Conversation
runAndMonitor read the nextflowWorkflow param to build the "<workflow>.branch" shared config key, which is only correct while a step runs exactly one workflow. Take both the branch key and the github URL from the workflow name it is handed so a step class can run more than one workflow, and pass the bare name in. No change for existing callers: they hand it the same workflow the param holds. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Why
runAndMonitorbuilt the<workflow>.branchshared-config key by re-reading the step'snextflowWorkflowparam:That is only correct while a step runs exactly one workflow.
ApiCommonWorkflowis merging its ngs-samples fetch and its analysis run into a single step (VEuPathDB/ApiCommonWorkflow#101) so the pair holds one throttle slot; without this change the ngs-samples run would pick up the analysis workflow's branch config.What
runAndMonitornow takes the bare workflow name and derives both the branch key and thehttps://github.com/…URL from it.runpasses the name through instead of pre-building the URL.Risk
None for existing callers — every one hands
runAndMonitorthe same workflow itsnextflowWorkflowparam holds, so the key and URL are unchanged.runis otherwise untouched, which matters becauseMicrobiomeWorkflowuses this class directly (runHumannOnCluster.xml,runEukdetectOnCluster.xml).The only subclass in the org,
ApiCommonWorkflow::…::RunAndMonitorNextflowNGSSamples, is deleted by the companion PR.RunAndMonitorNextflowWithEntryis an independent copy-paste fork of this class and is unaffected.Testing
StepClasses/t/run_and_monitor_nextflow.t: 2 pass, 1 fails —tailLooksOk"Retried but failed" expects''and getsundef. Confirmed pre-existing: it fails identically with this change stashed.Behaviour is covered end-to-end by the companion PR's
Main/t/run_ngs_samples_and_nextflow.t(21 assertions).Merge order
Merge this first, or together with VEuPathDB/ApiCommonWorkflow#101 — that PR's new step class depends on it.
🤖 Generated with Claude Code