-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow pathogen-repo-ci
to run workflow in subdir via build-dir
arg
#62
Conversation
98982a7
to
1f8682d
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0387f61
to
4f30741
Compare
pathogen-repo-ci
to run workflow in subdir via build-dir
arg
I think the updates to the The only crucial step that is missing from If we go with this pattern, we can slowly phase out the |
4f30741
to
3715982
Compare
I force-pushed updates to this PR and implemented the alternative approach of using pathogen-repo-build in monkeypox so we can make direct comparisons of the two approaches. The |
One of the mismatches in the intents of It's been nice in the past with What if we keep |
This seems reasonable. We would just have to thread the inputs through to the pathogen-repo-build. |
Tried this out in #65 |
Hmm. I see what you mean. Feels a bit like six of one, half a dozen of the other.
So maybe adopting your suggestion of this convention of a CI profile (at a typical path) + switching from |
With the development of the pathogen-repo-template¹, we are reorganizing pathogen repositories to move workflows into their own directories. This change in monkeypox² revealed that the pathogen-repo-ci workflow no longer works with this new file organization because it expects `nextstrain build` to run with the root of the pathogen repository. This commit adds support for this change by allowing users to define the directory to use for the `nextstrain build` command. Changes are backwards compatible as the default is set to `.` to point to the root of the pathogen repository. ¹ https://github.com/nextstrain/pathogen-repo-template ² nextstrain/mpox#198 Co-authored-by: Cornelius Roemer <[email protected]>
3715982
to
d340a70
Compare
This made sense when I was thinking in the context of individual pathogen repo CIs. However, maybe not as nice for the CI jobs in docker-base/conda-base/(maybe augur?) if we have to add on to the matrix of inputs. We would still have to deal with the additional permissions for Instead of making sweeping changes when we are still unsure about things, I'm fine with pausing on this PR. I'm going to just fix the mpox repo CI with the pathogen-repo-build workflow without affecting other repos. |
Fixes failures due to the recent reorganization of the zika repo to match our proposed common layout going forward, which pathogen-repo-ci doesn't yet support.¹ ¹ <#62>
Looping back to this after ~6 months: noodling on the idea to use The one issue with this idea is that the |
Based on our lab meeting conversation today, I'm going to close this issue out in favor of a new one that I will be writing shortly. |
Description of proposed changes
I'm trialling out putting our main auspice-producing workflow in a folder of a pathogen repo (this is what's currently suggested by our pathogen-repo-template).
This is currently not supported by
pathogen-repo-ci
as there's an implicit assumption that the root of the workflow is in the root of the repo.In this PR I add support for specifying the workflow directory through an argument passed to pathogen-repo-ci.
Changes are backwards compatible as the default is set to what we previously used:
.
Prior attempt: #57 (comment) this had a bug and so I reverted it.
Now the bug has been addressed. See test run: https://github.com/nextstrain/monkeypox/actions/runs/6330482320/job/17192978189#step:9:17
With the way the argument is used, the
build-dir
argument must not end in trailing slash. This is mentioned in the documentation of the argument.