superfly / flyctl-actions

:octocat: GitHub Action that wraps the flyctl
Apache License 2.0
260 stars 33 forks source link

GitHub Actions: periodic `flyctl: not found` #57

Open seeARMS opened 2 months ago

seeARMS commented 2 months ago

We have a GitHub action workflow that deploys our Fly instance upon git push.

Periodically and seemingly randomly, the workflow quickly fails with the following error:

Run superfly/flyctl-actions@1.1
  with:
    args: deploy --remote-only --strategy immediate --wait-timeout 360 --config ./packages/api/fly.staging.toml --dockerfile ./packages/api/Dockerfile --ignorefile .dockerignore --app paragraph-feature-par-[2](https://github.com/paragraph-xyz/monorepo/actions/runs/8740055948/job/23982824117#step:5:2)645 -e COMMIT=${GITHUB_SHA} --vm-size shared-cpu-2x
  env:
    FLY_API_TOKEN: ***

sh: flyctl: not found

Flyctl should never not be found, so I don't know why this is occurring.

matthewlehner commented 2 months ago

@seeARMS it looks like you're pinned to v1.1 of the action which was released almost 4 years ago. We've made some improvements since then!

Could you try updating to the latest version, either v1, which will automatically pick up minor versions, or v1.5 if you want to lock to a specific version. I think this will fix things up for you.

specifically this line in your workflow:

      - uses: superfly/flyctl-actions/setup-flyctl@v1
matthewlehner commented 2 months ago

I'm going to close this for now, if you're still running into this in the future, feel free to bump it!

seeARMS commented 2 months ago

I upgraded to v1 but still encountering this:

image
seeARMS commented 3 weeks ago

Still continuing to happen:

image

A restart of the workflow fixes it, so this seems to happen intermittently.

seeARMS commented 2 days ago

Happening about once a day now.

matthewlehner commented 1 day ago

@seeARMS I haven't been able to reproduce this, do you have any other context that might help me see what's happening?