Skip to content

[dependabot] Manage Docker versions - #148

Closed
IsaacG wants to merge 1 commit into
exercism:mainfrom
IsaacG:dependabot.docker
Closed

IsaacG wants to merge 1 commit into
exercism:mainfrom
IsaacG:dependabot.docker

Conversation

@IsaacG

@IsaacG IsaacG commented Oct 8, 2026

Copy link
Copy Markdown
Member

No description provided.

@IsaacG
IsaacG force-pushed the dependabot.docker branch from 783a246 to 2f6198a Compare October 8, 2026 21:10
@angelikatyborska

Copy link
Copy Markdown
Member

Hi! I have never used dependabot for Docker. What exactly will this update? Will it attempt to update Docker image tags?

FROM hexpm/elixir:1.20.1-erlang-29.0-debian-bookworm-20260610 as builder

# ...

FROM hexpm/elixir:1.20.1-erlang-29.0-debian-bookworm-20260610 as runner

If yes, then I don't think that's desirable in any of the Elixir repos. Those tags are tied to a specific Elixir version and shouldn't be changed until the next minor Elixir release.

@IsaacG

IsaacG commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

Yes, it is for updating the tags as well as the build hash. The stated policy is to use pinned versions for external resources like Docker images, eg hexpm/elixir:1.20.1-erlang-29.0-debian-bookworm-20260610@sha256:3325272ca1b0b8cacc5200e6c5c2ada88d491c8d159b77e750d1a4b710b83bd5. Dependabot will update the build tag to keep things current. This will also handle bumping the OS version (Debian 20260610 to something newer) when there is no Elixir release. When there is a newer Elixir version, this opens a PR that maintainers can accept (updating to the latest Elixir) or reject if upgrading Elixir is not desirable.

Those tags are tied to a specific Elixir version and shouldn't be changed until the next minor Elixir release.

I'm a touch confused by this. IIUC you're saying this upgrades Elixir but Elixir shouldn't be upgraded until there's a release. Wouldn't Elixir versions only change when new versions are released?

@angelikatyborska

Copy link
Copy Markdown
Member

This docker tag hexpm/elixir:1.20.1-erlang-29.0-debian-bookworm-20260610 combines three different dependency versions:

  • Elixir
  • Erlang
  • Debian

I am happy to keep Debian up to date, but the problem is that we do not want any Elixir updates nor Erlang updates until the next MINOR release of Elixir (e.g. 1.20.1 -> 1.21.0). We do not want any patch releases of Elixir, and we do not want to upgrade Erlang at all unless we are also upgrading Elixir to the next minor version. If there is a minor Erlang release, we don't care, we will just pick up the newest Erlang the next time there is a minor Elixir release.

Additionally, Elixir and Erlang versions used in this Docker tag must always also match the versions specified in .tool-versions (for local development) and in the strategy matrix in the Github workflow.

This is true for all Elixir tooling repos. Additionally additionally, the Erlang and Elixir versions used in the tooling repos must also always match the versions used in the main language repo in Github workflows, and the main language repo must always be the first one to get updated to prove that the example and exemplar solutions still work on the new language version before updating anything else.

The test runner and the analyzer are pretty fragile projects and they tend to break in unexpected ways with new Elixir releases. We don't want any extra work regarding that, and we also don't want to accidentally let the versions between different repos get out of sync.

@angelikatyborska angelikatyborska left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yet another problem is that the hexpm:elixir image has tags with different operating systems, e.g. different ubuntu and debian versions: https://hub.docker.com/r/hexpm/elixir/tags

If Dependabot just ends up opening a PR every time there is a new tag of that image, it will end up constantly switching between the different operating systems.

@jiegillet

Copy link
Copy Markdown
Contributor

I'm also of the mind of not merging this change, for this repo and the others.
It's opening the door to potential issues for us, and we already update those docker images about twice a year (for every Elixir minor release). It's not huge, but it's regular, I don't think the OS version have time to fall far behind.

@IsaacG

IsaacG commented Oct 25, 2026

Copy link
Copy Markdown
Member Author
  1. The Dependabot PRs could always be closed if they aren't wanted. They work as a reminder/notification of new versions without requiring they actually be acted upon.
  2. Getting a PR with the CI should indicate early when there's a new version and whether it works or not. If the CI tests are all green, you know there's a new version that ought to Just Work without any issue. If it's red, it flags that something changed. That's typically a useful signal.
  3. Most of the other tracks can track OS changes with little effort. Is Elixir really that unique that OS changes are likely to break things, more so than the ~80 other tracks?

@angelikatyborska

Copy link
Copy Markdown
Member

@IsaacG Your latest comment reads as if you didn't really understand our concerns about auto-updating the Docker tags.

You're saying:

Most of the other tracks can track OS changes with little effort. Is Elixir really that unique that OS changes are likely to break things, more so than the ~80 other tracks?

But we already said that our concerns are not about OS updates. Please read my comment again: #148 (comment)

I didn't see the discussion where it was decided to manage Docker versions in all repos via Dependabot, but I have a feeling this decision was made with the assumption that Docker tags follow semantic versioning. This assumption is not true for the Docker images that we're using 🤷.

@angelikatyborska

Copy link
Copy Markdown
Member

I wanted to run an experiment to check exactly how Dependabot would behave when updating such complex tags (see Dockerfiles in https://github.com/angelikatyborska/docker-dependabot-test). It looks like at the moment, Dependabot is unable to even handle this specific image. The Dependabot run fails due to 504 responses from Docker Hub (see logs: https://github.com/angelikatyborska/docker-dependabot-test/actions/runs/40196017952/job/121176905794). There is an issue open in the dependabot-core about this problem for this specific Docker image: dependabot/dependabot-core#15405

@IsaacG

IsaacG commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

the assumption that Docker tags follow semantic versioning

Could you explain what you mean by this? Is this standard one version vs multiple versions/components in the tag?

The Dependabot run fails due to 504 responses from Docker Hub

I did not expect this!

Thanks for the feedback and discussion! I'm a little sad that the Elixir version upgrades are so fragile and complicated :( Thank you for maintaining the track and those upgrades!

@IsaacG IsaacG closed this Oct 27, 2026
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