Skip to content

Commit 2da6b51

Browse files
authored
Multiline python fix (#214)
Fixes remote access destination and bad python syntax
1 parent fb0ef54 commit 2da6b51

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

benchmarks/lowq2_reconstruction/config.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,24 @@ upload_onnx:lowq2_reconstruction:
9595
echo "File $LOWQ2_ONNX_FILE does not exist, deployment failed";
9696
exit 1;
9797
fi
98-
- ONNX_URL="$OSDF_ENDPOINT$OSDF_CALIB_OUTPUT_PREFIX/$ONNX_HASH/Low-Q2_Steering_Reconstruction.onnx"
98+
- XROOTD_ENDPOINT="root://dtn-eic.jlab.org/"
99+
- XROOTD_CALIB_PREFIX="/volatile/eic/EPIC/xrdtest/CALIB/"
100+
- ONNX_UPLOAD_URL="$OSDF_ENDPOINT$OSDF_CALIB_OUTPUT_PREFIX/$ONNX_HASH/Low-Q2_Steering_Reconstruction.onnx"
101+
- ONNX_DOWNLOAD_URL="$XROOTD_ENDPOINT$XROOTD_CALIB_PREFIX/$ONNX_HASH/Low-Q2_Steering_Reconstruction.onnx"
99102
- echo "Deploying to xrootd server using pelican"
100-
- echo "ONNX file will be available at $ONNX_URL"
101-
- wget https://dl.pelicanplatform.org/7.13.0/pelican_Linux_x86_64.tar.gz
102-
- sha256sum -c <(echo '38ac8548c67302299e50a1b81c159ed418e90d84a6606ddd377fd2c8b164d114 pelican_Linux_x86_64.tar.gz')
103-
- tar zxf pelican_Linux_x86_64.tar.gz
104-
- ./pelican-*/pelican object copy $LOWQ2_ONNX_FILE $ONNX_URL
103+
- echo "ONNX file will be available at $ONNX_UPLOAD_URL"
104+
- wget https://dl.pelicanplatform.org/7.13.0/pelican_Linux_x86_64.tar.gz
105+
- sha256sum -c <(echo '38ac8548c67302299e50a1b81c159ed418e90d84a6606ddd377fd2c8b164d114 pelican_Linux_x86_64.tar.gz')
106+
- tar zxf pelican_Linux_x86_64.tar.gz
107+
- ./pelican-*/pelican object copy $LOWQ2_ONNX_FILE $ONNX_UPLOAD_URL
105108
- echo "Updating PR with lowq2 reconstruction results"
106-
- python benchmarks/lowq2_reconstruction/makePRSuggestion.py --pr $GITHUB_PR --newURL "$ONNX_URL" \
107-
--githubToken $GITHUB_REPO_POST_COMMENT --calibrationFile calibrations/onnx/Low-Q2_Steering_Reconstruction.onnx \
108-
--xml compact/calibrations.xml --repository $GITHUB_REPOSITORY
109+
- |
110+
python benchmarks/lowq2_reconstruction/makePRSuggestion.py \
111+
--pr $GITHUB_PR \
112+
--newURL "$ONNX_DOWNLOAD_URL" \
113+
--githubToken $GITHUB_REPO_POST_COMMENT \
114+
--calibrationFile calibrations/onnx/Low-Q2_Steering_Reconstruction.onnx \
115+
--xml compact/calibrations.xml \
116+
--repository $GITHUB_REPOSITORY
109117
- echo "Updating GitHub status for lowq2 reconstruction"
110118

0 commit comments

Comments
 (0)