fix: ignore development job groups in openQA overview links#442
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #442 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 94 94
Lines 8942 8954 +12
Branches 462 462
=========================================
+ Hits 8942 8954 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Motivation: Avoid "if not" pattern in ternary assignment to reduce cognitive load, as suggested in PR openSUSE#442 review. Design Choices: Swapped the ternary order to use a positive condition. User Benefits: Better code maintainability. Related issue: openSUSE#442
Motivation: Avoid "if not" pattern in ternary assignment to reduce cognitive load, as suggested in PR openSUSE#442 review. Design Choices: Swapped the ternary order to use a positive condition. User Benefits: Better code maintainability. Related issue: openSUSE#442
7a1879c to
a811c1c
Compare
Motivation: qem-bot ignores development and test job groups during approval logic. However, the openQA overview links (and badges) in posted comments included all jobs, which led to confusion when links showed failures in ignored groups. Design Choices: - Appended ¬_group_glob=*Devel*%2C*Test* to openQA overview and badge URLs in openqabot/commenter.py. - Made this conditional on config.settings.allow_development_groups being unset, matching the internal logic in openqabot/openqa.py. - Updated tests to verify the URL parameter's presence/absence based on configuration. User Benefits: Users will now see openQA overview links in comments that accurately reflect the set of jobs considered by qem-bot for approval, reducing confusion about "ignored" failures. Related progress issue: https://progress.opensuse.org/issues/197897
Motivation: Avoid "if not" pattern in ternary assignment to reduce cognitive load, as suggested in PR openSUSE#442 review. Design Choices: Swapped the ternary order to use a positive condition. User Benefits: Better code maintainability. Related issue: openSUSE#442
a811c1c to
9a1a3ed
Compare
|
This pull request, with head sha This pull request will be automatically closed by GitHub.As soon as GitHub detects that the sha It is possible for this pull request to remain open if this detection does not happen, this usually happens when a force-push is done on this branch |
Motivation:
qem-bot ignores development and test job groups during approval logic. However,
the openQA overview links (and badges) in posted comments included all jobs,
which led to confusion when links showed failures in ignored groups.
Design Choices:
in openqabot/commenter.py.
unset, matching the internal logic in openqabot/openqa.py.
configuration.
User Benefits:
Users will now see openQA overview links in comments that accurately reflect
the set of jobs considered by qem-bot for approval, reducing confusion about
"ignored" failures.
Related progress issue: https://progress.opensuse.org/issues/197897