Skip to content

fix: Apply force result label correctly if force_result_regex is empty#7252

Open
Martchus wants to merge 3 commits intoos-autoinst:masterfrom
Martchus:force-result-carry-over
Open

fix: Apply force result label correctly if force_result_regex is empty#7252
Martchus wants to merge 3 commits intoos-autoinst:masterfrom
Martchus:force-result-carry-over

Conversation

@Martchus
Copy link
Copy Markdown
Contributor

@Martchus Martchus commented Apr 8, 2026

This seems to work as-is. I also temporarily removed the code responsible for this in sub carry_over_bugrefs which caused the newly added checks to fail.

Related ticket: https://progress.opensuse.org/issues/199124

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.95%. Comparing base (e9cf264) to head (127725a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7252   +/-   ##
=======================================
  Coverage   99.95%   99.95%           
=======================================
  Files         420      420           
  Lines       44038    44041    +3     
=======================================
+ Hits        44016    44019    +3     
  Misses         22       22           

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

Martchus added 3 commits April 8, 2026 14:34
This seems to work as-is. I also temporarily removed the code responsible for
this in `sub carry_over_bugrefs` which caused the newly added checks to fail.

Related ticket: https://progress.opensuse.org/issues/199124
If `force_result_regex` is empty, the behavior explained in
https://perldoc.perl.org/perlop#The-empty-pattern-// applies. This means the
force result label is not consistently applied as the "description … does not
match pattern" case can be wrongly assumed depending on the outcome of a the
last regex match. This change fixes that by ignoring the check if
`force_result_regex` is empty.

Related ticket: https://progress.opensuse.org/issues/199124
* Rewrite the unclear phrasing "If undefined and by default"
* Use "apply" instead of "accepted" which makes more sense here
* Remove the unclear "no description is expected" part

Related ticket: https://progress.opensuse.org/issues/199124
@Martchus Martchus force-pushed the force-result-carry-over branch from 87b0234 to 127725a Compare April 8, 2026 12:34
@Martchus Martchus changed the title test: Verify applying force_result label from carried over comments fix: Apply force result label correctly if force_result_regex is empty Apr 8, 2026
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.

2 participants