Coder Social home page Coder Social logo

Comments (5)

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on September 21, 2024 1

The information about failing steps is formatted in FlowExecutionAnalyzer.java, so this issue belongs to jenkinsci/checks-api-plugin.

from checks-api-plugin.

justinmchase avatar justinmchase commented on September 21, 2024

Also, the unstable step has the same issue:

Screen Shot 2021-09-04 at 10 25 49 AM

Ideally it would show the actual message when in the unstable state as well.

from checks-api-plugin.

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on September 21, 2024

Thank you, @timja.

UnstableStep adds a WarningAction.

ErrorStep just throws an AbortException. I guess that is then translated to ErrorAction somewhere in workflow-cps-plugin.

from checks-api-plugin.

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on September 21, 2024

Should the formatting just special-case flowNode.getDisplayFunctionName() equal to "error" and "unstable", or is there a better way to decide whether the name and arguments of the step are uninteresting?

from checks-api-plugin.

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on September 21, 2024

isStageNode already hardcodes the "stage" name, so hardcoding "error" and "unstable" as well would be consistent with that.

I imagine changes:

  • In getPotentialTitle, if flowNode is an "error" step, then get whereBuildFailed from the first line of ErrorAction.getDisplayName() instead of formatting.
  • In processErrorOrWarningRow, if flowNode is an "error" or "unstable" step, and there is only one argument, and its value matches errorAction.getDisplayName() or warningAction.getMessage(), then omit the step name and arguments from the output. Thus, if the "unstable" step somehow throws an actual error, then the step name and arguments would still be included.

from checks-api-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.