← Back to issue list

Spread should run the doc tests with a nonroot user

View original Github issue

Metadata

Project
rockcraft
Number
#651
Type
issue
State
open
Author
cjdcordeiro
Labels
Type: Documentation
Created
2024-07-24 10:21:08+00:00
Updated
2025-12-11 15:10:58+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done By default, Spread will run the test suites with `sudo`. To be more comprehensive, and specifically for the doc tests (which are public-facing code blocks that must be reproducible), Spread should also run the tests as a nonroot user. ### Why it needs to get done If we only run the tests with `sudo`, then we'll fail to identify documentation bits that ignore how permissions might be set in the user's working environment. For example - #649 . In this case, testing that code block with a nonroot user would've helped identify the documentation issue in advance.

Evaluation history

No evaluation history available.