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
Check for large runners #15471
base: main
Are you sure you want to change the base?
Check for large runners #15471
Conversation
|
Technically, we could do this: diff --git a/.github/workflows/compile-queries.yml b/.github/workflows/compile-queries.yml
index 430807c95d..ddb3aa794f 100644
--- a/.github/workflows/compile-queries.yml
+++ b/.github/workflows/compile-queries.yml
@@ -12,19 +12,11 @@ jobs:
choose-runner:
runs-on: ubuntu-latest
outputs:
- mac-12: ${{ steps.results.outputs.MAC_12 }}
- ubuntu-latest: ${{ steps.results.outputs.UBUNTU_LATEST }}
- windows-latest: ${{ steps.results.outputs.WINDOWS_LATEST }}
+ mac-12: ${{ vars.use-large-mac-runners-for-speed && 'macos-12-xl' || 'macos-12' }}
+ ubuntu-latest: ${{ vars.use-large-linux-runners-for-speed && 'ubuntu-latest-xl' || 'ubuntu-latest' }}
+ windows-latest: ${{ vars.use-large-win-runners-for-speed && 'windows-latest-xl' || 'windows-latest' }}
steps:
- - id: results
- run: |
- echo "UBUNTU_LATEST=$UBUNTU_LATEST" >> $GITHUB_OUTPUT
- echo "MAC_12=$MAC_12" >> $GITHUB_OUTPUT
- echo "WINDOWS_LATEST=$WINDOWS_LATEST" >> $GITHUB_OUTPUT
- env:
- UBUNTU_LATEST: ${{ vars.use-large-linux-runners-for-speed && 'ubuntu-latest-xl' || 'ubuntu-latest' }}
- MAC_12: ${{ vars.use-large-mac-runners-for-speed && 'macos-12-xl' || 'macos-12' }}
- WINDOWS_LATEST: ${{ vars.use-large-win-runners-for-speed && 'windows-latest-xl' || 'windows-latest' }}
+ - run: true
compile-queries:
needs: choose-runner
The downside is that then which runner is selected is absolutely opaque because outputs aren't logged anywhere and nothing in a job run explicitly shows the viewer the If a non-standard runner is selected, there actually is some information indicating it, but for people who don't use non-standard runners it might not be obvious: (We used to use self-hosted runners a lot not many months ago and I've apparently quickly forgotten these things,, and even though I interact with this and other repositories occasionally, I clearly haven't remembered this detail.) |
Variable | Runner to use if set to `1` -|- `use-large-linux-runners-for-speed` | `ubuntu-latest-xl` `use-large-mac-runners-for-speed` | `macos-12-xl` `use-large-win-runners-for-speed` | `windows-latest-xl`
|
@angelapwen I don't suppose you could get someone to look over this one as well? With this (and the other), I have two failures, but they're things I can't see a way to address: In file included from external/binlog/include/binlog/PrettyPrinter.cpp:1:
In file included from external/binlog/include/binlog/PrettyPrinter.hpp:6:
In file included from external/binlog/include/binlog/Time.hpp:6:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: error: call to consteval function 'std::chrono::hh_mm_ss::_S_fractional_width' is not a constant expression
static constexpr unsigned fractional_width = {_S_fractional_width()};https://github.com/check-spelling-sandbox/codeql/actions/runs/7724725863/job/21057437161 This workflow (Ruby: Run QL Tests) seems to consistently die. I don't understand why. https://github.com/check-spelling-sandbox/codeql/actions/runs/7724725861 qltest (1/2) My guess is that this one involves exceeding some resource allocations and being killed by a manager. But I can't tell (it's consistent, I've tried rerunning it). The only outstanding one is: compile-queries which has been running for 4 hours (it's possible it will not fit in the 6 hour window). If at all possible, it'd be great if this could be run using a matrix to get some parallel runners -- forks aren't likely to pay for large runners, but they can generally use a matrix of additional runners (my org does hit limits from some really rude repositories, but usually I'm only dealing w/ one or two of those repositories at a time). |
The |
|
I've seen some workflows that actively shoot a bunch of ancillary services in order to free memory :). |


fixes #15464
1use-large-linux-runners-for-speedubuntu-latest-xluse-large-mac-runners-for-speedmacos-12-xluse-large-win-runners-for-speedwindows-latest-xlFor simplicity, I'm copy-pasting the entire block to each workflow that needs it, this means that updating the rules can be done w/ a search+replace instead of worrying about things getting out of sync. The cost of checking each of them is minimal (especially vs the cost of running on a slow runner or waiting forever for a runner that will never happen).