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

aggregator: fix flakiness of tests that uses the snapshotter and simplify http server tests #2243

Merged

Conversation

Alenar
Copy link
Collaborator

@Alenar Alenar commented Jan 22, 2025

Content

This PR includes:

  • A fix to the flakiness in tests that uses snapshotter archive verification introduced in ca3f524.
  • A simplification of http server tests by removing all usage of the SERVER_BASE_PATH as the tests don't need it.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Alenar and others added 2 commits January 22, 2025 18:02
…ters

Before the module and name params had to be of the same type (str if
str, string if string, ...) now we can mixed them (ie str for module and
string for name).

Co-authored-by: Damien Lachaume <[email protected]>
Calling `set_sub_temp_dir` would always remove the parent directory of
the subdirectory that the caller asked to create, leading to flakiness
as if two tests called it they could remove data from each others.
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

clippy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link

github-actions bot commented Jan 22, 2025

Test Results

    4 files  ±0     52 suites  ±0   10m 18s ⏱️ -1s
1 539 tests ±0  1 539 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 795 runs  ±0  1 795 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit a456b7f. ± Comparison against base commit c54bf77.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
mithril-aggregator ‑ snapshotter::tests::can_set_temp_dir_with_path_or_str
mithril-aggregator ‑ snapshotter::tests::can_set_temp_dir_with_str_or_string

♻️ This comment has been updated with latest results.

@Alenar Alenar force-pushed the ensemble/aggregator/fix-flakiness+simplify-http-server-tests branch from 5022f7c to 2387c7f Compare January 22, 2025 17:45
@Alenar Alenar temporarily deployed to testing-preview January 22, 2025 17:54 — with GitHub Actions Inactive
@Alenar Alenar temporarily deployed to testing-sanchonet January 22, 2025 17:54 — with GitHub Actions Inactive
Copy link
Collaborator

@sfauvel sfauvel left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jpraynaud jpraynaud left a comment

Choose a reason for hiding this comment

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

LGTM 👍

* mithril-aggregator from `0.6.17` to `0.6.18`
* mithril-common from `0.4.106` to `0.4.107`
@Alenar Alenar temporarily deployed to testing-preview January 23, 2025 09:08 — with GitHub Actions Inactive
@Alenar Alenar temporarily deployed to testing-sanchonet January 23, 2025 09:08 — with GitHub Actions Inactive
@Alenar Alenar merged commit e1de875 into main Jan 23, 2025
43 checks passed
@Alenar Alenar deleted the ensemble/aggregator/fix-flakiness+simplify-http-server-tests branch January 23, 2025 09:14
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.

4 participants