Python 2 to Python 3
Confidence Level High This article been formally reviewed and is signed off on by a relevant subject matter expert. |
---|
We are working on porting our python 2 PGE's to python 3. Individual PGE's will be tested and validated against equivalent datasets in C-cluster. Once all PGE's have been validated, a system level test of the pipeline will be performed to ensure all trigger rules are in place and all expected products are generated.
Pipeline
<update pipeline diagram>
PGE's Ported to Python 3
PGE I/O
PGE test list is incomplete. We are currently focusing on the main pipeline
Test Procedures
Process
For this example we are porting the aoi ops report.
Create a python3 virtual environment.
virtualenv env3 -p python3 to create the virtual environmentStart the python3 virtual environment.
source ~/env3/bin/activate to start a python 3 virtual environmentPull contents of repo on a new branch named python3
Run futurize over the contents of the repo.
pip install future
cd <repo>
futurize -w -n -p .
Output will show what has been changed.ssh into e mozart to add the python3 converted pge : sds ci add_job -k -b develop https://github.com/aria-jpl/standard_product_report.git s3
Go to e jenkins and click configure. Specify the branch as python3 branch and build. check the docker file change FROM to the latest branch. wait for build to complete successfully. may take a few minutes. will publish job to e cluster automatically.
Go to e cluster and run job. step into container if you need to debug stuff.
Once job runs successfully, push changes to dev.
Related Articles: |
---|
Have Questions? Ask a HySDS Developer: |
Anyone can join our public Slack channel to learn more about HySDS. JPL employees can join #HySDS-Community
|
JPLers can also ask HySDS questions at Stack Overflow Enterprise
|
Page Information: |
---|
Was this page useful? |
Contribution History:
|
Subject Matter Expert: @Marjorie Lucas |
Find an Error? Is this document outdated or inaccurate? Please contact the assigned Page Maintainer: @Marjorie Lucas |