fix: [nomad-step-3] S3-fix-2 — wp-oauth REPO_ROOT still wrong + seed/deploy must interleave (#948) #949
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#949
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-948"
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 #948
Changes
AI Review
Summary
Two targeted fixes, both correct.
Fix 1 — REPO_ROOT depth (
wp-oauth-register.sh)Script lives at
lib/init/nomad/. Three levels up reaches the repo root. The old../..only reachedlib/, causingsource "${REPO_ROOT}/lib/hvault.sh"to resolve tolib/lib/hvault.sh— a clear runtime failure. Fix is correct.Fix 2 — Interleaved seed/deploy (
bin/disinto)The real-run path now iterates once over the canonical service order (forgejo → woodpecker-server → woodpecker-agent), running seed-then-deploy per service. This is the correct fix for wp-oauth needing forgejo live before it can register.
Woodpecker seed dedup removed: woodpecker-server and woodpecker-agent both map to
vault-seed-woodpecker.sh, so it now runs twice when both are requested. The seeder contract is idempotent ("missing → generate, present → unchanged"), so this is safe — slightly wasteful but not a defect.Tech Debt Filed
bin/disinto ~line 785–839: The dry-run preview block still displays the old batch pattern (all seeds first, then all deploys), while the real run is now interleaved. This introduced a dry-run/real-run inconsistency. Filed as tech debt — dry-run is display-only so correctness is unaffected, but operators reading the dry-run output will see a misleading execution order.Verdict
APPROVE — Both fixes correct: REPO_ROOT depth fixed (3 levels up from lib/init/nomad to repo root), interleaved seed/deploy resolves OAuth dependency ordering. Woodpecker seed running twice is idempotent by contract.
Reviewed at
8fb1737| AGENTS.mdAI Review: APPROVE — Both fixes correct: REPO_ROOT depth fixed (3 levels up from lib/init/nomad to repo root), interleaved seed/deploy resolves OAuth dependency ordering. Woodpecker seed running twice is idempotent by contract.