Skip to content

Add test_image_checker in to checkbox_support to check the image (New)#911

Merged
pieqq merged 1 commit intocanonical:mainfrom
LiaoU3:add_image_source_type_check
Jan 8, 2024
Merged

Add test_image_checker in to checkbox_support to check the image (New)#911
pieqq merged 1 commit intocanonical:mainfrom
LiaoU3:add_image_source_type_check

Conversation

@LiaoU3
Copy link
Copy Markdown
Contributor

@LiaoU3 LiaoU3 commented Jan 4, 2024

Description

After adding this image_checker.py and resource job image_source_and_type, all of the jobs can use this resource job to get the type (classic, core) and source (stock, oem) of the current image.

  • Add image_checker.py into checkbox-support and project.toml
  • Add resource job image_source_and_type to get the type and source of the image

Resolved issues

N/A

Documentation

N/A

Tests

(base) vincent@vincent-XPS-9320:~$ checkbox-support-image_checker -t -s
type: classic
source: stock

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 4, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (2e0f376) 36.58% compared to head (f992fcf) 36.62%.
Report is 6 commits behind head on main.

Files Patch % Lines
...-support/checkbox_support/scripts/image_checker.py 92.30% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #911      +/-   ##
==========================================
+ Coverage   36.58%   36.62%   +0.04%     
==========================================
  Files         310      311       +1     
  Lines       34639    34665      +26     
  Branches     5965     5969       +4     
==========================================
+ Hits        12671    12695      +24     
  Misses      21399    21399              
- Partials      569      571       +2     
Flag Coverage Δ
checkbox-support 50.06% <92.30%> (+0.23%) ⬆️
provider-resource 12.00% <ø> (ø)

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.

@LiaoU3 LiaoU3 force-pushed the add_image_source_type_check branch from df5deac to eed2b93 Compare January 4, 2024 08:22
@LiaoU3 LiaoU3 marked this pull request as ready for review January 4, 2024 08:36
pieqq
pieqq previously approved these changes Jan 8, 2024
Copy link
Copy Markdown
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

When I saw the title and the different methods (get_type, get_source), it took me a little bit of time to realize we were not talking about raster images, but rather ISO images 😆

It's working so I'll approve this PR, but I made a few suggestions below.

Copy link
Copy Markdown
Collaborator

@pieqq pieqq 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!

For info, we might want to revisit this when we start to test hybrid images (images using a classic base, but with a kernel packaged as a snap).

@pieqq pieqq merged commit 156eefb into canonical:main Jan 8, 2024
LiaoU3 added a commit to LiaoU3/checkbox that referenced this pull request Jan 9, 2024
LiaoU3 added a commit to LiaoU3/checkbox that referenced this pull request Mar 20, 2024
binli pushed a commit to binli/checkbox that referenced this pull request Mar 22, 2024
@LiaoU3 LiaoU3 deleted the add_image_source_type_check branch April 2, 2024 08:38
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