-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Avoid reusing disposable VM names for some predefined time #603
Conversation
Why not |
Oh. Forgot that. We had discussed datetime module. When I switched to time module (since it was already used in the code), I forgot to re-implement monotonic. I will amend the code and force push in a second. |
726d97d
to
7247c3c
Compare
Making Pylint happy |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #603 +/- ##
==========================================
+ Coverage 69.35% 69.36% +0.01%
==========================================
Files 58 58
Lines 11919 11929 +10
==========================================
+ Hits 8266 8275 +9
- Misses 3653 3654 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The change itself looks good, but can you add a unit test? Tests for VMCollection are in qubes/tests/app.py. And you can mock the
|
Sure. Will work on it. |
I added the Unit Test in the second commit @marmarek . Unit test number 999999 is inspired by the Dilbert comic strip URL which was added to the original function by fepitre. |
Ok. Test completed successfully. Here is the link: https://gitlab.com/QubesOS/qubes-core-admin/-/jobs/7250348262#L3221 |
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2024071910-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2024070519-4.3&flavor=update
Failed tests9 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/105374#dependencies 5 fixed
Unstable tests
|
Fixes: QubesOS/qubes-issues#8512