47ng / actions-clever-cloud

GitHub Action to deploy to Clever Cloud
https://clever-cloud.com
MIT License
38 stars 9 forks source link

Deployment action hangs forever #206

Open sneko opened 8 months ago

sneko commented 8 months ago

Hi,

For whatever reason, randomly the step of deploying can hangs forever whereas the deployment is effective on Clever Cloud. Does anyone has encountered this issue?

I'm using:

      - name: Deploy to Clever Cloud
        uses: 47ng/actions-clever-cloud@v1.3.1
        with:
          appID: ${{ env.CLEVER_APP_ID }}
          force: true
          quiet: true # disable copying into GitHub Actions all logs from Clever Cloud
        env:
          CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
          CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}

I have to cancel my run after X hours to free my pipeline. Note in a normal situation it takes around 5 minutes to deploy.

image

A solution to mitigate freezing the pipeline would be to add something like timeout-minutes: 15 to the step so it warns us to check the deployment has worked or not.

Thank you,

franky47 commented 8 months ago

There is a timeout option, although I've been seeing successful deployments failing to mark the step as complete and keeping running until that timeout occurs, I'll have to investigate.

JorickPepin commented 7 months ago

~Any news on this issue? The timeout option doesn't seem to be taken into account either. Thanks~

I realised that the CI worked on one of my projects but not on the other, even though they are similar. The only difference was that I was using actions/checkout@v4 on the one that wasn't working and actions/checkout@v3 on the one that was. I switched back to v3 on the first one and it's working again.

franky47 commented 7 months ago

I have published v2.0.0 with the latest clever-tools, which could help with this issue. Could you give it a try please?