Skip to content

Commit

Permalink
fix: JSON must not have trailing commas (#1680)
Browse files Browse the repository at this point in the history
The commit-metadata job also tolerated sub-shell failures.

I've already uploaded the missing commit entry (from the current tip) to
S3.
  • Loading branch information
danking authored Dec 13, 2024
1 parent 6c63cf9 commit 9d8bb1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:
- name: Upload Commit Metadata
shell: bash
run: |
set -Eeu -o pipefail -x
sudo apt-get update && sudo apt-get install -y jq
bash scripts/cat-s3.sh vortex-benchmark-results-database commits.json <(bash scripts/commit-json.sh)
bash scripts/commit-json.sh > new-commit.json
bash scripts/cat-s3.sh vortex-benchmark-results-database commits.json new-commit.json
bench:
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion scripts/commit-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jq --compact-output '.' <<EOF
"message": "$commit_title",
"timestamp": "$commit_timestamp",
"tree_id": "$tree_id",
"url": "$repo_url/commit/$commit_id",
"url": "$repo_url/commit/$commit_id"
}
EOF

0 comments on commit 9d8bb1f

Please sign in to comment.