#AbortError on Github Action

1 messages · Page 1 of 1 (latest)

cursive fractal
#

I am getting an error after 5 minutes of execution of my Dagger CI pipeline. I am a bit confused about where this comes from and if I can configure it. I could not find anything in the documentation about timeouts. Surely it is possible to have pipelines running for more than 5 minutes?

AbortError: The operation timed out
Error: Encountered an unknown error while requesting data via graphql

https://github.com/demarches-simplifiees/demarches-simplifiees.fr/actions/runs/13704859634/job/38336924878

GitHub

Dématérialiser et simplifier les démarches administratives - [WIP] use dagger · demarches-simplifiees/demarches-simplifiees.fr@1c92136

tropic geyser
#

@cursive fractal do you have a Dagger Cloud trace URL to share? it's easier for us to understand the error there

#

additionally cc @trail gulch could it be related to a bun sdk thing? I'm seeing that they're using bun here and I recall we had some typescript timeout issues in the past

#

not sure if/how they might affect bun

cursive fractal
#

5 min is default bun fetch timeout

trail gulch
#

Yeeeeah... I think that's the error
However I added a fix that should also works for Bun 😮

#

I remember that I also extended timeout in all of our units tests and it seems we never encountered that problem anymore

cursive fractal
trail gulch
#

Ohhh yeah, that could definitely be a problem

cursive fractal
#

I tried to switch runtime to node in dagger.json but it seems bun is still used. Is it because of the presence of bun.lockb ?

cursive fractal
#

I was thinking more about the fetch issue: if you're using node-fetch instead of native fetch, the bun issue should not affect dagger...

trail gulch
trail gulch
# cursive fractal I tried to switch runtime to node in dagger.json but it seems bun is still used....

The runtime must be configured in the package.json, not the dagger.json: https://docs.dagger.io/configuration/modules#alternative-runtimes

Modules can be configured by editing their dagger.json file. The configuration in there contains all module metadata - from the name of the module and the SDK it uses, to the dependencies it requires. An initial configuration is automatically generated when using dagger init or dagger develop for the first time, and is kept up-to-date with dagge...

cursive fractal
#

I ended up switching to the node runtime, and it solved the problem

tropic geyser
limber lion
#

jep had the same issue and had to switch back to node. although bun seems to be faster

trail gulch
limber lion
#

but maybe i need to update the bun runtime

limber lion
#

@trail gulch

Error logs:

✘ .bunTimeoutRepro: String! 5m1s
AbortError: The operation timed out
Error: Encountered an unknown error while requesting data via graphql
! process "bun /src/.dagger/src/__dagger.entrypoint.ts" did not complete successfully: exit code: 1
Error: input: test.bunTimeoutRepro process "bun /src/.dagger/src/__dagger.entrypoint.ts" did not complete successfully: exit code: 1
  /**
   * Bun timeout
   */
  @func()
  async bunTimeoutRepro(): Promise<string> {
    return dag
      .container()
      .from("alpine:latest")
      .withExec(["sleep", "10m"])
      .stdout();
  }
trail gulch
#

Is it only happening if you sleep for 10 minutes?
Edit: okay I looked at the issue.

I’ll see if there’s a way to fix it on our side

limber lion
trail gulch
#

Okay, I'm wondering if the bundling (see: #typescript) may be helpful to fix that issue because it seems bun can run the node bundle, so maybe the timeout issue is fixed that way

#

I'll try

#

Ohhh yep, seems like using the bundle library fixes the problem when bundle in target=node

trail gulch
trail gulch
limber lion
#

sweet!