Skip to content

fix: ignore development job groups in openQA overview links#442

Merged
mergify[bot] merged 2 commits intoopenSUSE:masterfrom
okurz:feature/038_poo197897_ignore_devel_groups_in_posted_comments
Mar 18, 2026
Merged

fix: ignore development job groups in openQA overview links#442
mergify[bot] merged 2 commits intoopenSUSE:masterfrom
okurz:feature/038_poo197897_ignore_devel_groups_in_posted_comments

Conversation

@okurz
Copy link
Member

@okurz okurz commented Mar 13, 2026

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 &not_group_glob=Devel%2CTest 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

@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (38dbbc2) to head (9a1a3ed).
⚠️ Report is 2 commits behind head on master.

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.
📢 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.

okurz added a commit to okurz/qem-bot that referenced this pull request Mar 15, 2026
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
Copy link
Contributor

@asmorodskyi asmorodskyi left a comment

Choose a reason for hiding this comment

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

LGTM

okurz added a commit to okurz/qem-bot that referenced this pull request Mar 17, 2026
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
@okurz okurz force-pushed the feature/038_poo197897_ignore_devel_groups_in_posted_comments branch from 7a1879c to a811c1c Compare March 17, 2026 10:33
okurz added 2 commits March 18, 2026 10:34
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 &not_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
@okurz okurz force-pushed the feature/038_poo197897_ignore_devel_groups_in_posted_comments branch from a811c1c to 9a1a3ed Compare March 18, 2026 09:34
@mergify
Copy link
Contributor

mergify bot commented Mar 18, 2026

This pull request, with head sha 9a1a3ed2be23f79847d269e0ec8d2e451a70d175, has been successfully merged with fast-forward by Mergify.

This pull request will be automatically closed by GitHub.

As soon as GitHub detects that the sha 9a1a3ed2be23f79847d269e0ec8d2e451a70d175 is part of the master branch, it will mark this pull request as merged.

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 feature/038_poo197897_ignore_devel_groups_in_posted_comments, this means GitHub will fail to detect the merge.

@mergify mergify bot merged commit 9a1a3ed into openSUSE:master Mar 18, 2026
8 checks passed
@okurz okurz deleted the feature/038_poo197897_ignore_devel_groups_in_posted_comments branch March 18, 2026 10:10
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