fastify/benchmarks

Failing cron job

mcollina opened this issue · 1 comments

The cron job is failing:

Run node_version=$(node --version)
  node_version=$(node --version)
  benchmark_title=$(cat << EOF
  # Benchmarks
  * __Machine:__ $(uname -a) | $(node -r os -p "\`\${os.cpus().length} vCPUs | \${Math.ceil(os.totalmem() / (Math.pow(1024, 3)))}GB\`").
  * __Method:__ \`autocannon -c 100 -d 40 -p 10 localhost:3000\` (two rounds; one to warm-up, one to measure).
  * __Node:__ \`$node_version\`
  * __Run:__ $(date)
  EOF)
  benchmark_table=$(node benchmark-compare.js -t -c)
  strip_readme=$(node -r fs -p 'fs.readFileSync("./README.md", "utf-8").split(/# Benchmarks/)[0]')
  git checkout master
  echo -e "${strip_readme:?}\n${benchmark_title:?}\n\n${benchmark_table}" > README.md
  git add README.md
  git add benchmark-results.json
  git config user.name 'Github Actions'
  git config user.email '<>'
  git commit -m "Add new benchmarks to README.md"
  shell: /bin/bash -e {0}
/home/runner/work/_temp/4d56e358-8cc9-486b-99cb-de45d7b03d5d.sh: line 15: warning: here-document at line 9 delimited by end-of-file (wanted `EOF')
Error: Process completed with exit code 130.

See https://github.com/fastify/benchmarks/runs/1803265902?check_suite_focus=true for more details

It's not happening anymore as far I know.