Skip to content

ci: register linera-tests in the IMAGE_VAR loop#6353

Merged
eldios merged 1 commit into
mainfrom
lele/fix-linera-tests-loop-env-main
May 21, 2026
Merged

ci: register linera-tests in the IMAGE_VAR loop#6353
eldios merged 1 commit into
mainfrom
lele/fix-linera-tests-loop-env-main

Conversation

@eldios
Copy link
Copy Markdown
Collaborator

@eldios eldios commented May 21, 2026

Summary

One-liner fix to #6349: that PR added the LineraTests build_and_push call and its PID handling but omitted the LINERA_TESTS:linera-tests entry in the for IMAGE_VAR in … loop that populates the <VAR>_IMAGE_{BRANCH,SHORT,LONG} env vars. As a result the LineraTests sub-build receives empty -t \"\" flags and docker rejects them with:

ERROR: failed to build: invalid tag "": repository name must have at least one component

The four production images (linera, linera-indexer, linera-explorer, linera-exporter) build and push normally — only linera-tests fails. Verified on the testnet_conway run that fired on the #6350 merge (linera-io/linera-protocol/actions/runs/26200303794).

Same fix is going up against testnet_conway as #6354 so the daily network-health-check CronJob (linera-infra) can finally find the linera-tests:testnet_conway_release tag.

Refs: linera-io/linera-infra#1188

Test plan

  • Verified locally by re-rendering the env-vars step with the patched loop in a shell and confirming all three LINERA_TESTS_IMAGE_* values resolve to the expected us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-tests:<tag> URIs.
  • Real validation happens at merge time: the Docker Image workflow re-fires on main and either pushes a linera-tests:main (and short/long sha) tag, or fails differently — at which point we'll know the loop fix was sufficient.

#6349 added the LineraTests build/push call and its PID handling but
omitted the `LINERA_TESTS:linera-tests` entry in the loop that populates
the `<VAR>_IMAGE_{BRANCH,SHORT,LONG}` env vars. As a result the build
step receives empty `-t ""` flags and docker rejects them with
"invalid tag \"\": repository name must have at least one component",
failing the LineraTests sub-build while the four production images
still build and push normally.

One-liner fix: add the missing entry. Verified locally by re-rendering
the env-vars step in a shell with the same loop and confirming all
three LINERA_TESTS_IMAGE_* values resolve to the expected GAR URI.

Refs: linera-io/linera-infra#1188
eldios added a commit that referenced this pull request May 21, 2026
## Summary

One-liner fix to #6350: that PR added the LineraTests `build_and_push`
call and its PID handling but omitted the `LINERA_TESTS:linera-tests`
entry in the `for IMAGE_VAR in …` loop that populates the
`<VAR>_IMAGE_{BRANCH,SHORT,LONG}` env vars. As a result the LineraTests
sub-build receives empty `-t \"\"` flags and docker rejects them with:

```
ERROR: failed to build: invalid tag "": repository name must have at least one component
```

The four production images (`linera`, `linera-indexer`,
`linera-explorer`, `linera-exporter`) built and pushed normally on the
#6350 merge run — only `linera-tests` failed. See
linera-io/linera-protocol/actions/runs/26200303794.

Same fix is going up against `main` as #6353. Once this lands the next
push to `testnet_conway` triggers a clean run and
`linera-tests:testnet_conway` appears in the registry alongside the
existing tags, unblocking linera-io/linera-infra#1191.

Refs: linera-io/linera-infra#1188

## Test plan

- Verified locally by re-rendering the env-vars step with the patched
loop in a shell and confirming all three `LINERA_TESTS_IMAGE_*` values
resolve to the expected
`us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-tests:<tag>`
URIs.
- Real validation happens at merge time: the `Docker Image` workflow
re-fires on `testnet_conway` and either pushes a
`linera-tests:testnet_conway` (and short/long sha) tag, or fails
differently — at which point we'll know the loop fix was sufficient.
@eldios eldios added this pull request to the merge queue May 21, 2026
Merged via the queue into main with commit 7ad124a May 21, 2026
39 checks passed
@eldios eldios deleted the lele/fix-linera-tests-loop-env-main branch May 21, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant