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

Add CI for new ubuntu-24.04 beta VM #700

Merged
merged 3 commits into from
May 27, 2024

Conversation

quark17
Copy link
Collaborator

@quark17 quark17 commented May 25, 2024

GitHub now provides an ubuntu-24.04 runner, in beta, so this adds that to the matrix for Ubuntu testing.

quark17 added 3 commits May 24, 2024 20:57
Installing with pip3 on the ubuntu-24.04 VM gives an error that the
python environment is externally managed.  It suggests using "apt" to
install packages, or else to create a virtual environment (with "venv"),
or use pipx to manage a virtual environment for you.  This issue was
encountered for macos-14 and addressed in an earlier commit.  We apply
a similar patch here.  It's possible that the same "apt" command can be
used for all Ubuntu versions; but we check the Ubuntu version and only
use "apt" for 24+.
This also reverts the additional 60 minutes added to timeouts for
macOS runners, that was added because Homebrew on macOS 11 needs
time to compile installed packages from source.
@quark17
Copy link
Collaborator Author

quark17 commented May 25, 2024

I've included a commit to remove macos-11 from the testing matrix, since the build is now failing due to exceeding the timeout. A combination of (1) that Homebrew no longer supports installing binary packages for macOS 11, so it had to compile from source; (2) that we added brew update to workaround an issue with GitHub's runners; and (3) that more packages have new versions since the macos-11 runner snapshot was made; means that the macos-11 runner is now exceeding the 90 minute timeout just in the "install dependencies" stage. We could increase the timeout, but that would be time spent in our CI each time it runs (and holding up other macOS jobs), so it's probably just time that we remove macos-11.

(The reason why so many packages are being installed is because we've run brew update before runing brew install for a large list of dependencies. We only needed update for the mactex package, so an option might be to run install for everything else, then run update, then install just for mactex -- which should greatly reduce the number of dependent packages that will get installed at newer versions. But it's probably not worth the time to experiment with it.)

@quark17 quark17 merged commit 1b2c145 into B-Lang-org:main May 27, 2024
49 checks passed
@quark17 quark17 deleted the add-ubuntu-24.04 branch May 27, 2024 21:45
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

Successfully merging this pull request may close these issues.

1 participant