Skip to content

Commit

Permalink
Fix slack-message
Browse files Browse the repository at this point in the history
"$()" does not seem to be allowed in yaml
  • Loading branch information
Sbozzolo committed Aug 15, 2024
1 parent 7671978 commit b654a29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .buildkite/amip/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,8 @@ steps:
find experiments/ClimaEarth/output/amip/amip_artifacts/ -type f -name 'bias*.png' -print0 | while IFS= read -r -d '' file; do
slack-upload -c "#coupler-report" -f "$$file" -m png -n "$$(basename "$$file" .png)" -x "$$(basename "$$file" .png)"
done
- SYPD="$(cat experiments/ClimaEarth/output/amip/amip_artifacts/sypd.txt)"; WALL="$(cat experiments/ClimaEarth/output/amip/amip_artifacts/walltime_per_atmos_step.txt)"; slack-message -c "#coupler-report" -x "SYPD: $SYPD Walltime per Atmos step: $WALL"
- cat experiments/ClimaEarth/output/amip/amip_artifacts/sypd.txt cat experiments/ClimaEarth/output/amip/amip_artifacts/walltime_per_atmos_step.txt >> /tmp/report1.txt
- |
echo -e "SYPD: \nWalltime per atmos step:" >> /tmp/report2.txt
paste /tmp/report1.txt /tmp/report2.txt >> /tmp/report.txt
cat /tmp/report.txt | xargs -I {} slack-message -c "#coupler-report" -x "{}"

0 comments on commit b654a29

Please sign in to comment.