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
workflows/doctor: use ephemeral runners #14172
Conversation
This workflow hasn't been set up to run on our ephemeral runners. Let's fix that.
Review period will end on 2022-11-25 at 06:17:22 UTC. |
Review period skipped due to |
I've enabled this repo in the GitHub App settings, so should work now. |
Running on ephemeral is really slow. Our bare metal runners can complete the I wonder why they're so much slower. |
Co-authored-by: Bo Anderson <mail@boanderson.me>
Some of it will be updating homebrew-core being slow (ephemeral will have an older copy while non-ephemeral will be near up-to-date from the last run) and needing to run Cleanup slowness on Monterey still needs further investigation. |
Perhaps we could avoid doing this at all for Homebrew/brew usage?
actions/cache feels like a good call. also: why do we need these gems for
Is this pre-cleanup? |
We don't really but it's a fixed part of
Yes ( |
Gotcha. Could definitely remove or move to another
Agreed 👍🏻. IMO we should do the bare minimum to only cleanup the stuff |
How much of the setup do we need? (Or the cleanup steps, for that matter?) I'm wondering if we can cut those all out and run |
The self-hosted images should already be set up that the cleanup required is zero.
Should be zero I think. |
So, maybe something like this then? diff --git a/.github/workflows/doctor.yml b/.github/workflows/doctor.yml
index 50409557e..0335cda25 100644
--- a/.github/workflows/doctor.yml
+++ b/.github/workflows/doctor.yml
@@ -32,8 +32,9 @@ jobs:
uses: Homebrew/actions/setup-homebrew@master
- run: brew test-bot --only-cleanup-before
+ if: ! contains(matrix.runner, github.run_id)
- - run: brew test-bot --only-setup
+ - run: brew doctor
- run: brew test-bot --only-cleanup-after
- if: always()
+ if: always() && ! contains(matrix.runner, github.run_id) Not sure if some of those should be wrapped in |
Based on discussion from Homebrew#14172.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This workflow hasn't been set up to run on our ephemeral runners. Let's
fix that.