Skip to content

runner.docker: Set docker.image setting to the latest build-* tag by default#168

Merged
tsibley merged 4 commits intomasterfrom
trs/check-setup/set-default-image
Apr 5, 2022
Merged

runner.docker: Set docker.image setting to the latest build-* tag by default#168
tsibley merged 4 commits intomasterfrom
trs/check-setup/set-default-image

Conversation

@tsibley
Copy link
Contributor

@tsibley tsibley commented Apr 5, 2022

This is called when the runner is set as the default runner by
nextstrain check-setup --set-default.

Partially resolves #167.


See other commit messages for more details.

Testing

Tested new setting of defaults locally. pytest passes locally.

tsibley added 4 commits April 5, 2022 11:43
…instead of the "legacy" ConfigParser.set() API.  They're functionally
equivalent, but I noticed other places in this module use the mapping
protocol (e.g. del config[section]) where possible, so keep our usage
consistent.
Using a get() + conditional set() isn't appropriate as they're
separately locked and require reading the config file twice (and thus
can be inconsistent/corrupting).  In practice it's likely to be fine
given our spare usage, but the mapping protocol's .setdefault() is right
there so might as well use it.
Under --set-default, check-setup sets core.runner, and now the default
runner itself has a chance to set additional default config.
…default

This is called when the runner is set as the default runner by
`nextstrain check-setup --set-default`.

Partially resolves <#167>.
@tsibley tsibley requested a review from a team April 5, 2022 18:54
Copy link
Member

@victorlin victorlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this PR is linked to close #167, just making sure that's intentional.

@tsibley
Copy link
Contributor Author

tsibley commented Apr 5, 2022

It's not, but I can't unlink it because of the reference in the commit message. (Well, I could rewrite the commit message, but meh, it's clear to humans.)

@tsibley tsibley merged commit 08a917e into master Apr 5, 2022
@tsibley tsibley deleted the trs/check-setup/set-default-image branch April 5, 2022 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent image version usage when no docker.image setting

2 participants