Repository navigation
✨ feat(lab): LAB-H05 evidence collector layout - #266
Merged
Merged
Conversation
Offline collector creates artifacts/lab/<RUN_ID>/ stubs (manifest, scenario matrix, limitations, pprof/timings) plus retention notes and a redaction scan stub for H06 — meta-tested without kubectl.
There was a problem hiding this comment.
Pull request overview
Adds an offline “lab evidence bundle” scaffold for LAB-H05 / DOC-02 by introducing a small collector CLI plus a shared library, and a meta test that asserts the on-disk layout and stub content contracts needed by H06.
Changes:
- Introduces
hack/lab/collect-evidence.shCLI to create/validateartifacts/lab/<RUN_ID>/with DOC-02 stub files and optional directories. - Adds
hack/lab/lib/evidence.shhelpers for layout creation/validation plus an initial redaction-scan stub. - Adds
hack/test/lab_evidence_layout_meta_test.shto validate the CLI + library produce the expected layout and stub anchors.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| hack/test/lab_evidence_layout_meta_test.sh | Meta test asserting the evidence layout contract and stub-content anchors. |
| hack/lab/lib/evidence.sh | Core layout helper functions and redaction scan stub used by the collector/test. |
| hack/lab/collect-evidence.sh | Thin CLI wrapper to generate and validate the evidence bundle under an output root. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+163
to
+168
| while IFS= read -r -d '' f; do | ||
| if grep -Eq '^(clusters:|users:)|BEGIN [A-Z0-9 ]*PRIVATE KEY|password=|token=' "${f}" 2>/dev/null; then | ||
| printf 'lab_evidence_redaction_scan_stub: forbidden pattern in %s\n' "${f}" >&2 | ||
| hit=1 | ||
| fi | ||
| done < <(find "${run_dir}" -type f -print0 2>/dev/null) |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
decaa4961; directmainpush blocked by GH013 (PR + status checks)Test plan
bash hack/test/lab_evidence_layout_meta_test.shbash hack/test/lab_harness_meta_suite.sh