Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing cron job #154

Closed
mcollina opened this issue Feb 1, 2021 · 1 comment
Closed

Failing cron job #154

mcollina opened this issue Feb 1, 2021 · 1 comment

Comments

@mcollina
Copy link
Member

mcollina commented Feb 1, 2021

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

@RafaelGSS
Copy link
Member

It's not happening anymore as far I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants