Conversation
Contributor
Author
|
CI result: the new |
lakhansamani
force-pushed
the
ci/docker-compose-boot
branch
from
November 27, 2026 00:33
883f158 to
ef85a1e
Compare
This was referenced Nov 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this guards
#930 / #325: the docker-compose quick start broke (v2 flag-only config, non-root user unable to write SQLite) and nothing in CI noticed. This adds a path-filtered workflow (
.github/workflows/compose.yml, same pattern ask8s.yml) that runsscripts/ci-compose-smoke.shon PRs touchingdocker-compose.yaml,Dockerfile, the script or the workflow, on pushes tomaintouching them, and on demand.The script (POSIX sh, runnable locally):
docker compose up -d --buildwith the committeddocker-compose.yaml, unmodified./healthz200, looping on the HTTP status code (the Docker port proxy resets connections at startup, andcurl --retry-connrefuseddoes not retry those). Fails fast if the container has exited.Originheader (CSRF), then checks with_users(x-authorizer-admin-secretheader, which these flags accept) that the user exists./authorizer/data/authorizer.dbexists and is owned by uid 1000.docker compose restart, waits until healthy, asserts the user is still there.docker compose down(keeping the volume) +up -d, waits until healthy, asserts the user is still there. A restart keeps the container's writable layer, so only a recreate shows the data lives in the named volume.docker compose down -v. Printspsand logs on failure.Local runs can avoid port and project clashes through Compose's own env vars, without changing the committed file:
COMPOSE_PROJECT_NAME=x COMPOSE_FILE=docker-compose.yaml:ports-override.yaml AUTHORIZER_URL=http://localhost:18080 scripts/ci-compose-smoke.shLocal result
cicomposeand host ports 18080/19091 through an override. After the image build each phase was healthy in about 2s. The build itself was cached locally.unable to open database file (14)and the script reports "authorizer container exited before becoming healthy".shellcheck -s shis clean. actionlint was not run because it is not installed locally.Runtime
There is no buildx cache. The release workflow's registry cache needs a login, which PR runs from forks do not have. So each run does a cold build of the full image: Go plus both web apps. The CI runtime will be posted below once this PR's run finishes.