Skip to content
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

🐞 Engine stop is not called when the pipeline fails #110

Open
sagikazarmark opened this issue Jan 22, 2024 · 2 comments
Open

🐞 Engine stop is not called when the pipeline fails #110

sagikazarmark opened this issue Jan 22, 2024 · 2 comments

Comments

@sagikazarmark
Copy link

What is the issue?

When the Dagger command fails for any reason, engine stop is not called.

The GitHub snippet in the documentation has an added condition to make sure engine stop runs even if the command before it fails:

      - name: Stop Engine
        run: docker stop -t 300 $(docker ps --filter name="dagger-engine-*" -q)
        if: always()

Dagger version

dagger v0.9.7 (registry.dagger.io/engine) darwin/arm64

Steps to reproduce

No response

Log output

No response

@kpenfound
Copy link
Contributor

Yeah, the proper fix is to update the action to a "real" action instead of a composite action. Composite actions aren't allowed to have post steps for some reason.

A post step for the engine stop handles the cases where:

  • A step fails
  • Multiple uses of this action are called in a pipeline and we only want to stop the engine once at the very end

@jpadams
Copy link
Contributor

jpadams commented Mar 12, 2024

  • A step fails
  • Multiple uses of this action are called in a pipeline and we only want to stop the engine once at the very end

Looks like a lot of GH Actions users want pre/post steps.
actions/runner#1478

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants