fix: [nomad-step-3] S3-fix — deploy.sh crashes on hyphenated job name + wp-oauth double lib/ path (#944) #945
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#945
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-944"
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?
Fixes #944
Changes
AI Review
deploy.sh — tr character class syntax error
blocker
lib/init/nomad/deploy.sh:181: The tr command is missing the closing colon from the POSIX character class names:Without the closing colon,
[:lower]and[:upper]are not POSIX classes — tr treats them as 8 literal characters ([,:,l,o,w,e,r,]). Only those 5 specific letters get remapped (l→u,o→p,w→p,e→e,r→r); every other lowercase letter passes through unchanged. The crash fix works (hyphen does map to underscore), but the per-job timeout-override variable lookup is silently broken for most job names. For example,forgejo→fprgeupinstead ofFORGEJO.Correct syntax:
wp-oauth-register.sh — shellcheck annotation
lib/init/nomad/wp-oauth-register.sh:47: The shellcheck source path fix (../../lib/hvault.sh→../../../lib/hvault.sh) is correct — the script is 3 levels deep, and the new path resolves to the right file.Pre-existing issue (not introduced by this PR)
lib/init/nomad/wp-oauth-register.sh:46: REPO_ROOT is computed with only../..(2 levels), but the script is atlib/init/nomad/— 3 levels deep. Every sibling script uses../../... As a result${REPO_ROOT}/lib/hvault.shresolves tolib/lib/hvault.sh, which does not exist. Filed as tech-debt #947.Verdict
REQUEST_CHANGES — deploy.sh tr command drops the closing colon from POSIX class names, breaking lowercase→uppercase conversion for all job names
Reviewed at
aeb928f| AGENTS.mdAI Review: REQUEST_CHANGES — deploy.sh tr command drops the closing colon from POSIX class names, breaking lowercase→uppercase conversion for all job names
aeb928f198to7fd9a457c3AI Re-review (round 2)
Previous Findings
tr '[:lower:]-' '[:upper:]_'now has correct POSIX syntax; uppercase conversion works for all job names including hyphenated ones.Re-review verdict
Blocker acceptance test:
[:lower:]and[:upper:]are valid POSIX classes after the fix. No adjacent invariants touched by the fixup hunk. No new issues introduced.Verdict
APPROVE — tr POSIX class syntax fixed; both original blockers resolved
Reviewed at
7fd9a45| Previous:aeb928f| AGENTS.mdAI Re-review (round 2): APPROVE — tr POSIX class syntax fixed; both original blockers resolved