Repository navigation
Resolve stagings by package annotations in staging-check - #17
Merged
Merged
Conversation
alexadereyko
force-pushed
the
jira/TBBAS-3550-staging-check-by-annotations
branch
from
October 5, 2026 14:03
40e0877 to
d646e35
Compare
alexadereyko
force-pushed
the
jira/TBBAS-3550-staging-check-by-annotations
branch
3 times, most recently
from
October 9, 2026 08:25
21ce117 to
64b5ade
Compare
This was referenced Oct 9, 2026
alexadereyko
force-pushed
the
jira/TBBAS-3549-staging-push-run-id-tags
branch
from
October 12, 2026 07:55
4d327b2 to
829c1c4
Compare
alexadereyko
force-pushed
the
jira/TBBAS-3550-staging-check-by-annotations
branch
from
October 12, 2026 08:02
64b5ade to
72028f6
Compare
Base automatically changed from
jira/TBBAS-3549-staging-push-run-id-tags
to
main
October 15, 2026 00:06
A request can name an index by digest or by annotations, besides the tag; a digest takes precedence over a tag. The resolved output mirrors the input with the digests filled in, and the file output points at the whole answer: the index annotations and the matching packages.
A request names its packages by their annotations, a revision among them, and is answered with the packages of the newest index that has any. The input takes the form of staging-pull; the resolved output is the request with every package replaced by path@digest references. The digest and tag inputs and the pinned and file outputs are gone.
alexadereyko
force-pushed
the
jira/TBBAS-3550-staging-check-by-annotations
branch
from
October 15, 2026 00:08
72028f6 to
d07e063
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief
Let
staging-checkfind stagings by the annotations of their packages, a revision among them, and return references to the packages found.Overview
Stagings are no longer tagged by commit, so a staging is asked for by what it was built from. A request has the form of a
staging-pullentry; itsannotationsare globs over the annotations of the packages, which carry the revision of their build and of their dependencies:[ { "artifact": "core-linux-x86_64", "packages": [ { "path": "ghcr.io/openDAQ/$CHANNEL/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "$CORE_REF", "com.opendaq.custom.platform": "linux", "com.opendaq.settings.arch": "x86_64" }, "optional": false } ] } ]Every index of the package is looked at; the answer is the matching packages of the newest index that has any. A request nothing answers is an error, or a warning when it is
optional.artifactmay be left out.The
resolvedoutput is the request with every package replaced by references to the packages found:[ { "artifact": "core-linux-x86_64", "packages": [ { "path": "ghcr.io/opendaq/dev/staging/opendaq@sha256:<digest>" } ] } ]test-stagingresolves what it published by revision, by the core a module was built against and for several packages at once, and checks that a missing staging fails.Caller migration
The input changed: a request is a
staging-pullentry, and a staging is named by annotations instead of a tag.check-core-staging.ymlin the module repositories moves to the new form.