ci(nightly): assert backend container can read /import after deploy #532
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Type: CI / deployment guard
Priority: P2-medium — silent-failure mode (mount present but unreadable) is currently undetectable until a human notices
Source: review of #526 by Sara Holt — comment #8649, finding 3. Also relates to Tobias's UID concern in #8646, finding 4.
Parent PR: #526 (mass-import bind mount)
Summary
After
Deploy staging, execls /importinside the backend container and fail the workflow with a::error::annotation if the container cannot read it. Surface the first 5 filenames for operator visibility.Context
#526 wires the
/importbind mount but only verifies it's present in the rendered compose config. It doesn't verify the running container can actually read the mount. Two silent-failure modes are possible:In either case, mass import would mysteriously "find no spreadsheet" with no obvious cause from the operator's side.
Required
Add a step to
.gitea/workflows/nightly.ymlafterDeploy staging:Acceptance criteria
nightly.yml(and likelyrelease.yml)/srv/familienarchiv-staging/import/is intentionally empty, the step still passes (emptylsis exit 0)Linked NFRs
Dependencies / related
release.ymlshould mirror this (track separately if not done in the same PR).Definition of Ready
🤖 Generated with Claude Code during /implement on #526