Skip to content

ci: publish :latest alias on main builds - #22

Merged
DavidMinarsch merged 1 commit into
mainfrom
ci/publish-latest-tag
Apr 15, 2026
Merged

ci: publish :latest alias on main builds#22
DavidMinarsch merged 1 commit into
mainfrom
ci/publish-latest-tag

Conversation

@DhairyaPatel7

Copy link
Copy Markdown
Contributor

Summary

The docker job currently only tags the pushed image with the short commit SHA:

```yaml
tags: valory/${{ github.event.repository.name }}:${{ steps.vars.outputs.sha_short }}
```

So Docker Hub only ever shows SHA-style tags (`d6bf387`, `d2d4581`, `d27c2ac`, …) and there is no `:latest`. That forces every downstream consumer — notably the libp2p integration tests in `valory-xyz/open-aea` — to pin a specific SHA and bump it on every ACN release.

Add a `:latest` alias pointing at whatever main is currently on, so "the current image" has a stable reference while the SHA tag is still available for reproducible pins.

Changes

  • `.github/workflows/workflow.yml`: append `valory/:latest` to the `docker/build-push-action` tags list on the docker job (which already runs only on `main`).

Test plan

The docker job currently only tags the image with the short commit
SHA, so downstream pins (e.g. in open-aea's libp2p integration test
fixture) have to bump the SHA on every ACN release. Add a ``:latest``
tag on main builds so consumers that just want "the current image"
have a stable reference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@DavidMinarsch
DavidMinarsch merged commit 50db2ba into main Apr 15, 2026
7 checks passed
@DavidMinarsch
DavidMinarsch deleted the ci/publish-latest-tag branch April 15, 2026 10:29
@DavidMinarsch
DavidMinarsch restored the ci/publish-latest-tag branch April 15, 2026 10:29
@DavidMinarsch
DavidMinarsch deleted the ci/publish-latest-tag branch April 15, 2026 10:29
DhairyaPatel7 added a commit to valory-xyz/open-aea that referenced this pull request Apr 15, 2026
…CN image

Background: test_dht.py was skipped on the libp2p v0.8 -> v0.33 bump
because the deployed valory/open-acn-node:latest image was still a
libp2p v0.8 build and wire-incompatible with the new connection code.

The ACN has since been rebuilt at valory/open-acn (Go 1.24 + libp2p
v0.33.2) — the first image compatible with this branch. Point the
docker fixture, CI pull step and comments at the new image via the
``:latest`` alias (published by valory-xyz/open-acn#22) and strip the
blanket skip marker from the Local variants.

While verifying locally against the new image, found a second wire
compatibility issue: libp2p v0.33 refuses to dial a
``/dns4/0.0.0.0/...`` multiaddr ("no good addresses"), so every entry-
peer URI that the fixture built from the bind-all wildcard would fail
to bootstrap. v0.8 tolerated 0.0.0.0 as a dial target. Switch
META_ADDRESS to 127.0.0.1 in both acn_image.py and conftest.py — the
value is used both for binds (loopback is fine) and for peer entry
points (loopback is now required).

Public variants still rely on the production fetchai/valory ACN nodes,
which have not yet been redeployed; keep them skipped with a dedicated
marker until upstream redeploys. TestDHTRobustness already has its own
CI-skip marker; no other gating needed for it.

Verified the new ACN image locally:
  * boots and emits the expected peer ID
  * two-container bootstrap succeeds with /dns4/127.0.0.1/ multiaddrs
Full pytest run cannot complete on macOS because Docker Desktop does
not expose network="host" ports to the host loopback; Linux CI will
exercise the end-to-end path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
DhairyaPatel7 added a commit to valory-xyz/open-aea that referenced this pull request Apr 15, 2026
Reflects the changes in the previous commit: ACN image rebuilt at
valory/open-acn (new repo) with a ``:latest`` alias from
valory-xyz/open-acn#22, 0.0.0.0 → 127.0.0.1 dial-format fix, narrower
skip marker that now only guards the Public variants.

Also bump the test_libp2p conftest copyright year to pass
check-copyright on the edits from the previous commit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

3 participants