-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Pipelines fail with SyntaxError: Unexpected token
#22
Comments
Mm.. just got more failing pipelines, same as the error reported here. Maybe it's not random request/response errors if they occur so close together… could the endpoint be rate-limited? If response headers indicate when another request is allowed this action could delay until that time? I assume the file itself cannot be cached locally to this action? It's not like it needs to re-download it every time if it was last fetched by another CI run a few minutes ago… but I'm not really sure what's possible in the GitHub Actions infrastructure. |
We run multiple jobs in parallel so now I suspect we're being ratelimited by the jobs starting in parallel that all download pnpm.js. Do you foresee a way to share the downloaded artifact for the whole CI job? I'm considering ways to download it once when the pipeline starts and somehow sharing the file-location with I can help work on a PR, but looking to align w. maintainers before I go too crazy. |
Are you using the latest version of pnpm/action-setup? |
Sorry I should have included that information, yes here's the pipeline snippet:
That snippet sits inside a matrix that currently ramps up to 27 parallel jobs. |
|
Yikes okay, thanks change. |
I tried downloading multiple Anyway, I will leave this issue open for a month or two. If there is a problem, let me know. |
Thanks. If we see it again with the latest version we're discussing a fork to introduce additional debug information, and if the smoking gun points to the downlading of pnpm.js then we could introduce caching of it. But we'll wait and see too 👍 |
Just got the same issue with
|
Same issue in Github matrix actions:
We also set npmrc before installing pnpm:
But these setting should not be a problem. And these actions only fail in an action We will try to combine these actions together to make sure this is not rate limit problem later on. |
Still happens to us on version 2.1.0. Any suggestions?
|
maybe we should add some retries. |
@zkochan Can you elaborate more about this PR? |
I see, pnpm fetch utils seems dealing with falsy response with retry. |
changing the URL is unrelated. It was just an old version, so I updated it. The fix is in using |
I have also configured cloudflare caching, so I don't think this will happen again |
Still ran into this issue today. |
got a hit for this as well today: https://github.com/sveltejs/kit/runs/6599932579?check_suite_focus=true#step:4:14 given https://get.pnpm.io/install.sh exists, could this action embed (not download!) this shell script or an equivalent js implementation to download straight from npm registry instead? that way it would no longer depend on availability of pnpm.io |
Can't we just commit that file to this repository? |
🚢 2.2.2 |
Hi, we see occasional failed pipelines because, well, something goes wrong in
pnpm/action-setup
:I'm not sure if it's this line
const response = await fetch('https://pnpm.js.org/pnpm.js')
that might fail? If it somehow gets an HTML response? So if pnpm.js.org fails to return thepnpm.js
script for a splitsecond, instead returning an HTML error page, then that could happen?Will maintainers consider a retry mechanism to increase resilience? If the request is the cause of this error then an exponential backoff could work well, to try a couple times before giving up. WDYT?
The text was updated successfully, but these errors were encountered: