-
Notifications
You must be signed in to change notification settings - Fork 74
Specify fwts data directory for snap checkbox (BugFix) #2252
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2252 +/- ##
==========================================
+ Coverage 53.72% 55.03% +1.30%
==========================================
Files 406 412 +6
Lines 43286 44441 +1155
Branches 7988 8208 +220
==========================================
+ Hits 23254 24456 +1202
+ Misses 19227 19149 -78
- Partials 805 836 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes issue #1997 by ensuring the fwts tool uses the correct data directory when running in a snap environment. When both CHECKBOX_RUNTIME and SNAP environment variables are detected, the script now passes the -j option to fwts with the path to the JSON data files within the snap's checkbox runtime directory.
Key Changes:
- Added snap environment detection and dynamic fwts command construction with the
-jflag - Enhanced type hints throughout the codebase for better type safety
- Fixed unbound variable issues and improved variable initialization
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
This PR fixes #1997 by specifying the
-joption in fwts when we detect that we are in a snap environment.Resolved issues
fwts klogresult #1997Documentation
Basically we are telling fwts to read the directory in checkbox runtime instead of whatever
/usr/share/fwtsis inside a snap.This PR also includes a small workaround for #2295.
Tests
Original unit tests
C3 submission: TODO