Repository navigation
fix(session): use guarded mktemp template and cleanup in smoke test - #1276
Merged
Merged
Conversation
Replace bare mktemp -d at lib/session/observe/tests/smoke.sh:132 with an explicit TMPDIR template and failure guard (rules R1 and R3 of test-mktemp-template-guard), and remove the temporary stub directory on exit and test completion.
Collaborator
Author
independent-check (failed at
|
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.
lib/session/observe/tests/smoke.sh:132to satisfytests/test-mktemp-template-guard.sh(rules R1 and R3) and clean up$stubon exit and completion.bash tests/test-mktemp-template-guard.shflipped from red (10 passed, 1 failed) to green (11 passed, 0 failed),bash lib/session/observe/tests/smoke.shpassed all 120 checks with zero leftover stub dirs, andbash tests/run-all.sh --changed origin/master --timepassed all 13 suites.lib/session/observe/tests/smoke.sh) plus its verification log; rollback is a clean revert.What
Master CI runs #1287 and #1288 failed
test-mktemp-template-guardbecauselib/session/observe/tests/smoke.sh:132(added in PR #1275) used barestub="$(mktemp -d)"without an explicit${TMPDIR:-/tmp}template, failure guard, or cleanup. Replaced line 132 withstub="$(mktemp -d "${TMPDIR:-/tmp}/session-observe-smoke.XXXXXX")" || exit 1, registeredtrap 'rm -rf "${stub:-}"' EXIT, and addedrm -rf "$stub"after case[30b].Demo
Red before (
origin/masterb6c9545b):Green after (
fix/smoke-mktemp-template-guard):Isolated
TMPDIRcleanup check confirmed zerosession-observe-smoke.*directories left behind aftersmoke.shexits.Proof
docs/verification/smoke-mktemp-template-guard.mdBookkeeping
no-board-row: CI failure fix for bare mktemp in smoke.sh introduced by PR #1275