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

test: migrate tests to Python3 by default #32685

Merged
merged 1 commit into from Aug 26, 2020

Conversation

compnerd
Copy link
Collaborator

@compnerd compnerd commented Jul 2, 2020

This changes the python interpreter used to invoke the tests to Python3.
Python2 has been EOL'ed by the Python Software Foundation. This
migration enables the Swift test suite to run with Python 3 instead.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd compnerd marked this pull request as draft July 2, 2020 17:49
@compnerd
Copy link
Collaborator Author

compnerd commented Jul 2, 2020

CC: @tachoknight @drexin @shahmishal

@compnerd
Copy link
Collaborator Author

compnerd commented Jul 2, 2020

This is basically to gauge how the CI systems will take to this. I still have a few failures locally that need to be investigated.

@compnerd
Copy link
Collaborator Author

compnerd commented Jul 2, 2020

@swift-ci please clean test

@swift-ci
Copy link
Collaborator

swift-ci commented Jul 2, 2020

Build failed
Swift Test Linux Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@swift-ci
Copy link
Collaborator

swift-ci commented Jul 2, 2020

Build failed
Swift Test OS X Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

compnerd commented Jul 9, 2020

@swift-ci please test windows platform

@compnerd
Copy link
Collaborator Author

compnerd commented Jul 9, 2020

@swift-ci please test Windows platform

@compnerd
Copy link
Collaborator Author

compnerd commented Jul 9, 2020

@swift-ci please test Linux platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Linux Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

@swift-ci please test windows platform

@compnerd
Copy link
Collaborator Author

@swift-ci please test Windows platform

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1443

@swift-ci please test Linux platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Linux Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1443

@swift-ci please test macOS platform

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1443

@swift-ci please smoke test Linux platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test OS X Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1443

@swift-ci please test macOS platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test OS X Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

@swift-ci please test Linux platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Linux Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1445

@swift-ci please test Linux platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Linux Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1445

@swift-ci please test macOS platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test OS X Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1445

@swift-ci please test Linux platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Linux Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1445

@swift-ci please test Linux platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Linux Platform
Git Sha - 593b496eaae148ce173d1e13ea64924722e7bbd1

@compnerd
Copy link
Collaborator Author

Please test with following PRs:
apple/llvm-project#1445

@swift-ci please test macOS platform

@compnerd
Copy link
Collaborator Author

@swift-ci please test CentOS 7 platform

1 similar comment
@compnerd
Copy link
Collaborator Author

@swift-ci please test CentOS 7 platform

@compnerd
Copy link
Collaborator Author

@swift-ci please test Amazon Linux 2 Platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Amazon Linux 2 Platform
Git Sha - b99861a3f73dae906cc4ff5f1a9851087c199d83

@compnerd
Copy link
Collaborator Author

@swift-ci please test Amazon Linux 2 Platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Amazon Linux 2 Platform
Git Sha - b99861a3f73dae906cc4ff5f1a9851087c199d83

@drexin
Copy link
Member

drexin commented Aug 17, 2020

@swift-ci please test Amazon Linux 2 Platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Amazon Linux 2 Platform
Git Sha - b99861a3f73dae906cc4ff5f1a9851087c199d83

@drexin
Copy link
Member

drexin commented Aug 17, 2020

@swift-ci please clean test Amazon Linux 2 Platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Amazon Linux 2 Platform
Git Sha - b99861a3f73dae906cc4ff5f1a9851087c199d83

This changes the python interpreter used to invoke the tests to Python3.
Python2 has been EOL'ed by the Python Software Foundation.  This
migration enables the Swift test suite to run with Python 3 instead.
@drexin
Copy link
Member

drexin commented Aug 18, 2020

@swift-ci please test Amazon Linux 2 Platform

@shahmishal
Copy link
Member

@swift-ci smoke test

@shahmishal
Copy link
Member

@swift-ci test

@shahmishal
Copy link
Member

@swift-ci smoke test

@compnerd
Copy link
Collaborator Author

@swift-ci please test Windows platform

@swift-ci
Copy link
Collaborator

Build failed
Swift Test OS X Platform
Git Sha - 17c8d27

@compnerd
Copy link
Collaborator Author

@shahmishal seems that the macOS builders are missing flake8?

--
: 'RUN: at line 8';   /Applications/Xcode-beta.app/Contents/Developer/usr/bin/python3 /Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/swift/utils/python_lint.py
--
Exit Code: 1

Command Output (stdout):
--

The flake8 and flake8-import-order Python packages are required for linting,
but these were not found on your system.

You can install these using:

    python -m pip install flake8
    python -m pip install flake8-import-order

For more help, see http://flake8.pycqa.org.


--

********************

@shahmishal
Copy link
Member

Checking why macOS-64 is missing the module

@shahmishal
Copy link
Member

Node updated:

xcrun python3 -m flake8 --version
3.8.3 (import-order: 0.18.1, mccabe: 0.6.1, pycodestyle: 2.6.0, pyflakes: 2.2.0) CPython 3.8.2 on Darwin

@shahmishal
Copy link
Member

@swift-ci test macOS

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Amazon Linux 2 Platform
Git Sha - 17c8d27

@drexin
Copy link
Member

drexin commented Aug 20, 2020

@swift-ci test amazon linux 2

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Amazon Linux 2 Platform
Git Sha - 17c8d27

@drexin
Copy link
Member

drexin commented Aug 21, 2020

@swift-ci test amazon linux 2

@compnerd
Copy link
Collaborator Author

@shahmishal - this is ready to go whenever you are

@shahmishal shahmishal merged commit b37de4b into apple:master Aug 26, 2020
@shahmishal
Copy link
Member

Thanks @compnerd and @drexin!

@compnerd compnerd deleted the testing-the-future branch August 26, 2020 20:07
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.

None yet

4 participants