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

Automatically cancel actions with a superceding commit #2304

Closed
jordandsullivan opened this issue Apr 17, 2024 · 3 comments
Closed

Automatically cancel actions with a superceding commit #2304

jordandsullivan opened this issue Apr 17, 2024 · 3 comments
Labels
feature-request A request for a feature, tool, or workflow in Mitiq. infrastructure For issues related to building, packaging, and continuous integration. non-quantum Requires no knowledge of quantum physics to fix / work on.

Comments

@jordandsullivan
Copy link
Contributor

jordandsullivan commented Apr 17, 2024

Issue Description

Since our docs builds take quite some time...
Screen Shot 2024-04-17 at 2 37 12 PM
...it would be useful if there were a way to automatically cancel running actions which were triggered by a previous commit (i.e. not the most recent). This way if in a PR, multiple commits are submitted in quick succession, this will not clog up the Github actions server for hours.

Proposed Solution

We can choose from several solutions mentioned here: https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre

Additional References

@jordandsullivan jordandsullivan added infrastructure For issues related to building, packaging, and continuous integration. non-quantum Requires no knowledge of quantum physics to fix / work on. feature-request A request for a feature, tool, or workflow in Mitiq. labels Apr 17, 2024
@natestemen
Copy link
Member

Do you know if GitHub limits resources to builds based on the number of existing concurrent builds? I did a quick search on GitHub docs and couldn't find anything, but I do recall jobs taking longer to start when there are multiple concurrent builds.

@jordandsullivan
Copy link
Contributor Author

Speaking from personal experience, there is a limit, as actions will start queuing after you submit more than a few. I can try to grab a screenshot next time this happens.

@jordandsullivan
Copy link
Contributor Author

Seems like workaround can just be to cancel the job manually or build docs locally.

@jordandsullivan jordandsullivan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a feature, tool, or workflow in Mitiq. infrastructure For issues related to building, packaging, and continuous integration. non-quantum Requires no knowledge of quantum physics to fix / work on.
Projects
None yet
Development

No branches or pull requests

2 participants