• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nvidia-holoscan / holoscan-cli / 28717148185
77%
main: 77%

Build:
Build:
LAST BUILD BRANCH: pull-request/193
DEFAULT BRANCH: main
Ran 04 Jul 2026 07:27PM UTC
Jobs 1
Files 35
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jul 2026 07:26PM UTC coverage: 79.34% (+2.1%) from 77.248%
28717148185

Pull #198

github

wyli
fix: add destructive-boundary guard to clear-cache

`clear-cache` fed shutil.rmtree() with directories derived from
env-overridable roots (HOLOSCAN_CLI_BUILD_PARENT_DIR / _DATA_DIR) and
repo-root globs, with no safety boundary. A hostile or fat-fingered
value such as `HOLOSCAN_CLI_BUILD_PARENT_DIR=/` made the command report
`Would remove: /` and, without --dryrun under root, would wipe the
filesystem.

Add `_is_safe_to_remove()`: canonicalize each candidate and refuse it
unless it is (1) not a critical anchor (`/`, $HOME, the repo root) or an
ancestor of one, and (2) at or under an approved cache root (the repo
tree, the build parent dir, or the data dir). Refused paths print a
`Refusing to remove:` notice and are skipped.

Also fix the policy regression where `test --clear-cache` forwarded the
test namespace directly: with build/data/install unset, clear-cache
treated it as "clear everything" including downloaded data. Select
build/install explicitly, matching historical HoloHub behavior.

Add destructive-boundary tests covering /, $HOME, the repo root, an
ancestor of the repo root, the happy path, and data preservation on
`test --clear-cache`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pull Request #198: fix: destructive-boundary guard for clear-cache

175 of 200 new or added lines in 9 files covered. (87.5%)

1 existing line in 1 file now uncovered.

3149 of 3969 relevant lines covered (79.34%)

0.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
67.23
15.28% src/holoscan_cli/utils/host_setup.py
7
76.52
11.33% src/holoscan_cli/utils/io.py
6
84.26
3.83% src/holoscan_cli/commands/run.py
1
98.0
-2.0% src/holoscan_cli/commands/clear_cache.py
1
69.12
41.53% src/holoscan_cli/commands/setup_cmd.py

Coverage Regressions

Lines Coverage ∆ File
1
69.12
41.53% src/holoscan_cli/commands/setup_cmd.py
Jobs
ID Job ID Ran Files Coverage
1 28717148185.1 04 Jul 2026 07:27PM UTC 35
79.34
GitHub Action Run
Source Files on build 28717148185
  • Tree
  • List 35
  • Changed 11
  • Source Changed 10
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28717148185
  • Pull Request #198
  • PR Base - main (#28577363279)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc