Skip to content

Create RVS snap common directory if it does not exist (BugFix)#2481

Open
pedro-avalos wants to merge 2 commits into
mainfrom
fix-rvs-missing-dir
Open

Create RVS snap common directory if it does not exist (BugFix)#2481
pedro-avalos wants to merge 2 commits into
mainfrom
fix-rvs-missing-dir

Conversation

@pedro-avalos

@pedro-avalos pedro-avalos commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator

Description

  • The RVS snap doesn't seem to create the common directory when it's installed
  • The RVS tests also require elevation to root user

Resolved issues

Documentation

Tests

https://certification.canonical.com/hardware/202606-38900/submission/494795/test-results/pass/

@codecov

codecov Bot commented Apr 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.53%. Comparing base (2c81ec0) to head (ca9ca52).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2481   +/-   ##
=======================================
  Coverage   59.53%   59.53%           
=======================================
  Files         481      481           
  Lines       48579    48580    +1     
  Branches     8695     8695           
=======================================
+ Hits        28922    28923    +1     
  Misses      18745    18745           
  Partials      912      912           
Flag Coverage Δ
provider-gpgpu 93.14% <100.00%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in a week.

@github-actions github-actions Bot added the Stale label Jun 17, 2026
@pedro-avalos pedro-avalos force-pushed the fix-rvs-missing-dir branch from 5714f89 to ca9ca52 Compare June 17, 2026 19:52
@pedro-avalos pedro-avalos marked this pull request as ready for review June 17, 2026 19:53
@@ -51,6 +51,7 @@ def __init__(self, rvs: Path, config: Path) -> None:
# CHECKBOX-2021: Snap confinement prevents access to /usr/share

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this still apply if it's run as root now?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yep, snapd will still prevent the snap from accessing that directory

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