Python2 to Python3 Port
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 to port to Python3
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 using this command:
sds ci add_job -k -b develop GitHub - aria-jpl/standard_product_report: Generates intermediate products reports for GUNW standard products by input AOI s3Go to e Jenkins and click configure. Specify the branch as python3 branch and build. Check the docker file and 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.