Skip to content

test(e2e): run the template's pipelines against a release - #10

Merged
AlexeyShalaev merged 2 commits into
masterfrom
test/e2e-pinned-template
Oct 7, 2026
Merged

AlexeyShalaev merged 2 commits into
masterfrom
test/e2e-pinned-template

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Member

The release checklist runs the template's pipelines against the published image once the template pins it (docs/project/release.md, "After a release"). With v0.1.0 that failed twice, both in the test harness:

  • the Gitea and GitLab template tests replaced only the TODO(release) placeholder (digest all zeros) with the image under test; with the template pinned to v0.1.0 they now replace its touchmark image whatever the digest;
  • template-lib.sh referenced the image pushed to its local registry by the digest in RepoDigests. With Docker's containerd image store, pushing a multi-platform image pulled for one platform sends that platform's manifest alone, and RepoDigests keeps the index's digest, which the registry lacks: GitLab's runner, which always pulls, failed every job. It now asks the registry for the tag's digest.

With both, against ghcr.io/bedrock-python/touchmark@sha256:0b78f8d9… and the template pinned to v0.1.0: gitea.sh --template … --touchmark-image … --run TestTemplate docker.gitea.com/gitea:1.27.3 and gitlab.sh … gitlab/gitlab-ce:18.11.12-ce.0 pass, and so does the GitHub dry run TestTemplateWorkflow.

The Gitea and GitLab template tests replaced only the TODO(release) placeholder, whose digest is all zeros, with the image under test, so after the template pinned v0.1.0 they failed before running a job. They now replace the template's touchmark image whatever its digest, as the release checklist runs them after a release.
With Docker's containerd image store, pushing a multi-platform image that was pulled for one platform sends that platform's manifest alone, while RepoDigests keeps the index's digest. The template stands referenced the image by that digest, which the local registry lacked: GitLab's runner, which always pulls, failed every job with a published image; Gitea's found the image in the daemon and passed. template-lib.sh now asks the registry for the tag's digest.
@AlexeyShalaev
AlexeyShalaev merged commit 31d5242 into master Oct 7, 2026
22 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the test/e2e-pinned-template branch October 7, 2026 08:57
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