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

💚 Fix flaky msgraph test #4896

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

sergei-maertens
Copy link
Member

The lack of deterministic ordering when processing the submission attachments can cause tests to sometimes fail in CI.

When no explicit ordering is specified, Postgres figures out an ordering which tends to correspond to how the tuples/records are stored on disk, and on particular bad alignment of the stars the later-created record can appear before earlier ones, being returned in a non-intuitive order. For this reason, you should always make ordering explicit or if ordering doesn't matter, write assertions without assuming any ordering.

In this case, making the order explicit is the simplest fix.

The lack of deterministic ordering when processing the submission
attachments can cause tests to sometimes fail in CI.

When no explicit ordering is specified, Postgres figures out an ordering
which tends to correspond to how the tuples/records are stored on disk,
and on particular bad alignment of the stars the later-created record
can appear before earlier ones, being returned in a non-intuitive
order. For this reason, you should always make ordering explicit or
if ordering doesn't matter, write assertions without assuming any
ordering.

In this case, making the order explicit is the simplest fix.
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.62%. Comparing base (1ba739e) to head (4729ee7).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4896   +/-   ##
=======================================
  Coverage   96.62%   96.62%           
=======================================
  Files         757      757           
  Lines       25945    25945           
  Branches     3419     3419           
=======================================
  Hits        25069    25069           
  Misses        613      613           
  Partials      263      263           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens sergei-maertens merged commit 3e7b959 into master Dec 10, 2024
32 of 33 checks passed
@sergei-maertens sergei-maertens deleted the cleanup/flaky-msgraph-test branch December 10, 2024 08:04
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.

1 participant