Coder Social home page Coder Social logo

Comments (3)

timja avatar timja commented on June 11, 2024

Interesting, the workaround isn't hard though, push a new commit / re-run the build once via Jenkins?

Contribution welcomed though if someone wants to PR it.

Will close in a month or so if no fix as the stale jobs will naturally go away

from github-checks-plugin.

tslmy avatar tslmy commented on June 11, 2024

Facing the same issue.

I understand the effort constraints, but please consider this a serious problem, because this leads people to mistakenly believe that they have actually re-requested a Check Run.

How is it possible that people may be tricked to believe so?

Because every time "Re-run" is clicked, GitHub will show a blue banner that says,

You have successfully requested [check name here] be rerun.

and we can't expect all contributors to all repos using GitHub Checks Plugin to understand how Jenkins work with GitHub and realize that they have to distrust GitHub and check Jenkins for themselves.

Hence, regarding this statement,

the workaround isn't hard though, push a new commit / re-run the build once via Jenkins?

I would say this:

It's not about whether the workaround is hard or easy; it's about whether making people realize that they have to distrust a platform that they have trusted for a long while (in our case, GitHub) is hard or easy. In a way, this bug is getting serious because it undermines trust. It's about psychology; It's about thinking in non-Jenkins-savvy developers' shoes.

Thanks for your consideration.

from github-checks-plugin.

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on June 11, 2024

When github-checks-plugin doesn't find the build that it should restart, it logs a warning:

LOGGER.log(Level.WARNING, String.format("No build found for rerun request from repository: %s and id: %s",
repository.getFullName(), checkRun.getCheckRun().getExternalId()).replaceAll("[\r\n]", ""));

Is there a response that Jenkins could return to GitHub in this situation, to prevent GitHub from claiming "You have successfully requested [check name here] be rerun"?
If that can be done, it seems a worthwhile change regardless of whether the problem was caused by a recent upgrade of github-checks-plugin.

GitHub check_run event documentation does not say anything about possible responses. Best practices for using webhooks advises that "Your server should respond with a 2XX response within 10 seconds of receiving a webhook delivery", which I suppose means that GitHub checks the HTTP status code at least.

from github-checks-plugin.

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.