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

ci: fix flaky test_allocation_csv tests #9953

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

rb-determined-ai
Copy link
Contributor

@rb-determined-ai rb-determined-ai commented Sep 18, 2024

test_cmd_capture was flaking around maybe 1% of the time.

I can't tell if the failure was that timestamp_before is non-inclusive or if was just a rounding error somewhere, but adding only a couple seconds to the boundaries seems to be enough to avoid flakes.

I fixed the other tests in the file too. One test had been patched already... but not the others.

Example flake.

test_cmd_capture was flaking around maybe 1% of the time.

I can't tell if the failure was that timestamp_before is non-inclusive
or if was just a rounding error somewhere, but adding only a couple
seconds to the boundaries seems to be enough to avoid flakes.

I fixed the other tests in the file too.  One test had been patched
already... but not the others.
Copy link

netlify bot commented Sep 18, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 0866346
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66ea3b9da94691000828ab02
😎 Deploy Preview https://deploy-preview-9953--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.50%. Comparing base (062cb52) to head (0866346).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9953   +/-   ##
=======================================
  Coverage   54.50%   54.50%           
=======================================
  Files        1253     1253           
  Lines      156630   156630           
  Branches     3599     3600    +1     
=======================================
  Hits        85368    85368           
  Misses      71129    71129           
  Partials      133      133           
Flag Coverage Δ
backend 45.14% <ø> (ø)
harness 72.75% <ø> (ø)
web 54.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@azhou-determined azhou-determined left a comment

Choose a reason for hiding this comment

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

not sure what these tests are trying to test, could we avoid this time flakiness altogether and just mock it? 🤷‍♀️

@rb-determined-ai rb-determined-ai merged commit 004c194 into main Sep 18, 2024
87 of 99 checks passed
@rb-determined-ai rb-determined-ai deleted the rb/test-cmd-capture branch September 18, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants