Best practice for GitHub action
I'm currently running the conformance tests locally, and I'd also like to add the GitHub action. The issue I'm facing is that I need to be able to cleanly start and stop my development server (within the run of the step). Is there a possible extension to the step to allow for a start/stop script or command?
Take a look at how Quay has it configured as well. It's actually not great, we make our pytest infra exec the conformance binary, rather than using the upstream workflow:
https://github.com/quay/quay/blob/0a9487f8ac358b26aa12bb9851cb61c5786ac4dc/.github/workflows/CI.yaml#L135-L176 https://github.com/quay/quay/blob/0a9487f8ac358b26aa12bb9851cb61c5786ac4dc/test/registry/conformance_tests.py
Ah perfecto! Thank you, I will take a look and see if I can do something similar (I'll close the issue with an update after that).
Thank you @jzelinskie this worked beautifully! It's a shame we can't use the provided GitHub action, but it's fairly easy to also just compile the conformance test binary (maybe the maintainers here would consider an action that just generates the binary?) I was able to use similar logic and add a Django test and then as you did, compile the binary and run the tests. I think my question is addressed, so I'm going to close the issue. But if any maintainers of the repository here would be open to changes for how the action could be better used, I can definitely offer to help.
I was wondering about this as well recently. I built out a container for use here https://github.com/users/clarkbw/packages/container/package/distribution-spec%2Fconformance and was considering creating a PR against this repo to auto-build this container and publish versions of it. https://github.com/opencontainers/distribution-spec/compare/master...clarkbw:master
I would definitely appreciate that (and probably use it!) I think we'd need to know if the maintainers here would be open to it? Re-opening issue for discussion.
I think publishing the image to Github would be a great thing to add upon merge to master.
This is probably a duplicate of https://github.com/opencontainers/distribution-spec/issues/109
Note: current CI going through travis, so we would need to add new build manifests for actions