Skip to content

ci: Only run test-pathogen-repo-ci builds using the Docker runtime#154

Merged
tsibley merged 1 commit intomasterfrom
trs/pathogen-repo-ci/only-docker-runtime
May 12, 2023
Merged

ci: Only run test-pathogen-repo-ci builds using the Docker runtime#154
tsibley merged 1 commit intomasterfrom
trs/pathogen-repo-ci/only-docker-runtime

Conversation

@tsibley
Copy link
Copy Markdown
Contributor

@tsibley tsibley commented May 11, 2023

The point is to test the new Docker runtime image, so we don't need to spend the time testing the Conda runtime too.

Related issue(s)

nextstrain/.github#42

Testing

  • Checks pass

Before merge

The point is to test the new Docker runtime image, so we don't need to
spend the time testing the Conda runtime too.
@tsibley tsibley requested a review from a team May 11, 2023 16:16
tsibley added a commit to nextstrain/conda-base that referenced this pull request May 11, 2023
[ Commit message based on that of 12000a20 in nextstrain/docker-base.¹
  Code changes also based on that commit, plus subsequent commits.² ]

A useful check for if new packages will break our pathogen builds.

I included all pathogen repos that already use our pathogen-repo-ci
reusable workflow.  It should be minimal effort to maintain this list
over time—I expect it to only grow—but perhaps in the future we will
want to abstract it out into a shared list of known pathogen repos.

I don't like that we have to copy the build-args for a few of the repos
here since it'll be easy for this copy to diverge from the repo's
authoritative build-args, but it's necessary for now.  Over time as we
work towards increased automation of pathogen builds, I think we can get
rid of this build-args copy by further standardizing how each repo
configures itself for automation.  For example, instead of specifying
build-args in a repo's CI workflow, the args for CI could be stored in a
broader workflow metadata file (e.g. nextstrain-workflow.yaml) read by
pathogen-repo-ci, or defined by some other convention.

An alternative to directly running pathogen-repo-ci against each repo
here would be instead triggering the CI workflows themselves within each
repo.  The downside to that is it would divorce the outcomes of those
workflows from this one and render them not visible from PRs in this
repo.  It would also require updates to each repo to support triggering
and passing in of additional parameters (i.e. for the package).  And
finally those CI workflows sometimes run other jobs, like linting and
other integration tests (e.g. with Cram), that aren't always necessary
to run with a new package.

Related-to: <nextstrain/docker-base#148>
Related-to: <nextstrain/docker-base#150>
Related-to: <nextstrain/docker-base#151>
Related-to: <nextstrain/docker-base#154>

¹ <nextstrain/docker-base@12000a20>
² <nextstrain/docker-base@bc22a0bc>
  <nextstrain/docker-base@0a20a474>
  <nextstrain/docker-base@75254e92>
@tsibley tsibley force-pushed the trs/pathogen-repo-ci/only-docker-runtime branch from 6836da0 to 75254e9 Compare May 12, 2023 16:40
@tsibley tsibley merged commit 50e442a into master May 12, 2023
@tsibley tsibley deleted the trs/pathogen-repo-ci/only-docker-runtime branch May 12, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants