Skip to content

CI: Azure update from ubuntu-18.04 to ubuntu-latest and ubuntu-20.04 #23669

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

Merged
merged 2 commits into from
Aug 19, 2022

Conversation

scottshambaugh
Copy link
Contributor

@scottshambaugh scottshambaugh commented Aug 19, 2022

PR Summary

In the Azure config, the Ubuntu version is pinned to 18.04. However, the following warning is being raised in the Azure pipelines.

##[warning]The ubuntu-18.04 environment is deprecated, consider switching to ubuntu-20.04(ubuntu-latest), or ubuntu-22.04 instead. For more details see https://github.com/actions/virtual-environments/issues/6002

The linked issue actions/runner-images#6002 says that 18.04 will be unsupported on 12/1/22, and the first "brownout" where jobs will fail will happen August 22, 12:00 UTC - August 22, 16:00 UTC. IMO it's a poor approach to only have the warning up for 2 weeks before breaking tests, but best to get ahead of it at any rate.

This PR updates most of the linux versions to ubuntu-latest, and pins the lowest python version to ubuntu-20.04 for compatibility. 20.04 is a long-term-support Ubuntu release.

Edit: Some of this was covered in #23584 but it looks like Azure was missed.

PR Checklist

Tests and Styling

  • [N/A] Has pytest style unit tests (and pytest passes).
  • [N/A] Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • [N/A] Documentation is sphinx and numpydoc compliant (the docs should build without error).

@scottshambaugh scottshambaugh changed the title Azure use ubuntu-latest and ubuntu-20.04 CI: Azure update from ubuntu-18.04 to ubuntu-latest and ubuntu-20.04 Aug 19, 2022
@@ -97,7 +97,7 @@ stages:
graphviz \
inkscape \
libcairo2 \
libgirepository-1.0.1 \
libgirepository-1.0-1 \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea what this is used for or why the packaged made a minor name change like this, but the old name was broken on 20.04.

@scottshambaugh scottshambaugh marked this pull request as ready for review August 19, 2022 05:00
@scottshambaugh
Copy link
Contributor Author

As further conversation, I noticed this incidentally just a few days before github actions was going to start sporadically failing tests, which I think is a pretty ham-fisted way to raise awareness of an upcoming deprecation and something we should keep ahead of. The next time this will happen is in another two years and I doubt anyone will happen to remember then.

Perhaps we should raise azure warnings as errors? I'm not familiar with how often there are frivolous warnings in the pipeline, so that may hurt more than help.

@oscargus oscargus added this to the v3.6.0 milestone Aug 19, 2022
@QuLogic QuLogic merged commit 04d4ace into matplotlib:main Aug 19, 2022
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.

3 participants