Skip to content

tests: Fix more cleanups; ci: Attach batch.txt and batch.report on failures#519

Merged
richm merged 3 commits intolinux-system-roles:mainfrom
martinpitt:tests
Apr 16, 2025
Merged

tests: Fix more cleanups; ci: Attach batch.txt and batch.report on failures#519
richm merged 3 commits intolinux-system-roles:mainfrom
martinpitt:tests

Conversation

@martinpitt
Copy link
Copy Markdown
Contributor

@martinpitt martinpitt commented Apr 16, 2025

This should fix the tests_remove_mount.yml and tests_existing_lvm_pool.yml follow-up failures from #518 (comment) . It should also make tests_lvm_pool_pv_grow.yml fail "correctly", i.e. with the "Unexpected difference between PV size" error (which you get when running this in isolation), instead of the "/dev/foo: already exists in filesystem" which is due to a dirty VM.

batch.txt is not predictable (tests are run in file system order, not
asciibetically or otherwise reproducibly). To aid with local
reproduction, attach the generated batch file to the test artifact.
Commit d038078 only added cleanups for half of the tests, these
are the other two.
Always run the cleanup task, so that subsequent tests don't run into the
existing pool.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.72%. Comparing base (59fd1c6) to head (20886ff).
Report is 43 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (59fd1c6) and HEAD (20886ff). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (59fd1c6) HEAD (20886ff)
sanity 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #519      +/-   ##
==========================================
- Coverage   16.54%   10.72%   -5.83%     
==========================================
  Files           2        8       +6     
  Lines         284     1949    +1665     
  Branches       79        0      -79     
==========================================
+ Hits           47      209     +162     
- Misses        237     1740    +1503     
Flag Coverage Δ
sanity ?

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@martinpitt
Copy link
Copy Markdown
Contributor Author

Nice, as planned -- the run is down to three failures, and tests_lvm_pool_pv_grow failed correctly

@richm
Copy link
Copy Markdown
Contributor

richm commented Apr 16, 2025

@martinpitt ready to merge?

@martinpitt
Copy link
Copy Markdown
Contributor Author

Yes! I'm just not sure about that codecov failure, is that "expected"?

@richm
Copy link
Copy Markdown
Contributor

richm commented Apr 16, 2025

Yes! I'm just not sure about that codecov failure, is that "expected"?

Yes

@richm richm merged commit a1af7f8 into linux-system-roles:main Apr 16, 2025
20 of 22 checks passed
@martinpitt martinpitt deleted the tests branch April 16, 2025 14:17
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.

3 participants