Skip to content

Commit

Permalink
switched all python2.7 to python3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
drewtaylors authored and t-nelson committed Sep 22, 2021
1 parent 1b58166 commit cf43587
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ci/dependabot-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo --- "(FAILING) Backpropagating dependabot-triggered Cargo.lock updates"
name="dependabot-buildkite"
api_base="https://api.github.com/repos/solana-labs/solana/pulls"
pr_num=$(echo "$BUILDKITE_BRANCH" | grep -Eo '[0-9]+')
branch=$(curl -s "$api_base/$pr_num" | python -c 'import json,sys;print json.load(sys.stdin)["head"]["ref"]')
branch=$(curl -s "$api_base/$pr_num" | python3 -c 'import json,sys;print json.load(sys.stdin)["head"]["ref"]')

git add :**/Cargo.lock
EMAIL="dependabot-buildkite@noreply.solana.com" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/perf-plot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import matplotlib
matplotlib.use('Agg')
Expand Down
4 changes: 2 additions & 2 deletions system-test/automation_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function collect_performance_statistics {
curl -G "${INFLUX_HOST}/query?u=ro&p=topsecret" \
--data-urlencode "db=${TESTNET_TAG}" \
--data-urlencode "q=$q_mean_tps;$q_max_tps;$q_mean_confirmation;$q_max_confirmation;$q_99th_confirmation;$q_max_tower_distance_observed;$q_last_tower_distance_observed" |
python "${REPO_ROOT}"/system-test/testnet-automation-json-parser.py >>"$RESULT_FILE"
python3 "${REPO_ROOT}"/system-test/testnet-automation-json-parser.py >>"$RESULT_FILE"

declare q_dropped_vote_hash_count='
SELECT sum("count") as "sum_dropped_vote_hash"
Expand All @@ -175,7 +175,7 @@ function collect_performance_statistics {
curl -G "${INFLUX_HOST}/query?u=ro&p=topsecret" \
--data-urlencode "db=${TESTNET_TAG}" \
--data-urlencode "q=$q_dropped_vote_hash_count" |
python "${REPO_ROOT}"/system-test/testnet-automation-json-parser-missing.py)
python3 "${REPO_ROOT}"/system-test/testnet-automation-json-parser-missing.py)
}

function upload_results_to_slack() {
Expand Down

0 comments on commit cf43587

Please sign in to comment.