Skip to content
Snippets Groups Projects

Fix flaky tests finding current Geo node

Merged Michael Kozono requested to merge mk/fix-flaky-tests-no-current-node into master
All threads resolved!

What does this MR do and why?

I am not sure what state is leaking but it is likely from some other Geo test (or maybe more than one). These affected tests are "finding" a Geo node in the DB with a name that matches the machine's "Geo node name". These tests expect to NOT find such a match.

I tried rspec --bisect with one of the sets of specs in one of the failed jobs, but it did not reproduce the failure.

All three related issues were created around a week ago. I looked through MRs that were merged around that time and didn't find anything suspicious.

As a quick fix, I'm making these tests more robust by stubbing the methods they check in order to determine that 1) rows do exist in the geo_nodes table, and 2) none of those rows have a name that matches this machine's "Geo node name".

This quick fix is reasonable, since Geo tests with this kind of setup are rare.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Michael Kozono

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading