Skip to content
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

Download database dumps first in CentOS CI #2981

Merged
merged 3 commits into from Feb 7, 2019

Conversation

bowlofeggs
Copy link
Contributor

There are two commits in this pull request, with detailed commit messages. The overall theme of this pull request is to make sure that database downloads only happen once, even when multiple bodhi-ci processes are run in CentOS CI.

Prior to this commit, every run of the integration test suite would
download a copy of the Fedora Infrastructure's database dumps. The
infrastructure only produces a backup once a day, so this is
inefficient for developers who work on Bodhi often.

This commit adjusts it to only download the database dump if we
don't have it already or if the copy we have is older than a day.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
@bowlofeggs bowlofeggs added High priority These issues are higher priority than normal Tests Issues pertaining to Bodhi's tests Crash Issues related to an unhandled crash labels Feb 6, 2019
@bowlofeggs bowlofeggs requested a review from a team as a code owner February 6, 2019 21:27
Prior to this commit, if several bodhi-ci processes were run in
parallel, each of them would download their own copy of the
database dump. Currently this is how CentOS CI runs our tests, and
this led to a problem where one process would overrwrite the file
that another process was currently reading, which led to problems.

This new command allows us to run a single process of bodhi-ci to
download the integration test datatbase dumps before we fan out to
many processes in CentOS CI. Combined with the prior commit that
skips downloading recently modified files, we can now be sure that
the fanned out processes in CentOS CI will not write files that
others are reading, because they will all skip the download job
now.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
devel/ci/bodhi-ci Show resolved Hide resolved
devel/ci/bodhi-ci Show resolved Hide resolved
@mergify mergify bot merged commit 0330ee1 into fedora-infra:develop Feb 7, 2019
@bowlofeggs bowlofeggs deleted the bodhi-ci-dl_separately branch February 7, 2019 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash Issues related to an unhandled crash High priority These issues are higher priority than normal Tests Issues pertaining to Bodhi's tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants