Repository navigation
Plain pipeline: the fixes found while the first tenant took 0.135.0 - #96
Open
davidjalbers wants to merge 9 commits into
Open
davidjalbers wants to merge 9 commits into
davidjalbers wants to merge 9 commits into
Conversation
#87) * Test that plx-ci setup refuses on_push on a branch that deploys nowhere (PLX-254) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * plx-ci setup refuses on_push on a branch that deploys nowhere (PLX-254) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * Fail the refusal with exit code 1 like every other failure of plx-ci setup (PLX-254) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * Test inherited keys, tags and real events for the on_push refusal (PLX-254) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * Answer for own keys only, refuse tags, name the branches once in plx deploy (PLX-254) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
) * plx doctor: tests for the retired display-version placeholder (red) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * plx doctor reports a compose file that still holds the display-version placeholder One definition, holdsRetiredDisplayVersion in compose.ts, serves the deploy verb's refusal and the doctor's finding. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * plx doctor placeholder: tests for the bare variable name in both messages, an unreadable file, no file (red) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * One reader of the compose file for the deploy verb and plx doctor; both messages name the bare variable; headers name the second finding of no requirement Co-Authored-By: Claude Sonnet <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…onflict, not a doubled key (PLX-250) (#90) * Test: an update that leaves a key twice in a TOML file conflicts (PLX-250) Red: the merge of a template that starts to pin a tool the repo already pins is clean, and the file holds the key twice, which mise refuses. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test: the engine holds a merged file to a check its caller gives (PLX-250) Red: planMerge takes a check and checkedMergeFile wraps a MergeFile with one, both stubs that ignore it, so a clean merge the check refuses stays clean and unmarked. Co-Authored-By: Claude Opus <noreply@anthropic.com> * The engine holds a merged file to a check its caller gives (PLX-250) A clean merge the check refuses, of a current side and a new render it accepts, becomes a conflict at the template's changes that make it so: the hunks of a line diff from the current side to the merge whose undoing alone the check accepts, or every hunk where none does. The engine knows no format; the check is the caller's, a function of the path and bytes. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test: repo-operations after 0.134.1 conflicts in a repo that pins terraform (PLX-250) Red: from the templates of 0.134.1 to this checkout's, an operations repo with a terraform pin of its own gets the template's beside it, clean. Co-Authored-By: Claude Opus <noreply@anthropic.com> * plx holds a merged TOML file to TOML: a key twice is a conflict (PLX-250) planSync gives the engine's merge the check readable (mergeCheck.ts): a file named *.toml must parse, with smol-toml, which refuses a key defined twice in one table. A template that starts to render a key a repo already has, terraform in an operations repo's mise.toml after 0.134.1 for one, then conflicts at the template's line, and plx update and plx apply report and commit it like every other conflict. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test: repo-operations pins terraform by its major (PLX-250) Red: the template renders terraform = "1.17.2", tooling's own version, which a tenant's update bot would move and every later move of the template's literal would then conflict with. The maintainer decided the template states the major, as node in the same file; the test also holds each module's required_version to that major's floor. Co-Authored-By: Claude Opus <noreply@anthropic.com> * repo-operations pins terraform by its major, as node (PLX-250) terraform = "1": the tenant's update bot is the line's only writer, and the preset leaves a floating major in mise.toml as it is; the template moves it only at a Terraform major. mise installs the newest 1.x, which both modules' required_version (>= 1.8) accept. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test: a repo that kept its own terraform line takes the next version clean (PLX-250) Red: the template's terraform line sits right under the plx pin, which moves with every version, so a repo that deleted the template's line to keep its own conflicts at every version, though the line does not change. Co-Authored-By: Claude Opus <noreply@anthropic.com> * repo-operations: the terraform pin stands away from the plx pins (PLX-250) Above the comment lines that fence the plx pins, as § 3 PLX-Updates keeps a line rewritten with every version apart: a repo that deletes or edits the terraform line no longer touches the hunk of the moving plx pin, and a crossing from 0.134.x conflicts on terraform alone, the pin moved. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test: no file of the engine's core imports the shell (PLX-250) Red: checked-merge-file.ts, pure, imports the conflict labels from git-merge-file.ts, the file that runs git. Co-Authored-By: Claude Opus <noreply@anthropic.com> * The engine's conflict labels live in a file of their own (PLX-250) checkedMergeFile, pure, and gitMergeFile, which runs git, both read them from labels.ts, so the core imports nothing of the shell. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test: a merged TOML file that is not UTF-8 is refused (PLX-250) Red: readable decodes leniently, so a byte that is no UTF-8 becomes U+FFFD and the file parses. Co-Authored-By: Claude Opus <noreply@anthropic.com> * readable decodes a TOML file strictly: one that is not UTF-8 is refused (PLX-250) Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test: the checked merge also in a file git conflicts on, in the file's line ending, bounded (PLX-250) Red, three of them: - a merge git conflicts on at a line both sides moved returns unchecked, so a clean change elsewhere that doubles a key goes unmarked; - the markers of a CRLF file are written with LF; - a merge of more than 2000 differing lines is diffed and each change tried alone, which costs quadratic memory and checks. The test that a conflicted merge is returned as it is now says when: where either resolution of git's conflicts is taken. Co-Authored-By: Claude Opus <noreply@anthropic.com> * The checked merge also where git conflicts, in the file's line ending, bounded (PLX-250) - A merge git conflicts on is refused where the check refuses it with git's conflicts resolved to either side; each conflict then stands as one line of the diff, so the clean changes the check refuses are marked and git's conflicts stay as git wrote them. - The markers end as the current side's first line does. - Above 2000 lines between the common head and tail nothing is diffed and no change is tried: everything between goes between one pair of markers. The header states what stays uncaught. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Headers: the check holds every merge, not only a clean one (PLX-250) Co-Authored-By: Claude Opus <noreply@anthropic.com> --------- Co-authored-by: Claude Opus <noreply@anthropic.com>
…nd publish copies what e2e tested (#91) * Test that a job without a cache server builds each app once, and e2e and publish replay it (PLX-252) Red: the step e2e builds web again, under the hash the step build built it with, since a job that reaches no trusted server has no Turbo cache at all. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test that turbow takes PLX_TURBO_TRUSTED=local in a job as the job's local cache for build, e2e and publish (PLX-252) Red: turbow takes local for a server's address and, without a trusted token, fails the verb. The second test, that the value changes nothing for check and test or outside a job, is a guard and passes before the change. Co-Authored-By: Claude Opus <noreply@anthropic.com> * turbow: in a job, PLX_TURBO_TRUSTED=local gives build, e2e and publish the job's local cache (PLX-252) plx-ci setup's word that the job reaches no trusted server that answers. The three verbs then share the local cache of the job's checkout and need no token; with a trusted server, and outside a job, nothing changes. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test that plx-ci setup hands a repo job the local cache where no trusted server answers (PLX-252) Red: setup asks no cache server and hands no PLX_TURBO_TRUSTED. A repo job that names no trusted server, whose server does not answer or refuses the token, or whose join fails, is to be handed PLX_TURBO_TRUSTED=local; where the server answers, nothing. The fake curl answers a cache server's status request with cacheStatus, or fails to connect. Co-Authored-By: Claude Opus <noreply@anthropic.com> * plx-ci setup: where a repo job reaches no trusted server that answers, hand it the local cache (PLX-252) setup asks the trusted server turbow would use once, with the trusted token, as turbow asks it. Where none is named, a forge runner did not join the overlay, or the server does not answer 200, the job gets PLX_TURBO_TRUSTED=local: the step build builds each app once, and e2e and publish replay that build from the job's local cache, so the image is made from the directory e2e ran against. Where the server answers, nothing is handed. The test's log patterns follow the wording of the line. Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test that setup's line names the case without the trusted server's address (PLX-252) Red: the line names the address, which a public run's log would show. Co-Authored-By: Claude Opus <noreply@anthropic.com> * plx-ci setup: the line without a trusted cache names the case, not the server (PLX-252) Co-Authored-By: Claude Opus <noreply@anthropic.com> * Test that the image holds the directory e2e ran against, in a job without a cache server (PLX-252) A file planted in web's build output after the step build is still there after e2e and publish, and in the image: a build of Next empties its output directory first (cleanDistDir), and a replay restores over it. Added to a passing test; before the change, the assertion that e2e builds nothing already failed. Co-Authored-By: Claude Opus <noreply@anthropic.com> --------- Co-authored-by: Claude Opus <noreply@anthropic.com>
#89) * Test: the state of ci/ in the tenant's bucket, for both answers (red: no such question yet) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * repo-operations asks where the state of ci/ is kept and renders its backend for an S3-compatible bucket Questions ci_state_bucket, ci_state_endpoint, ci_state_region, ci_state_key; backend.tf is a template, born once as before; the bucket's keys are two op:// pointers of ci/secrets.env, rendered only where a bucket is named. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * Test: locking and header, the vault item convention, validators, help, and a merge across the rename (red: four fail, the merge test passes and pins what holds) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * repo-operations: lock the state of ci/, name what a store that differs edits, follow the bucket item convention, validate the free text Pointers are bucket-ci-state/access-key-id and secret-access-key as for the cache buckets; the validators are guarded by the bucket so an empty answer where none is named fails nothing. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * Test: the merge across the rename asserts the pointers of secrets.env Co-Authored-By: Claude Sonnet <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…unners (#93) * PLX-248: tests for plx-ci setup in a job handed no token for the vault Red: a repo job with no token fails today with "the job cannot read the vault" where it should read nothing, say so in one line, and go on. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-248: plx-ci setup reads nothing in a job handed no token for the vault A repo job with no credential for the vault, as a pull request from a fork is, says so in one line and goes on with the logins, which need none. A deploy job and a run of on_push still fail, naming the credentials missing. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-248: tests for plx-ci setup on a runner without op Red: with a token and no op on the PATH, the first read of the vault fails with exit 127 ("op: command not found") where the step should install the pinned version, verify it, and read with it. core/op.ts is a stub that installs nothing; the fakes learn the download, unzip and gpg. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-248: plx-ci setup installs op, verified, where the runner has none With a token and no op on the PATH, the step downloads the pinned version from 1Password into RUNNER_TEMP/op, checks the signature of op against the pinned signing key in a keyring of the job's own, checks its version, and reads the vault with it. A runner that has op is left as it is. The pin of the environment image is held equal to the constant by a test. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-248: the header of the job fakes says what the new fakes do Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-248: tests for what the install may run, and for the no-token line on each kind of runner Red: unzip extracts every member into the directory of the keyring, gpg is started with its configuration and agent, curl and the installed op see the vault's credentials, a missing tool ends as a bare spawn error, and the no-token line is no annotation and claims no cache on a slot that has its host's. Green at once, as guards: the primary key being the one compared, a verification naming no signature, a slot with Connect. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-248: the install runs nothing of the zip before it verifies; the no-token line is a warning and true on a slot unzip takes op and op.sig by name into a directory of their own, the keyring is made and the key imported before the zip is opened, gpg runs with --no-options and --no-autostart, curl is https-only with retries, none of them sees OP_*, and a missing tool is named. The pin's comment no longer promises an update bot pull request; a person moves both values. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-248: the pipeline newborn's stand-in op says its version plx-ci setup asks op --version before it installs one; the stand-in answered every call but read with an error, so setup took the runner for one without op and downloaded the vendor's. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…o its own temp directory (#95) * PLX-259: the newborn of the job deploy runs its install step on a delivery slot A test that runs the job deploy's steps up to its setup in a container of the environment image, as ci-runner-slot starts a delivery slot: the image's base, its mise at the Dockerfile's pin, plx-ci at the version its mise.toml pins installed and shimmed by the Dockerfile's own line into mise's system directory, the user runner, the host's network and no capability. It fails as the real job did: the image's plx-ci is the version the workflow names, mise rebuilds the system shims, which point at another mise than the action's, and sudo fails. The steps of the file now run on a machine: this one, as before, or the slot's container; a step's own environment is evaluated as its inputs are. Co-Authored-By: Claude Opus <noreply@anthropic.com> * PLX-259: the job deploy's install step writes the system shims into its own temp directory On a runner host's slot the environment image carries plx-ci at the Plexus version, the one the job deploy names. `mise use -g` finds it installed in mise's system directory and so rebuilds the system shims; those point at the image's mise, not at the one jdx/mise-action downloaded, so mise must rewrite them, as root, through sudo, which fails in a slot's container without capabilities. MISE_SYSTEM_SHIMS_DIR on the step sends that rebuild into the job's temp directory, which nothing runs from: the step installs plx with no root and no writable system directory, and the later steps run the image's shims as before. On the forge's runners there is no system directory and the variable changes nothing. Co-Authored-By: Claude Opus <noreply@anthropic.com> * PLX-259: the slot's image in the newborn is taken from the image's own files The newborn's image now takes its instructions from the environment image's Dockerfile word for word and in their order (the base, every ENV, the apt-get install that brings sudo, the user runner and the sudoers line, the download of mise at its pin, the system config, the system install, USER and WORKDIR), and its system config is the image's own [settings] block and plx-ci line; a line it takes that the Dockerfile no longer has fails the test. The image is kept between runs, as the other newborns' are. The container is named for the run, lives thirty minutes at most, and a later run removes one whose run is gone. The action verifies the mise it downloaded in `before`, copied into the container, and downloads none. The header says what the case downloads and how long it takes. The image's Dockerfile names the reason sudo fails in a slot: ci-runner-slot starts its container with no capability. Co-Authored-By: Claude Opus <noreply@anthropic.com> * PLX-259: the newborn's header says the warm times as measured Co-Authored-By: Claude Opus <noreply@anthropic.com> * PLX-259: the newborn's slot image is tagged by its content and checked against the image's instructions The image is tagged by a hash of its generated Dockerfile and config, so two checkouts with different Dockerfiles cannot test each other's image, and the older tags of its name are removed where no container uses them. A RUN, COPY or ADD of the image's Dockerfile that the test neither takes nor leaves out by name fails it, and so does a ci-runner-slot that no longer starts a slot with --cap-drop ALL. The sweep of other runs' containers is gone: the Docker daemon is shared across pid namespaces, so a live run elsewhere could be taken for a dead one; the container's own thirty minutes and `after` remove it. Co-Authored-By: Claude Opus <noreply@anthropic.com> * PLX-259: the image's mise.toml says who writes mise's system directory It said mise never writes the system directory. A user's mise does, through sudo, when a `mise use` names a version installed there; in a slot that fails, and the job deploy has the shims written elsewhere. Co-Authored-By: Claude Opus <noreply@anthropic.com> --------- Co-authored-by: Claude Opus <noreply@anthropic.com>
…he Terraform modules (#94) * PLX-257: tests for the Connect server of a runner host in both modules (red) The user-data of a host with it off is held byte for byte; with it on, actions_runners_connect reaches the values file as a boolean. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: a runner host's modules turn on its Connect server connect_server travels like turbo_cache_overlay, but reaches the values file only when true, so that the user-data of every host that leaves it off is unchanged. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: tests for connect_server in the root ci/ (red) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: the root ci/ passes connect_server to the module, off in the usual values Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: tests for a hosts file born before connect_server, the header rule and the warning where a tenant decides (red) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: a hosts file born before connect_server still plans; the rule for a fallback, and the warning where a tenant decides The root merges a map of fallbacks under the defaults and the host; only an attribute whose fallback leaves the user-data of existing hosts byte for byte as it was may have one. The user-data module's header states the rule for what reaches the values file. Two test corrections made with this change: the header regex is case-insensitive, and a case that contradicted its own assertion is dropped. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: the header rule holds only for later settings (test, red); the lib tests see the modules; a missing provider cache says how to fill it Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: the header states that only a setting added later is written where it differs from the role's default Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * PLX-257: the newborn reads Terraform's wrapped error without its colour codes Co-Authored-By: Claude Sonnet <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…unit and a slot that cannot register (#92) * test: a runner host mails its tenant through the relay of its vault's item mail-relay (PLX-253) A newborn of its own, beside runner-host.test.ts, with a stand-in relay on the host's loopback that takes STARTTLS and AUTH and records what it is handed, and a forge that refuses mintings when told: a host without the item is set up and says so in its journal; with it, one mail per failed unit and for a disk over the housekeeping's threshold, none for one failed minting, one saying for how long for a slot that cannot mint past the threshold, no SMTP port on the loopback the slots share, and a refusing relay said in the journal. Co-Authored-By: Claude Opus <noreply@anthropic.com> * plexus.ci: a runner host mails its tenant through the relay of its vault's item mail-relay (PLX-253) The playbook mounts the host baseline's mail role as the platform's does, with mail_smtp from the vault's optional item mail-relay (server, port, mode, username, password, from-address, mailto). A vault without the whole item fails no run: the host is set up, sends no mail, and says so in its journal (logger, tag plexus-ci). The mail role gains mail_loopback_smtp, true by default, so app hosts stay as they are: false comments out master.cf's `smtp inet`, since a runner host's slots share its loopback and would otherwise mail as the host. Co-Authored-By: Claude Opus <noreply@anthropic.com> * plexus.ci: a slot's mail waits until its minting has failed for a few minutes, and says for how long (PLX-253) A slot fails as a unit at every failed attempt and is started again, so the host's mail on a failed unit would mail one refusal of the forge. ci-runner-jit keeps the first failed attempt of a row in /run/ci-runner/<slot>.failing, which a minting that succeeds, or a stop, removes, and says at each failure for how long the slot has failed. A drop-in of failure-mail@ adds an ExecCondition, ci-runner-mail-hold, which holds back the mail on a slot until that row is actions_runners_slot_alert_after old (300 s); a slot whose container failed, and every other unit, mails at once. The retry loop and its cadence are unchanged; the mail role's daily interval keeps it to one mail. The headers of the playbook, of both Terraform modules and of the template's root ci/ name the vault's item mail-relay. Co-Authored-By: Claude Opus <noreply@anthropic.com> * test: a runner host's mail survives a partial item, a failed mail role, and a failure of the same unit earlier that day (PLX-253) New and changed cases of the runner host's mail newborn, ahead of the code: an item that lacks a field, leaves one empty or names an unknown mode is no item, and a field on the command line counts; a mail role that fails fails no run; the disk check mails although the housekeeping mailed that day; a slot that cannot register mails although its container failed that day; the row of failed mintings fails towards mailing (a row or a threshold that is no number, a stop between two attempts, a minting systemd ends for its time); mail_loopback_smtp opens the port again and closes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: the hung minting starts from a running slot (PLX-253) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * plexus.ci: the disk and a slot that cannot register are units of their own, with a mail budget of their own (PLX-253) ci-runner-disk, hourly by its own timer, is the disk check the housekeeping ran after its pull: a pull that failed earlier the same day no longer takes the disk's mail, and one that fails for a full disk no longer keeps the check from running. ci-runner-cannot-register@<slot>, started by the slot's ExecStopPost after an attempt that failed, fails once the row of failed mintings is older than actions_runners_slot_alert_after and says for how long; a container of the slot that failed earlier the same day takes nothing from its mail. The slot's own mail is held back for a failed minting alone. The row fails towards mailing: it holds the host's uptime, which no time step moves; it is written as an attempt starts, so that one systemd ends for its time counts; a start that is no restart of systemd's begins a new one; a row or a threshold that holds no number mails at once and says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * plexus.ci: a partial item, an empty field, an unknown mode or a failing mail role leave a host set up and say why it sends no mail (PLX-253) What is wrong with the mail relay is computed from the variables, so that a ci_mail_* given on the command line counts, as vars/vault.yml says of every variable; an empty field counts as missing, and a mode other than starttls or tls is said. The mail role runs first in the second play, in a block whose rescue says in the journal what failed, so that a Postfix that cannot be installed fails no run and stops no slot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * plexus.host.mail: mail_loopback_smtp true opens the port again, restoring the line false commented out (PLX-253) False comments out smtp inet behind a mark of the role's; true restores the marked line alone, so a line commented out by hand stays. On a host with the default the file is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * terraform, repo-operations: the headers name the item mail-relay and point to vars/vault.yml for its fields (PLX-253) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: a port that is no number is no item, and the journal names it (PLX-253) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * plexus.ci: a port that is no number is named and leaves the host without mail; the hold says what a held-back minting's mail rests on (PLX-253) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus <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.
The fixes found while the first tenant took Plexus 0.135.0: nine issues, each merged here by squash from a pull request of its own, reviewed by a second model and verified by a forced
mise run testandmise run e2eon its head.The head of this branch is tree for tree the last verified head (#92):
testgreen,e2e171 of 171.What it holds
plx-ci setuprefuseson_pushon a branch that deploys nowhere.plx doctorreports the retired display-version placeholder.publishcopies whate2etested.repo-operationskeeps the state ofci/in the tenant's bucket.plx-ci setupworks without a token, and installsop, signature verified, on a runner that has none.ci/.Each issue carries a Result comment with what was checked and what was not.
What a consumer sees when it takes the version
connect_serveroff the user-data is byte for byte what it was (a test holds the hash). A host gets mail, and Connect where asked for, with its next replacement.on_push.ymlgains two lines on the deploy job's install step. A repo that added them by hand meets a conflict on the step'srun:line; the template's side is the resolution.ci/is kept. Aci/backend.tfwritten by hand stays; the answers go into the marker.mise.tomlalready namesterraformmeets a conflict instead of a doubled key.Readings to confirm or correct
Choices made where the decisions were silent.
on_pushis refused by the workflow's name, and a tag is refused like a branch that deploys nowhere (PLX-254: plx-ci setup refuses on_push on a branch that deploys nowhere #87).terraformline sits inmise.toml(A TOML key a template starts to render that a repo already has is a conflict, not a doubled key (PLX-250) #90).ci/backend.tfsetsuse_lockfile = true; the bucket's keys are the pointersop://<tenant>/bucket-ci-state/access-key-idandsecret-access-key; the file is the tenant's after its creation (PLX-255: repo-operations keeps the state of ci/ in the tenant's bucket #89).on_pushwithout a service account token fails; a pull request without one runs through with a warning annotation, without the vault, the trusted cache and the logins (PLX-248: plx-ci setup without a token and without op on the forge's runners #93).opversion and the key fingerprint; no bot does (PLX-248: plx-ci setup without a token and without op on the forge's runners #93).{ connect_server = false }, under the defaults and the host, so a hosts file born before the attribute still plans. The stricter alternative demands the attribute of every tenant (PLX-257: a runner host turns on its Connect server from ci/ through the Terraform modules #94).Questions
MISE_SYSTEM_SHIMS_DIR, a setting mise introduced a few months ago, and mise ignores an unknown variable silently. Only the newborn, at the next cut, would notice if it were dropped. Pin the job's mise, and who moves the pin?reposlot of that host can read the whole CI vault through it. The switch is off by default. Is it to be offered for a host withreposlots at all?Not tried
GITHUB_ENVwins over the job's own environment where PLX-252: without a trusted cache server, a job builds each app once and publish copies what e2e tested #91 relies on it.mise upgradeon a slot.On a real delivery slot, tried by hand: the install step of #95 passes, and the two steps after it.
Known about the suite
newborns/scratch.test.ts, the interrupt case (-1 !== 130), fails now and then on the forge.check-opsfailed once with "the registry is unreachable".newborns/runner-unregister.test.tsfailed twice in full runs on one head and passed alone and in every run since.testonly. Two newborns that authors edited failed first in the verify of this branch's pull requests: nothing on the forge would have caught them before the cut.Owed to the compendium
approaches/delivery.md: the runner-host paragraph (mail, Connect), the list of what<owner>-ci-hostholds, "What a tenant sets up", the state ofci/, the job without a token, the build without a trusted cache server.approaches/platform.md: the role list and a sentence onmail_loopback_smtp.approaches/updates.md: the doubled TOML key as a conflict.Not in here
Refusing a fork's pull request on a slot (PLX-260), and the stale comments about Connect with a test on the host's side (PLX-261).
The contraction that waits for the rollout stays in its own pull requests, #85 and #86.
🤖 Generated with Claude Code