Skip to content

Return override list in the right order (bugfix) #1856

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pieqq
Copy link
Collaborator

@pieqq pieqq commented Apr 9, 2025

Description

The overrides are visited in this order:

  • inline overrides
  • category overrides
  • certification status overrides

They should be returned in the same order (not sorted), so that they are applied in the same order (meaning certifiaction status overrides should overwrite any inline overrides).

Resolved issues

Fix #1492

Documentation

Tests

  • Unit tests

Copy link

codecov bot commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 50.29%. Comparing base (7391273) to head (539f867).
Report is 32 commits behind head on main.

Files with missing lines Patch % Lines
checkbox-ng/plainbox/impl/unit/testplan.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1856      +/-   ##
==========================================
+ Coverage   50.16%   50.29%   +0.13%     
==========================================
  Files         381      381              
  Lines       40856    40885      +29     
  Branches     6857     6863       +6     
==========================================
+ Hits        20494    20563      +69     
+ Misses      19632    19584      -48     
- Partials      730      738       +8     
Flag Coverage Δ
checkbox-ng 70.23% <80.00%> (+0.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

The overrides are visited in this order:

- inline overrides
- category overrides
- certification status overrides

They should be returned in the same order (not sorted), so that they are
applied in the same order (meaning certifiaction status overrides should
overwrite any inline overrides).

Fix #1492
@pieqq pieqq force-pushed the 1492-override-list branch from 1afcf80 to 4852cb9 Compare April 14, 2025 13:07
@pieqq pieqq marked this pull request as draft May 6, 2025 12:24
This is required because of py3.5
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.

Some status of cases are still be non-blocker even apply blocker to .* to test plan
1 participant