#Failure on GH but passing on local

1 messages · Page 1 of 1 (latest)

frosty wharf
#

Hello everybody!

I just upgraded from 0.13.7 to 0.15.0. It works just fine locally but when it runs on GH it fails. Interestingly enough, Dagger Cloud shows it as successful instead of a failure.

This is the trace when running on GH: https://dagger.cloud/fprotazio/traces/c5b54d31ca01e1653a974ebb13dda5ae

This is the trace when running locally: https://dagger.cloud/fprotazio/traces/1ef1ab219cee8be2640c821345c4a7eb#a2d3676ca1380df1

I attached the errors I am getting.

Could someone explain why it is failing?

crystal olive
#

Hey!

This looks suspicious to me

could not find module entrypoint: class Barral from import. Class should be exported to benefit from all features.
missing export in class Barral at /src/.dagger/src/index.ts:5:0 but it's used by the module.
"./node_modules"

I am assuming that maybe you're caching node_modules somehow? If so, we don't recommend doing this because it can lead to issues like this

Instead of caching node_modules, we suggest caching the /root/.npm folder

#

I am confused about the image stuff to be honest, that makes no sense to me :/

I think I have seen this before, its very strange that it reports an exit 1 but then keeps going.

frosty wharf
#

could not find module entrypoint: class Barral from import. Class should be exported to benefit from all features. missing export in class Barral at /src/.dagger/src/index.ts:5:0 but it's used by the module.

I got rid of that error by doing: export class Barral {}

crystal olive
#

Yeah sorry I don't think that is the issue

frosty wharf
#

Oh yeh, I am caching node_modules. Gonna change it, too.

crystal olive
frosty wharf
#

It should be like that, right?

.withMountedCache("/root/.npm", dag.cacheVolume("npm"))

crystal olive
frosty wharf
#

Yeh, all the images were taken with 0.15.0. Then, I realized there was a new version and upgraded again. So, yes, my local engine is running 0.15.1. My SDK is at the same version

crystal olive
frosty wharf
#

okay, gonna try

crystal olive
#

The reason I am asking is that it looks like this command runs, but only when the engine is not already running (which is the case in GHA, but not locally)

[succeed on both]

exec docker ps -a --no-trunc --filter name=^/dagger-engine- --format {{.Names}}

[fail on cold start]

exec docker inspect --type=image registry.dagger.io/engine:v0.15.1
frosty wharf
#

Errors from the GH one. Basically, the same ones.

crystal olive
#

I am so surprised that this does not run the inspect command. Can you tell me more about your local docker setup?

frosty wharf
#

Docker Engine is v27.4.0.
Docker Desktop is 4.37.0.

I enabled containerd image store. I guess that is the only unsual thing from the default instalation.

#

If I recall correctly, other dagger calls worked even after the containerd thing. But I can test with it disabled.

crystal olive
#

Thanks so much for doing all the tests, I am trying to reproduce some stuff on my end too

frosty wharf
#

no, no, thank YOU!

crystal olive
#

I think all of this is a red herring

5   : │ │ │ │ exec docker ps -a --no-trunc --filter name=^/dagger-engine- --format {{.Names}} DONE [0.0s]
6   : │ │ │ │ exec docker inspect --type=image registry.dagger.io/engine:v0.15.1
6   : │ │ │ │ [0.0s] | []
6   : │ │ │ │ [0.0s] | Error response from daemon: No such image: registry.dagger.io/engine:v0.15.1
6   : │ │ │ │ exec docker inspect --type=image registry.dagger.io/engine:v0.15.1 ERROR [0.0s]
6   : │ │ │ │ ! failed to run command: exit status 1

My pipeline gets the same error but it does not cause an exit code 1 and keeps going. (failing for a different reason :D)

https://github.com/levlaz/snippetbox/actions/runs/12306813653/job/34349243054

Its still odd and we should fix that to remove the confusion, but it does not seem to be the core issue here.

GitHub

Contribute to levlaz/snippetbox development by creating an account on GitHub.

#

Can you share your full GHA output with me somehow>?

frosty wharf
#

sure, one minute

frosty wharf
#

It fails in the Call Dagger Function step

#

Error: Unable to process file command 'output' successfully. Error: Invalid format ' "_type": "Container",'

Isnt the issu those two errors at the end of the Call Dagger Function step?

I dont understand why it shows those two errors only on GH.

crystal olive
#

Can you share the block of the GHA config that is being called please?

frosty wharf
#

Not sure I understand

crystal olive
#

something like this

      - name: Run Dagger pipeline
        run: dagger call -m ci ci --dir . --env gha
        env:
           DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
frosty wharf
tame flax
# frosty wharf Hello everybody! I just upgraded from 0.13.7 to 0.15.0. It works just fine loc...

@frosty wharf @crystal olive I think I know what''s happening there. The pipeline itself is not failing, seems like the GHA error comes from trying to parse the output as it seems like GH action doesn't like that format it for some reason:

ref: https://github.com/dagger/dagger-for-github/blob/main/action.yml#L91-L100

GitHub

GitHub Action for Dagger. Contribute to dagger/dagger-for-github development by creating an account on GitHub.

#

silently pinging @ruby onyx

ruby onyx
#

ah, so i think

#

@v7 contains the fix - but @v6 doesn't

#

I think we should probably release a v6.16.0, that has that fix cherry-picked over?

tame flax
ruby onyx
#

i should be good - but we need to create a new branch 🤔

#

off of v6.15.0

#

well or i guess not

#

lemme see how i go

tame flax
frosty wharf
#

The pipeline pass now on GH! Thank you, everyone!

ruby onyx
#

❤️

#

noooo worries 😄