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

Best practice for GitHub action #199

Open
vsoch opened this issue Oct 12, 2020 · 7 comments
Open

Best practice for GitHub action #199

vsoch opened this issue Oct 12, 2020 · 7 comments

Comments

@vsoch
Copy link
Contributor

vsoch commented Oct 12, 2020

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?

@jzelinskie
Copy link
Member

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

@vsoch
Copy link
Contributor Author

vsoch commented Oct 12, 2020

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).

@vsoch
Copy link
Contributor Author

vsoch commented Oct 12, 2020

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.

@vsoch vsoch closed this as completed Oct 12, 2020
@clarkbw
Copy link

clarkbw commented Oct 13, 2020

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. master...clarkbw:master

@vsoch
Copy link
Contributor Author

vsoch commented Oct 14, 2020

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.

@vsoch vsoch reopened this Oct 14, 2020
@jdolitsky
Copy link
Member

I think publishing the image to Github would be a great thing to add upon merge to master.

This is probably a duplicate of #109

@jdolitsky
Copy link
Member

Note: current CI going through travis, so we would need to add new build manifests for actions

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

No branches or pull requests

4 participants