fix(setup): poetry only when installed, loud docker login, nested mise tools #93

Merged
cjournois merged 1 commit from fix/poetry-docker-login into main 2026-11-03 16:43:49 +00:00
Collaborator

Renovate's v7 bumps fail in three ways that come from the pipeline, not the callers:

  • devops/dramble-manager#1222: on a Python unit, registry auth runs poetry config virtualenvs.in-project true unconditionally. A uv unit has no poetry, so the step fails with setup.sh: line 127: poetry: command not found. v6 only ran it for package and image units.
  • project/janus#102: the image step dies with no message. docker_login sends docker's output to /dev/null, and the old-style caller still passes registry_token, so the job never receives BOT_REGISTRY_TOKEN.
  • project/janus#102: the new repo-root caller runs the root just ci, which runs every unit's recipes, but setup installs only the root mise.toml, so it fails with cargo: not found (cargo is pinned in services/janus/mise.toml).

Changes:

  • registry-auth runs poetry config only when poetry is installed. Private PyPI scopes still go through poetry, as before.
  • setup.sh mise-install also runs mise install in every directory below the working directory that has a mise.toml, skipping node_modules and .git. A unit job is unaffected; the repo-root job gets every unit's tools.
  • docker_login fails with registry token is not set: the caller must pass secrets: inherit… when the token is empty, and with docker's own message when the login is rejected.

Verified: just lint test passes (501 bats). New cases cover a Python unit without poetry, an empty token (no docker call is made), a rejected login, and a nested mise.toml (a node_modules copy is skipped).
Not covered here: career, ergon, games and janus also fail because their callers still hand registry_token instead of secrets: inherit. That is the caller conversion, done on each Renovate PR.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3

Renovate's v7 bumps fail in three ways that come from the pipeline, not the callers: - devops/dramble-manager#1222: on a Python unit, registry auth runs `poetry config virtualenvs.in-project true` unconditionally. A uv unit has no poetry, so the step fails with `setup.sh: line 127: poetry: command not found`. v6 only ran it for package and image units. - project/janus#102: the image step dies with no message. `docker_login` sends docker's output to `/dev/null`, and the old-style caller still passes `registry_token`, so the job never receives `BOT_REGISTRY_TOKEN`. - project/janus#102: the new repo-root caller runs the root `just ci`, which runs every unit's recipes, but setup installs only the root `mise.toml`, so it fails with `cargo: not found` (cargo is pinned in `services/janus/mise.toml`). Changes: - `registry-auth` runs `poetry config` only when poetry is installed. Private PyPI scopes still go through poetry, as before. - `setup.sh mise-install` also runs `mise install` in every directory below the working directory that has a `mise.toml`, skipping `node_modules` and `.git`. A unit job is unaffected; the repo-root job gets every unit's tools. - `docker_login` fails with `registry token is not set: the caller must pass secrets: inherit…` when the token is empty, and with docker's own message when the login is rejected. Verified: `just lint test` passes (501 bats). New cases cover a Python unit without poetry, an empty token (no docker call is made), a rejected login, and a nested `mise.toml` (a `node_modules` copy is skipped). Not covered here: career, ergon, games and janus also fail because their callers still hand `registry_token` instead of `secrets: inherit`. That is the caller conversion, done on each Renovate PR. Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
fix(setup): poetry only when installed, a failed docker login says why
Some checks failed
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 49s
ci: reusable-pipeline / CI Pipeline (push) Has been cancelled
71405fdfc3
A python unit without poetry (uv) failed registry auth on poetry config,
and an empty or rejected registry token made docker.sh exit with no
message. Both now pass or fail with the reason.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
cjournois deleted branch fix/poetry-docker-login 2026-11-03 16:43:49 +00:00
bot-claude changed title from fix(setup): poetry only when installed, a failed docker login says why to fix(setup): poetry only when installed, loud docker login, nested mise tools 2026-11-03 16:50:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
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
cjournois/reusable-pipeline!93
No description provided.