fix: quote chmod paths and remove fragile sha256sum pipe in templates#43
fix: quote chmod paths and remove fragile sha256sum pipe in templates#43jamesadevine merged 1 commit intomainfrom
Conversation
- Quote $(Pipeline.Workspace) in chmod +x to handle paths with spaces - Replace sha256sum -c ... | grep -q with plain sha256sum -c ... which already exits non-zero on failure, avoiding masked errors without pipefail - Update test assertion to match new checksum pattern Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🔍 Rust PR ReviewSummary: Changes are correct and well-motivated — one minor test quality note worth knowing. Findings✅ What Looks Good
|
Addresses merlinbot feedback on generated pipeline YAML:
Unquoted chmod path —
chmod +x $(Pipeline.Workspace)/...could break if the workspace path contains spaces or glob characters. Now quoted consistently.Fragile sha256sum pipe —
sha256sum -c ... | grep -q ": OK"can mask a failing checksum withoutpipefail. Replaced with plainsha256sum -c ...which already exits non-zero on failure.Changes
templates/base.yml: Fix 5 sha256sum pipes + 1 unquoted chmodtemplates/1es-base.yml: Fix 3 sha256sum pipes + 1 unquoted chmodtests/compiler_tests.rs: Update assertion to match new pattern