Giter Club home page Giter Club logo

Comments (7)

hudovisk avatar hudovisk commented on May 29, 2024 1

Sharing the problem we are facing here:

Error: unexpected error encountered: HttpError: Validation Failed: {"resource":"DeploymentStatus","code":"custom","message":"This deployment has reached the maximum number of statuses."} - see logs for more information

I believe this is due to how override works, it is fetching for all deployments of a given environment and updating its status:

: found 100 existing deployments for env
: setting deployment (***************) state to "inactive"
..... (100 more lines)

I think the solution @NickGraham101 mentioned would work for our use case also.

from deployments.

vhatsura avatar vhatsura commented on May 29, 2024 1

fixed with #104

from deployments.

nilampatel-engineer avatar nilampatel-engineer commented on May 29, 2024

what is the solution, could you please share? as I m also facing similar issue

from deployments.

CumpsD avatar CumpsD commented on May 29, 2024

We are hitting this This deployment has reached the maximum number of statuses. error too. Had to disable this action for now.

from deployments.

groundfloorwebb avatar groundfloorwebb commented on May 29, 2024

Thanks for the suggestion @NickGraham101 , I was hitting the same issues and disabling override on my finish actions appears to have done the trick. You saved my a whole pile of confusion, appreciate it.

@nilampatel-engineer here's what my solution looked like in the end, i hope this clarifies things for you.

      - name: update deployment status
        uses: bobheadxi/deployments@main
        if: always()
        with:
          step: finish
          token: ${{ secrets.GITHUB_TOKEN }}
          status: ${{ job.status }}
          deployment_id: ${{ steps.deployment.outputs.deployment_id }}
          env: ${{ steps.classify.outputs.environment_key }}
          env_url: "https://${{ steps.GET_TF_OUTPUT.outputs.DOMAIN }}"
          desc: "Pull request env update"
          override: false

Just to be clear the fix was adding override: false.

from deployments.

kroehre avatar kroehre commented on May 29, 2024

I'm also seeing this issue. override: false stops the errors but all previous deployments remain active. It seems as though the action tries to mark all past deployments inactive, including the many that are already inactive.

from deployments.

bobheadxi avatar bobheadxi commented on May 29, 2024

Hey everyone, unfortunately, I haven't been able to take a look at this and probably won't have the bandwidth to actively maintain this project for the time being. If someone finds a good way forward I would appreciate a PR!

If anyone is open to helping me maintain this project I'd be super grateful and happy to chat, please reach out to me via twitter, email, or #103! 🙏

from deployments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.