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

Investigate test flake in securedrop-admin integration tests #3553

Closed
redshiftzero opened this issue Jun 22, 2018 · 9 comments · Fixed by #4466
Closed

Investigate test flake in securedrop-admin integration tests #3553

redshiftzero opened this issue Jun 22, 2018 · 9 comments · Fixed by #4466

Comments

@redshiftzero
Copy link
Contributor

It looks like there's a test flake in the integration tests: see this build

We should resolve quickly as test flakes can be very annoying

@kushaldas
Copy link
Contributor

I could not reproduce this :(

@msheiny
Copy link
Contributor

msheiny commented Jun 22, 2018

yeah i havent caught it yet locally either :|

@redshiftzero
Copy link
Contributor Author

Thanks for checking y'all - removing P-high label - if it doesn't happen again in the next week or so we can close and chalk it up to temporary network issues (a reasonable explanation in that case imho).

@redshiftzero
Copy link
Contributor Author

Ah, here we go, it happened again today: https://circleci.com/gh/freedomofpress/securedrop/15182

These looks to be keyserver issues. Note that this might be turning up an intermittent issue in securedrop-admin update, not necessarily an issue in the integration test, so that should be investigated

@redshiftzero
Copy link
Contributor Author

Once more: https://circleci.com/gh/freedomofpress/securedrop/15266

(and I put the P-high label back on as flaky tests in CI is a recipe for much sadness)

@conorsch
Copy link
Contributor

@conorsch
Copy link
Contributor

Still getting these: https://circleci.com/gh/freedomofpress/securedrop/24343

@eloquence eloquence changed the title investigate possible test flake in securedrop-admin integration tests Investigate test flake in securedrop-admin integration tests Mar 13, 2019
@eloquence
Copy link
Member

We've committed do a time-boxed (2 hour) investigation during the 4/3-4/17 sprint, hopefully getting closer towards resolution.

@conorsch
Copy link
Contributor

conorsch commented May 1, 2019

Spent some time tinkering with the tests in question. The problematic tests are:

tests/test_integration.py::TestGitOperations::test_update
tests/test_integration.py::TestGitOperations::test_update_fails_when_no_signature_present
tests/test_integration.py::TestGitOperations::test_update_with_duplicate_branch_and_tag

Briefly experimented with adding the @flaky decorator on the class, similar to #4004, but that was insufficient to resolve the problems. The errors reported after patching with the decorator included:

================================= 60 passed in 29.59 seconds ====
  py2 runtests: commands[1] | /home/user/securedrop/admin/.tox/py2/bin/coverage combine --append
  No data to combine
  ERROR: InvocationError: '/home/user/securedrop/admin/.tox/py2/bin/coverage combine --append'
  _____________________________________ summary ________________________________________
    pylint: commands succeeded
      flake8: commands succeeded
      ERROR:   py2: commands failed

It appears that the coverage combine action is failing, due to an interaction with the test reruns triggered by flaky. Cursory investigation shows we may be able to leverage the .coveragerc file to accommodate, but haven't taken a stab at it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants