Repository navigation
fix: finish the clean-host quickstart: AppArmor probe pull, resumable downloads, pull retries, ClickHouse first boot, host-port preflight (ADR-001071) - #446
Merged
Conversation
… missing image outside its timeout, the repo's altctl config auto-registers no stack, model seeding resumes and retries, image pulls retry a bounded number of times, ClickHouse first boot skips the upstream init server, the quickstart tests run in the compose lint target, and altctl checks host ports before up with an auto-selected Plecto admin port (ADR-001071) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ppArmor overlays and tts in .altctl.yaml, resume and retry llama.cpp model downloads, retry image pulls in altctl and quickstart, start ClickHouse without the upstream init server so first boot no longer races it, run the quickstart tests in the compose lint target, and check host ports before altctl up with init auto-selecting a free Plecto admin port (ADR-001071) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
ADR-001070 made
./quickstart.sh --gpu cuda|vulkanthe one-command start for a fresh clone. Running it on a host reset to a clean state found seven more problems; this PR fixes them in the repo (ADR-001071).scripts/probe-apparmor-postgres.shranpostgres:17.11-alpinewith--pull=neverinside a 15 s timeout, sosudo ./scripts/install-apparmor-profile.shalways failed its last check on a clean host (No such image).--pull=never, so the timeout still measures only a hung confined start.compose.apparmor.yamlandcompose.staging.apparmor.yamlwere auto-registered as stacks, andttshad no semantics, so every altctl run printed three notices.overlays:.ttsis declared.scripts/seed-llamacpp-models.shmade a singlewgetwith no resume. One network drop waited out busybox's 900 s default and threw the partial file away.scripts/seed-llamacpp-models-inner.sh.wget -c, has a 60 s stall timeout, and tries up to 5 times with doubling waits.network is unreachableduring a pull ended the whole quickstart.altctl up/restartand the quickstart's news-creator pull now retry up to 3 times, waiting 10 s and then 30 s; the last failure is still fatal.--timeoutstill bounds only the Ready-wait.CLICKHOUSE_DBis set.clickhouse/entrypoint-wrapper.shconnected to that temporary server and started migrations. The server was stopped mid-migration, the container exited and restarted, and compose reported the dependency as unhealthy.CLICKHOUSE_DBand creates the database itself, as before.test-quickstart-entry.pyandtest-seed-reranker-model.pywere not run by any lint target. They now run in thecomposetarget, together with the new seed and ClickHouse wrapper tests, and thecompose-auditpath filters cover the scripts they test.altctl upnow checks every host port the services it will start publish, before pulling anything. Listeners are read from/proc/net/tcp{,6}, and ports held by the project's own containers are excluded. It lists every conflict and stops.altctl initpicks a free Plecto admin port (18080-18179) and writes it to.envwhenPLECTO_ADMIN_HOST_PORTis unset and 127.0.0.1:8080 is taken by another process; llama-server listens on 8080 by default.Verification on a clean host
sudo ./scripts/install-apparmor-profile.shpulled the probe image and passed../quickstart.sh --gpu vulkancompleted all 8 steps in about 12.7 minutes.PLECTO_ADMIN_HOST_PORT=18080./,:18080/readyz,:9000/v1/health,:9250/health,:7700/health.-cto a matching sha256.HTTP/1.1 416 Range Not Satisfiablewith exit 1 and left the file unchanged.Test plan
./scripts/lint/run.sh altctl,scripts,apparmor,harness,compose,repogo test ./...inaltctlandscripts/altharnessdocdag validate --immutable-since origin/main,alt-harness adr-gate --base origin/main./quickstart.sh --gpu vulkanrun as above🤖 Generated with Claude Code