Skip to content

Use Brandon's new conformance tests#9

Draft
tianon wants to merge 1 commit into
tianon:mainfrom
self-five:bmitch-conformance
Draft

Use Brandon's new conformance tests#9
tianon wants to merge 1 commit into
tianon:mainfrom
self-five:bmitch-conformance

Conversation

@tianon
Copy link
Copy Markdown
Owner

@tianon tianon commented Mar 19, 2026


  • hack go.mod for ociregistry conformance fixes
  • update code for conformance fixes ("hell yeah")
    • correct blob Range: implementation
    • implement Referrers
    • more correct errors handling (esp. translating/annotating containerd errors to ociregistry errors)

@tianon tianon force-pushed the bmitch-conformance branch from 89f5d08 to 1636d29 Compare March 19, 2026 20:40
@tianon
Copy link
Copy Markdown
Owner Author

tianon commented Mar 19, 2026

Heck yeah, a report! https://github.com/tianon/containerd-registry/actions/runs/23315940196/artifacts/6014837571

It's failing, which is exactly what I expected - this was more for the fun of putting those tests to work here.

@tianon tianon force-pushed the bmitch-conformance branch 8 times, most recently from 7a526bd to 07bfcdc Compare March 20, 2026 22:18
@tianon
Copy link
Copy Markdown
Owner Author

tianon commented Mar 20, 2026

Fully passing now because I made a call on cue-labs/oci#47 in my WIP branch so I could implement that one properly.

Notably, this still disables sha512, but because containerd itself doesn't support it properly yet in the content store. 😅

@tianon tianon force-pushed the bmitch-conformance branch 4 times, most recently from 8f47631 to 360069f Compare March 27, 2026 23:49
- hack `go.mod` for `ociregistry` conformance fixes
- update code for conformance fixes ("hell yeah")
  - correct blob `Range:` implementation
  - implement `Referrers`
  - more correct errors handling (esp. translating/annotating containerd errors to ociregistry errors)
- `go fix ./...`
- use a cache mount in the `Dockerfile` for faster rebuilds slash test/dev cycles
@tianon tianon force-pushed the bmitch-conformance branch from 360069f to c576cbd Compare April 1, 2026 20:04
@tianon
Copy link
Copy Markdown
Owner Author

tianon commented Apr 2, 2026

Welp, with containerd/containerd#13147, this passes all but 9 tests when I re-enable sha512, and all 9 are manifest-by-digest-related (which is exactly the result I expected).

@tianon
Copy link
Copy Markdown
Owner Author

tianon commented Apr 2, 2026

What I didn't realize/expect is that all 9 failures likely root case in cue-labs/oci#45

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