Skip to content

DMI sane_product missing Mini PC and fix AIO for related jobs (BugFix)#2204

Merged
Hook25 merged 5 commits intomainfrom
bugfix_dmi_sane_product_missing_incorrect
Dec 18, 2025
Merged

DMI sane_product missing Mini PC and fix AIO for related jobs (BugFix)#2204
Hook25 merged 5 commits intomainfrom
bugfix_dmi_sane_product_missing_incorrect

Conversation

@clairlin53
Copy link
Copy Markdown
Contributor

@clairlin53 clairlin53 commented Nov 18, 2025

Bug fix for the PR Dmi resource sane_product to avoid in duplication (bugfix) #2046

Problem

  1. Bug: resource.py file is missing the "Mini PC" type, causing desktop jobs to be skipped.

  2. Bug: Graphics jobs and DIM job are skipped on AIO devices due to flawed "portable" refactor.

Description

Resolved issues

Documentation

Tests

Mini PC

Fail Result:
Manual Test:
https://certification.canonical.com/hardware/202505-36800/submission/458592/test-results/?term=glxgears
Auto Test:
https://certification.canonical.com/hardware/202505-36800/submission/456750/test-results/?term=glxgears

After modified (PASS):
Manual Test:
https://certification.canonical.com/hardware/202505-36800/submission/459713/
Auto Test:
https://certification.canonical.com/hardware/202505-36800/submission/459717/

AIO

Fail Result:

Manual:
https://certification.canonical.com/hardware/202508-37860/submission/456492/test-results/?term=dim
https://certification.canonical.com/hardware/202508-37860/submission/456492/test-results/?term=glxgears
Auto:
https://certification.canonical.com/hardware/202508-37860/submission/456467/test-results/?term=glxgears

After modified (PASS):
Manual Test:
https://certification.canonical.com/hardware/202508-37860/submission/459705/
https://certification.canonical.com/hardware/202508-37850/submission/459704/
https://certification.canonical.com/hardware/202508-37860/submission/459958/
Auto Test:
https://certification.canonical.com/hardware/202508-37860/submission/459708/
https://certification.canonical.com/hardware/202508-37860/submission/459956/

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 18, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 53.65%. Comparing base (47817ad) to head (0537a67).
⚠️ Report is 145 commits behind head on main.

Files with missing lines Patch % Lines
providers/resource/bin/dmi_resource.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2204      +/-   ##
==========================================
+ Coverage   53.49%   53.65%   +0.15%     
==========================================
  Files         401      401              
  Lines       43079    43188     +109     
  Branches     7983     8009      +26     
==========================================
+ Hits        23045    23171     +126     
+ Misses      19223    19205      -18     
- Partials      811      812       +1     
Flag Coverage Δ
checkbox-ng 71.40% <ø> (ø)
checkbox-support 65.29% <ø> (ø)
provider-base 31.02% <ø> (+0.54%) ⬆️
provider-certification-client 57.14% <ø> (ø)
provider-certification-server 57.14% <ø> (ø)
provider-genio 96.90% <ø> (ø)
provider-gpgpu 93.14% <ø> (ø)
provider-iiotg 100.00% <ø> (ø)
provider-resource 39.57% <83.33%> (+0.26%) ⬆️
provider-sru 97.97% <ø> (ø)

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.

Copy link
Copy Markdown
Contributor

@hanhsuan hanhsuan left a comment

Choose a reason for hiding this comment

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

Could we have one new sane_product type to collect AIO to prevent the naming issue in the future ?

@clairlin53 clairlin53 changed the title DMI sane_product missing Mini PC and fix AIO for related jobs(Bugfix) DMI sane_product missing Mini PC and fix AIO for related jobs(BugFix) Nov 19, 2025
@clairlin53 clairlin53 changed the title DMI sane_product missing Mini PC and fix AIO for related jobs(BugFix) DMI sane_product missing Mini PC and fix AIO for related jobs (BugFix) Nov 19, 2025
@clairlin53 clairlin53 requested a review from hanhsuan November 19, 2025 08:26
hanhsuan
hanhsuan previously approved these changes Nov 24, 2025
Copy link
Copy Markdown
Contributor

@hanhsuan hanhsuan left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

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

The point of the sane product was too avoid having in everywhere. Please add another attribute to the resource that tracks this set (which I assume is devices with displays)

@clairlin53 clairlin53 force-pushed the bugfix_dmi_sane_product_missing_incorrect branch from f11e770 to 0537a67 Compare December 18, 2025 08:38
Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

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

+1, thanks

@Hook25 Hook25 merged commit c0a3b5b into main Dec 18, 2025
81 of 82 checks passed
@Hook25 Hook25 deleted the bugfix_dmi_sane_product_missing_incorrect branch December 18, 2025 13:49
stanley31huang pushed a commit that referenced this pull request Dec 23, 2025
#2204)

* DMI sane_product missing Mini PC and fix AIO for related jobs(Bugfix)

* Fix: add missing comma in dmi_resource

* Add_AIO_type

* fix_test_dmi_resource_error

* dmi: add display_type and update sane_product categorization
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.

3 participants