Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conformance: support OCI_REPORT_DIR #473

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

rogpeppe
Copy link
Contributor

This makes it possible to run the conformance tests in a read-only directory without failing by specifying an output directory for the report files instead of hard-coding it to the current directory (which may not be writable, and won't be writable if the tests are being run with go test github.com/opencontainers/distribution-spec/conformance rather than in a git checkout of the conformance module.

We recognize the value none for disabling report generation entirely.

@rogpeppe rogpeppe force-pushed the 004-report-dir branch 2 times, most recently from 7da3a67 to 8e2f23f Compare October 15, 2023 16:43
conformance/README.md Outdated Show resolved Hide resolved
This makes it possible to run the conformance tests in a read-only directory
without failing by specifying an output directory for the report files
instead of hard-coding it to the current directory (which may not be
writable, and _won't_ be writable if the tests are being run with
`go test github.com/opencontainers/distribution-spec/conformance`
rather than in a git checkout of the conformance module.

We recognize the value `none` for disabling report generation entirely.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Copy link
Contributor

@sudo-bmitch sudo-bmitch left a comment

Choose a reason for hiding this comment

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

Thanks for going through all the updates. LGTM!

@jdolitsky jdolitsky merged commit 3940529 into opencontainers:main Oct 16, 2023
5 checks passed
porcuepine pushed a commit to cue-labs/oci-trybot that referenced this pull request Nov 3, 2023
This means that adding the golang.org/x/exp dependency
in a later commit won't do this at the same time.

We can also remove the replace statement in the conformance
tests since [PR 473](opencontainers/distribution-spec#473) has landed.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I9ec1333d897e5d1af3a8511b5baead5c986fd295
porcuepine pushed a commit to cue-labs/oci-trybot that referenced this pull request Nov 3, 2023
This means that adding the golang.org/x/exp dependency
in a later commit won't do this at the same time.

We can also remove the replace statement in the conformance
tests since [PR 473](opencontainers/distribution-spec#473) has landed.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I9ec1333d897e5d1af3a8511b5baead5c986fd295
Dispatch-Trailer: {"type":"trybot","CL":1171068,"patchset":4,"ref":"refs/changes/68/1171068/4","targetBranch":"main"}
porcuepine pushed a commit to cue-labs/oci that referenced this pull request Nov 3, 2023
This means that adding the golang.org/x/exp dependency
in a later commit won't do this at the same time.

We can also remove the replace statement in the conformance
tests since [PR 473](opencontainers/distribution-spec#473) has landed.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I9ec1333d897e5d1af3a8511b5baead5c986fd295
Reviewed-on: https://review-eu.gerrithub.io/c/cue-labs/oci/+/1171068
TryBot-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
@jdolitsky jdolitsky mentioned this pull request Jan 11, 2024
8 tasks
@sudo-bmitch sudo-bmitch mentioned this pull request Feb 1, 2024
8 tasks
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.

None yet

3 participants