GRI-1885: fix smoke-test db profile and config.toml permission #124

Merged
vivy merged 2 commits from fix/GRI-1885-env-compose-profile into dev 2026-11-11 02:33:06 +00:00
Member

Two fixes to scripts/mvp-smoke-test.sh, found while running the real client-against-server smoke test for GRI-1885:

  1. .env never set COMPOSE_PROFILES=bundled-db, so the bundled database never started.
  2. config.toml is written into a path under the agent home directory, where a default ACL made it unreadable to the container's uid (Permission denied); the script now chmods it 0644 and strips the ACL before the bind mount.

Both were diagnosed and verified end-to-end on the build host: with both fixes applied, the stack (server, db, real client) now comes up, connects, and gets through device approval.

Test plan

  • ./scripts/local-gates.sh passes
  • Ran the full smoke test end-to-end on dev tip with both fixes applied; confirmed it no longer fails at the db-start or config-permission steps
Two fixes to `scripts/mvp-smoke-test.sh`, found while running the real client-against-server smoke test for GRI-1885: 1. `.env` never set `COMPOSE_PROFILES=bundled-db`, so the bundled database never started. 2. `config.toml` is written into a path under the agent home directory, where a default ACL made it unreadable to the container's uid (`Permission denied`); the script now `chmod`s it 0644 and strips the ACL before the bind mount. Both were diagnosed and verified end-to-end on the build host: with both fixes applied, the stack (server, db, real client) now comes up, connects, and gets through device approval. ## Test plan - [x] `./scripts/local-gates.sh` passes - [x] Ran the full smoke test end-to-end on dev tip with both fixes applied; confirmed it no longer fails at the db-start or config-permission steps
GRI-1885: strip home-dir ACL from config.toml before the bind mount
Some checks failed
CI / the pre-push hook (pull_request) Successful in 13s
CI / cargo fmt (pull_request) Successful in 13s
CI / cargo deny advisories (pull_request) Failing after 58s
CI / cargo deny (pull_request) Successful in 58s
CI / repository boundary (pull_request) Successful in 10s
CI / cargo clippy (pull_request) Successful in 10m27s
CI / frontend-web (pull_request) Successful in 9m58s
CI / cargo test (pull_request) Successful in 11m46s
CI / CI (pull_request) Successful in 4s
CI / Notify gate failed (pull_request) Has been skipped
8af8ddc1b5
config.toml was created 0660 under the home directory's default ACL
(grimoire-infra#321), so the container's uid could not read it over the
bind mount and the server restart-looped on Permission denied.
vivy merged commit 54ea3eaaaf into dev 2026-11-11 02:33:06 +00:00
vivy deleted branch fix/GRI-1885-env-compose-profile 2026-11-11 02:33:07 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!124
No description provided.