Code Monkey home page Code Monkey logo

Comments (9)

matiasalbarello avatar matiasalbarello commented on September 13, 2024 1

@progapandist can we make a release with the last changes that solve this issue so we can close it?

from wait-on-check-action.

progapandist avatar progapandist commented on September 13, 2024

I'll take a look into this, thanks for reporting!

from wait-on-check-action.

progapandist avatar progapandist commented on September 13, 2024

If you want to give it a try (I think having an allow_skipped flag and enabling it by default is the best UX here) and make a PR — we now have a nice test coverage by @matiasalbarello, and the "test" actions in this repo. Just LMK, if not — I'll take care of it myself when my hands a less full.

from wait-on-check-action.

AraHaan avatar AraHaan commented on September 13, 2024

@progapandist what about the case where I got to like do the following:

  • pull request build succeeds.
  • pull request executes another workflow (automerge)
  • pull request also executes another job in the build workflow (which should wait till the automerge workflow in the pull request succeeds and merge the pull request before doing anything in that job (this job checks for updates with git submodule update --remote then uses the create-pull-request action to create another pull request).

Currently without this it is possible to then notice it open double pull requests for the same exact changes it generates.

from wait-on-check-action.

matiasalbarello avatar matiasalbarello commented on September 13, 2024

Sorry, closed by mistake.

from wait-on-check-action.

progapandist avatar progapandist commented on September 13, 2024

Sure! Can you please draft a quick CHANGELOG to describe everything we added since the last release and then I will bump it? Then we can keep adding to that CHANGELOG when/if we add more features. Let's call this one 0.3

from wait-on-check-action.

emmanuelvisage avatar emmanuelvisage commented on September 13, 2024

Hi, thanks for this github action, it's very useful.
What exactly qualifies as a 'skipped check' ? Because I have a check in a migration workflow that sometimes isn't triggered in the run (because there is no new migration) and the wait on this check in other workflows breaks with "The requested check was never run against this ref, exiting..." although I am on the master branch and it says it's checking on the "success,skipped" checks.

Is this possible to continue when the check was not even found in the run ?

from wait-on-check-action.

progapandist avatar progapandist commented on September 13, 2024

@Billy- — you are the feature author, anything to add?

from wait-on-check-action.

matiasalbarello avatar matiasalbarello commented on September 13, 2024

Hi, thanks for this github action, it's very useful.
What exactly qualifies as a 'skipped check' ? Because I have a check in a migration workflow that sometimes isn't triggered in the run (because there is no new migration) and the wait on this check in other workflows breaks with "The requested check was never run against this ref, exiting..." although I am on the master branch and it says it's checking on the "success,skipped" checks.

Is this possible to continue when the check was not even found in the run?

Hi @emmanuelvisage. Here you can find an example of a skipped job: https://github.com/lewagon/wait-on-check-action/blob/master/.github/workflows/wait-for-allowed-conclusions.yml
So, a skipped job actually has run (at least it belongs to a workflow triggered by some event) but finished with a status of skipped.
If the workflow is not triggered (as you mentioned, for example, because a certain event didn't occur), and this action was configured to wait for it, it will fail as expected. There's no way to know if the action that didn't run was supposed to run or not.
If you omit the check-name, it will wait for all actions to run. If the workflow doesn't run, it would not wait for that one.

Hope it helps and please don't hesitate to write me back if something is not yet clear.

from wait-on-check-action.

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.