Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmesamster committed Nov 8, 2024
1 parent fb3dd37 commit 6af7781
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,21 @@ jobs:
- name: Run Jasmine performance tests
run: |
if [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" -eq 0 ]]; then
echo "Running manually"
ruby scripts/benchmarks/process.rb 1
rustup -V
curl https://sh.rustup.rs -sSf | RUSTUP_INIT_SKIP_PATH_CHECK=yes sh -s -- -y
rustup update
export PATH="/root/.cargo/bin:$PATH"
source ~/.bashrc
rustup -V
if [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" -le 10 ]]; then
echo "Running manually with a PR ID of 10 or less."
ruby scripts/benchmarks/process.rb ${{ github.event.inputs.pr_id }}
elif [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" =~ ^[0-9]+$ ]]; then
echo "Running manually with a valid numeric PR ID greater than 10."
ruby scripts/benchmarks/process.rb PR~${{ github.event.inputs.pr_id }}
elif [[ "${{ github.event_name }}" != 'workflow_dispatch' ]]; then
echo "Running on a non-workflow_dispatch event."
echo "Executing: ruby scripts/benchmarks/process.rb 1"
ruby scripts/benchmarks/process.rb 1
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/benchmarks/process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def process_release_or_pr(branch_or_tag_name, identifier, env_vars)
puts "Benchmark results:"
system("cat #{result_path}")
else
puts "Benchmark results not found at #{result_path}."
raise "Benchmark results not found at #{result_path}."
end
rescue => e
puts "An error occurred while processing #{identifier}: #{e.message}"
Expand Down

0 comments on commit 6af7781

Please sign in to comment.