-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Runtime download of compile assets (denort-x86_64-unknown-linux-gnu.zip
) fails
#27988
Comments
denort-x86_64-unknown-linux-gnu.zip
) fails
FYI, it's a much better practice to pre-download and cache the DENORT_BIN=/path/to/denort deno compile ... |
I'm totally happy to do that, thanks! I wasn't aware this was an option; is there any documentation on this? Really, it feels like this should be the default anyway; just downloading code after installation doesn't feel very good. |
@thoughtpolice we're on the same page. Since the inception of |
I could produce a minimal reproduction case, showing that this is a concurrency issue. // test.ts, no `deno.json`
console.log("test"); # .github/workflows/ci.yml
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: denoland/setup-deno@v2
- name: Build
run: |
deno compile -A -o test1 test.ts &
deno compile -A -o test2 test.ts &
deno compile -A -o test3 test.ts &
deno compile -A -o test4 test.ts &
deno compile -A -o test5 test.ts &
deno compile -A -o test6 test.ts &
deno compile -A -o test7 test.ts &
deno compile -A -o test8 test.ts &
deno compile -A -o test9 test.ts This produces many failures like below.
I doubt it is related to anything with GitHub runners. When the runtime is cached in a prior step with Does not reproduce at v1.40.4, but reproduces at v1.40.5 where the denort binary was introduced with #22205. |
Ah, good catch! That would explain it since my Buck builds probably try to run multiple copies of |
Interesting. Does it happen in canary ( |
Thanks for testing! |
Version: Deno 2.1.9
(Refile of #26672)
While running
deno compile
under GitHub Actions, I am consistently running into the error described in #26672, repeated here below:https://github.com/thoughtpolice/qq/actions/runs/13169912728/job/36758221145#step:6:75
This only seems to happen:
This has something like a 20-40% hit rate in my experience, so it's really clogging up my CI pipelines, where I run compile on some Deno apps in the tree.
I'm not sure how to easily reproduce this, but I guess you could fork my repo and just make a bunch of meaningless commits to try and diagnose?
The text was updated successfully, but these errors were encountered: