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

Upgrade Azure testing images and drop CI testing of Python 2 #279

Merged
merged 4 commits into from
Jan 17, 2022

Conversation

Patater
Copy link
Contributor

@Patater Patater commented Jan 17, 2022

Description

Azure dropped Ubuntu 16.04, so upgrade to 20.04 image which will work until that image is also removed at some point in the future. Azure will also be dropping the windows version we were using, so upgrade to windows-2019. Python 2 is also dropped from Azure CI, as that's been made less readily available.

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Azure pipelines removed the option of Ubuntu 16.04 and ubuntu-latest.
Upgrade to the current latest LTS release of Ubuntu explicitly.
@Patater Patater force-pushed the drop-azure-testing-old-ubuntu-python branch from f5ab5e3 to e19cef2 Compare January 17, 2022 14:34
Python 2 isn't readily available in Azure pipelines anymore. Instead of
testing Python 2 in CI, we'll have to rely on bug reports from Python 2
users.
@Patater Patater force-pushed the drop-azure-testing-old-ubuntu-python branch from e19cef2 to d061ec9 Compare January 17, 2022 14:36
The image we currently use, vs2017-win2016, is deprecated. It's
currently subject to "brownouts" and will be removed in the future.
Switch to using windows-2019 as a replacement, as that version hasn't
yet been deprecated.

See
https://devblogs.microsoft.com/devops/hosted-pipelines-image-deprecation/#windows
for more information about the deprecation.
Without specifying which image to use for the CiCheckpoint stage, Azure
will default to using Ubuntu 16.04. However, Ubuntu 16.04 has been
removed from Azure, so the pipeline stage will end up cancelling itself
with the following error:

    ##[warning]An image label with the label Ubuntu16 does not exist.
    ,##[error]The remote provider was unable to process the request.
    Pool: Azure Pipelines
    Image: Ubuntu16

Explicitly specify the image to use in the CiCheckpoint stage to ensure
the stage doesn't cancel itself.
@Patater Patater changed the title Drop azure testing old ubuntu python Upgrade Azure testing images and drop CI testing of Python 2 Jan 17, 2022
@Patater Patater merged commit e6ec2da into ARMmbed:master Jan 17, 2022
@@ -15,7 +15,7 @@ stages:
- job: code_style_check

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-20.04
Copy link
Contributor

Choose a reason for hiding this comment

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

Have Azure actually removed ubuntu-latest? The docs seem to say ubuntu-latest still exists. If they really have removed ubuntu-latest now, then we will also have to update mbed-tools again.

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