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

Progress bar test susceptible to timing failures #12428

Merged
merged 1 commit into from Dec 9, 2020

Conversation

SimonRichardson
Copy link
Member

The progress bar tests are susceptible to timing failures if running on
slow CI boxes. The fix is to pass in a clock to prevent that from
happening, so when we run the tests we can pass in our own mock clock
which we can target exactly the time we want to test against.

QA steps

Tests pass, along with the following still working!

$ export JUJU_DEV_FEATURE_FLAGS=charm-hub
$ juju bootstrap lxd test
$ juju download ubuntu

The progress bar tests are susceptible to timing failures if running on
slow CI boxes. The fix is to pass in a clock to prevent that from
happening, so when we run the tests we can pass in our own mock clock
which we can target exactly the time we want to test against.
Copy link
Contributor

@achilleasa achilleasa left a comment

Choose a reason for hiding this comment

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

Ah. Sorry I missed the use of the real clock in the tests.

@SimonRichardson
Copy link
Member Author

Ah. Sorry I missed the use of the real clock in the tests.

Which makes me think that upstream doesn't test this on slow machines or how have they never run into this before 🤔

@SimonRichardson
Copy link
Member Author

$$merge$$

@SimonRichardson SimonRichardson changed the base branch from develop to 2.9 December 9, 2020 10:12
@SimonRichardson
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit 18aff0b into juju:2.9 Dec 9, 2020
@SimonRichardson SimonRichardson deleted the fix-progress-bar-tests branch December 9, 2020 10:42
@achilleasa achilleasa mentioned this pull request Dec 10, 2020
jujubot added a commit that referenced this pull request Dec 10, 2020
#12439

This PR is a forward port of 2.9 into develop.

It includes the following:
- 97fbb53 (upstream/2.9, origin/2.9, 2.9) Merge pull request #12437 from achilleasa/2.9-set-unit-error-state-when-relation-created-hooks-fail
- 0350a3a Merge pull request #12414 from hmlanigan/charmhub-resources-part-2
- c0b7a49 Merge pull request #12434 from SimonRichardson/charmhub-bundle-yaml
- 62586b8 Merge pull request #12432 from SimonRichardson/fix-arm-unit-tests
- 28b46fc Merge pull request #12433 from hmlanigan/charmhub-caas-common-facade
- 18aff0b (manadart/2.9) Merge pull request #12428 from SimonRichardson/fix-progress-bar-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants