Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/benchmark-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,20 @@ jobs:
- name: Commit saved results
if: inputs.save == 'true'
run: |
# Get the PR's source branch and repo
PR_DATA=$(gh api "/repos/${{ github.repository }}/pulls/${{ inputs.pr }}" --jq '.head.ref + " " + .head.repo.full_name')
PR_BRANCH=$(echo "$PR_DATA" | awk '{print $1}')
PR_REPO=$(echo "$PR_DATA" | awk '{print $2}')

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add results/ site/data/ site/static/logs/ 2>/dev/null || true
if git diff --cached --quiet; then
echo "No results to commit"
else
git commit -m "Benchmark results: ${{ inputs.framework }} ${{ inputs.profile }}"
git push origin HEAD:refs/pull/${{ inputs.pr }}/head
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${PR_REPO}.git"
git push origin HEAD:"${PR_BRANCH}"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions frameworks/uwebsockets/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function startServer() {
});
});

// c1
// Catch-all GET — /baseline11 etc: sum query params
app.get('/*', (res, req) => {
const qs = req.getQuery();
Expand Down