language-tools
language-tools copied to clipboard
CI: flaky `Error: Expected two arguments, received 1` for `Check for new release on Marketplace` action
The error
Run node scripts/e2eTestsOnVsix/check_for_new_release.js 31.0.375
/home/runner/work/language-tools/language-tools/scripts/e2eTestsOnVsix/check_for_new_release.js:23
throw new Error(`Expected two arguments, received ${args.length}`)
^
Error: Expected two arguments, received 1
at Object.<anonymous> (/home/runner/work/language-tools/language-tools/scripts/e2eTestsOnVsix/check_for_new_release.js:23:11)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Examples https://github.com/prisma/language-tools/runs/4392163204?check_suite_focus=true#step:7:1 https://github.com/prisma/language-tools/runs/4417357484?check_suite_focus=true#step:7:1
We should check how this happens, it's adding some noise to the failures feed.
Origin could be bad input from previous step
Get versions of published extensions
shows a JSON parsing error
Run sh scripts/e2eTestsOnVsix/extension_version.sh
ERROR Unexpected token < in JSON at position 0
Currently published insider extension version: 31.0.383
Currently published stable extension version: