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

Give enough time for replication to complete in unit tests #11185

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

amaltaro
Copy link
Contributor

Complement to #11001

Status

ready

Description

The original changes provided in #11001 were missing this extra function used to create CouchDB replication task in the unit tests. Pass a 6 seconds sleep to ensure that the task is triggered and that documents get to the expected destination in unit tests.

Is it backward compatible (if not, which system it affects?)

YES

Related PRs

Complement to #11001

External dependencies / deployment changes

None

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: failed
    • 6 new failures
    • 330 tests no longer failing
    • 14 tests added
    • 16 changes in unstable tests
  • Python3 Pylint check: failed
    • 6 warnings and errors that must be fixed
    • 5 warnings
    • 38 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 4 comments to review

Details at https://cmssdt.cern.ch/dmwm-jenkins/view/All/job/DMWM-WMCore-PR-test/13348/artifact/artifacts/PullRequestReport.html

@amaltaro
Copy link
Contributor Author

test this please

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: succeeded
    • 13 tests no longer failing
    • 6 changes in unstable tests
  • Python3 Pylint check: failed
    • 6 warnings and errors that must be fixed
    • 5 warnings
    • 38 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 4 comments to review

Details at https://cmssdt.cern.ch/dmwm-jenkins/view/All/job/DMWM-WMCore-PR-test/13349/artifact/artifacts/PullRequestReport.html

@amaltaro amaltaro requested a review from todor-ivanov June 17, 2022 03:36
Copy link
Contributor

@todor-ivanov todor-ivanov left a comment

Choose a reason for hiding this comment

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

thanks @amaltaro looks good. I was about to ask why not moving this number of seconds configurable, but then I noticed the "only in unit tests" usage comment in the docstring. So lets move on with it as it is.

@amaltaro
Copy link
Contributor Author

Exactly. That method is only used by unit tests. Thanks Todor.

@amaltaro amaltaro merged commit 8c840ab into dmwm:master Jun 17, 2022
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.

3 participants