You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable manylinux1 builds on Pipelines for CI testing #79864
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2019-01-08.04:19:11.952>labels= ['3.8', 'build', '3.7']
title='Enable manylinux1 builds on Pipelines for CI testing'updated_at=<Date2019-01-22.20:33:21.371>user='https://github.com/zooba'
I experimented with enabling a manylinux1 build a while back, which should now be able to use identical steps to the POSIX build. With the new syntax, we can enable CI (and perhaps PR?) builds using the snippet below:
I don't have time right now to test this change, but someone else might. It's certainly going to be easier for someone to test it by adding this to the PR build first (or set up a build on your own Pipelines instance).
Maybe there are other more relevant containers we should be testing in?
I have made the changes I suggested (though correctly...), but ultimately we need to create our own Docker image suitable for running these tests.
So for now, I'm proposing in my PR to make most of the change, as well as a few other Pipelines/test-related improvements, but to leave this open in case someone wants to come in later with a suitable image. At that point, the only change necessary to enable the tests will be to add a "posix_deps_yum.sh" script, update the image name/tag and change the manylinux variable to 'true'.
PR 11493 also fixes a missing LICENSE.txt file in the app store package, which was causing an idlelib test to fail as the fallback text only has one line. *Way* too obscure a failure for my liking, but at least we had a test there, so thanks, Terry :)
As mentioned above, those changes are other improvements that were worth taking, and about half of the required manylinux1 changes. But we probably need to maintain our own manylinux image for building/running CPython tests, if we want to do it. The existing images are all designed for having CPython already present to build a range of binaries, which is not at all our use case.
Activity
zooba commentedon Jan 8, 2019
Azure Pipelines can now support container jobs: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=vsts&tabs=yaml
I experimented with enabling a manylinux1 build a while back, which should now be able to use identical steps to the POSIX build. With the new syntax, we can enable CI (and perhaps PR?) builds using the snippet below:
job: ManyLinux1_CI_Tests
displayName: ManyLinux1 CI Tests
dependsOn: Prebuild
condition: |
and(
and(
succeeded(),
eq(variables['manylinux'], 'true')
),
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
)
resources:
containers:
image: dockcross:manylinux-x64
pool:
vmImage: ubuntu-16.04
container: manylinux1
variables:
testRunTitle: '$(build.sourceBranchName)-manylinux1'
testRunPlatform: manylinux1
steps:
I don't have time right now to test this change, but someone else might. It's certainly going to be easier for someone to test it by adding this to the PR build first (or set up a build on your own Pipelines instance).
Maybe there are other more relevant containers we should be testing in?
[-]Enable manylinux1 builds on Pipelines[/-][+]Enable manylinux1 builds on Pipelines for CI testing[/+]zooba commentedon Jan 17, 2019
I have made the changes I suggested (though correctly...), but ultimately we need to create our own Docker image suitable for running these tests.
So for now, I'm proposing in my PR to make most of the change, as well as a few other Pipelines/test-related improvements, but to leave this open in case someone wants to come in later with a suitable image. At that point, the only change necessary to enable the tests will be to add a "posix_deps_yum.sh" script, update the image name/tag and change the manylinux variable to 'true'.
PR 11493 also fixes a missing LICENSE.txt file in the app store package, which was causing an idlelib test to fail as the fallback text only has one line. *Way* too obscure a failure for my liking, but at least we had a test there, so thanks, Terry :)
terryjreedy commentedon Jan 17, 2019
I believe it was Louie Lu's idea, bpo-30290, to check more than one line.
I am glad it helped.
zooba commentedon Jan 22, 2019
New changeset 28f6cb3 by Steve Dower in branch 'master':
bpo-35683: Improve Azure Pipelines steps (GH-11493)
28f6cb3
zooba commentedon Jan 22, 2019
New changeset 128efca by Steve Dower in branch '3.7':
bpo-35683: Improve Azure Pipelines steps (GH-11493)
128efca
zooba commentedon Jan 22, 2019
As mentioned above, those changes are other improvements that were worth taking, and about half of the required manylinux1 changes. But we probably need to maintain our own manylinux image for building/running CPython tests, if we want to do it. The existing images are all designed for having CPython already present to build a range of binaries, which is not at all our use case.
furkanonder commentedon May 11, 2023
@zooba Issue seems have been resolved. Can we close the issue?
zooba commentedon May 11, 2023
Abandoned, rather than resolved, but I doubt we'll come back to it given the complexity of the space within manylinux these days.