feat(stage-run): mounts and dry run, Phase 2 part 2 #17
No reviewers
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
WulfScience-FOSS/wulf-dev!17
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/phase-2-mounts-dry-run"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 2, part 2: mounts and dry run (
scripts/stage-run.sh)Computes the mounts of a stage from
stages.yamland prints them. No container, no network and no write:stage-run.sh STAGE [--dry-run]prints<mode>TAB<host>TAB<container>sorted. Part 3 starts the container. The project stays at effort leveltool.What the script does
stages.yamlform, unknown or repeated keys, merge keys, a NUL in a path, the characters newline, tab, colon and comma, a path both mounted and innever, both modes, duplicates, a missing path..git,.env*, the folderrunsand the review recordsdocs/reviews, whatever the declaration says; names compared without regard to ASCII case, at any depth of a listed folder; an unreadable folder is refused and named.a listed path may not be a link or pass through one; list the real path). A link found inside a listed folder is left as it is, because it only resolves to what is mounted in the container. Files of a shared module are listed by their real paths. The comparison withneveruses the real path of aneverentry.stages.yaml, filesystem), withtests/order-of-checks.bats.scripts/lib.sh:STAGES,is_stage,join_list,resolve_real, an optional shown path forconfig_file_ok. README row and usage.Changes in this PR (one bullet per logical change)
runs; a link resolved only into a listed path; the same inside a path a stage can write; a listed path is never a link) and ADR-WULF-004 once (common inputs by real paths).docs/design/stage-runner.md(DE-S1 to DE-S7), rewritten in round 3.tests/stage-run.bats(326),tests/order-of-checks.bats(20), helpers and acceptance criteria.reports/audit-stage-runner-mounts*.md), issues 0069 to 0071 closed, 0072 to 0074 deferred.docs/reviews/phase-2-mounts-dry-run/), each finding fixed on its own branch and commit; the roadmap ticks P2-2 to P2-5.Review history
neverpath is resolved (deferred as 0075), and two points of 0074 are void (commented on 0074). Record:docs/reviews/phase-2-mounts-dry-run/review-004.Verification
PR createdtest), 0 failed.stage-run.batsandorder-of-checks.batson an export of HEAD under bash 5.3 and the system bash 3.2: 346 passed. It mutated the script 16 ways; 14 are caught and the two that survive each fall back on the other check.Not covered
image, case-variant double mounts, a read-only path inside a read-write folder,stages.yamlin a read-write mount) for the design of Part 3; 0075 (wording).findwere read, not run.🤖 Generated with Claude Code