Fix repo setting logic in global config#319
Conversation
|
yes I am aware this is not a nicest fix. I'm open to corrections. I hate everything. |
|
Can you describe, in words, what the intended behavior should be? Why repositories with "dom0" in name are special? |
|
There are two repo widgets:
Should this go into a comment? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #319 +/- ##
==========================================
- Coverage 92.73% 92.67% -0.06%
==========================================
Files 66 66
Lines 13618 13631 +13
==========================================
+ Hits 12628 12633 +5
- Misses 990 998 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Yes, that would be helpful |
|
ok done |
| # the selected option) | ||
| # checkbuttons for everything else (where we just want to enable/disable | ||
| # based on state) | ||
| dom0_found = False |
There was a problem hiding this comment.
This is all very confusing... If leaving this structure, at least make this variable name more descriptive. Maybe dom0_cutoff_found?
Alternatively, a more readable option would be to abandon common handling for both types, and have a helper dict with list of repositories to enable for each dom0 selection. Like:
{ "qubes-dom0-current-testing": ["qubes-dom0-current-testing", "qubes-dom0-security-testing", "qubes-dom0-current"],
"qubes-dom0-security-testing" : ["qubes-dom0-security-testing", "qubes-dom0-current"],
"qubes-dom0-current": ["qubes-dom0-current"]
}Abandon the hope of having a clever single solution, just do dom0 updates and template repos separately. Also added a test for all the bugs. fixes QubesOS/qubes-issues#9366 fixes QubesOS/qubes-issues#9868 fixes QubesOS/qubes-issues#8802
|
Alright, I rewrote it for less "I'm clever" and more "this can be understood by anyone, including me in a month". Plus bonus test. |
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2026071518-devel&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=2026050504-devel&flavor=update
Failed tests13 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/176874#dependencies 32 fixed
Unstable testsDetails
Performance TestsPerformance degradation:16 performance degradations
Remaining performance tests:95 tests
|
fixes QubesOS/qubes-issues#9366
fixes QubesOS/qubes-issues#9868
fixes QubesOS/qubes-issues#8802