-
Notifications
You must be signed in to change notification settings - Fork 343
Convert trend to ECharts #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@uhafner Does the echarts library brings in bootstrap? I'm a bit concerned to put a full bootstrap page on the main build page. Other than that, it looks quite good. |
That's great then! |
No, I does not use bootstrap. (It requires jQuery3 plugin up to now). |
import java.util.Iterator; | ||
import java.util.NoSuchElementException; | ||
|
||
public class TestResultActionIterable implements Iterable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class TestResultActionIterable implements Iterable { | |
public class TestResultActionIterable implements Iterable<BuildResult<AbstractTestResultAction>> { |
?
@@ -289,7 +292,10 @@ public TestResult findCorrespondingResult(String id) { | |||
|
|||
/** | |||
* Generates a PNG image for the test result trend. | |||
* | |||
* Deprecated: Replaced by echarts in TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Deprecated: Replaced by echarts in TODO | |
* @deprecated Replaced by echarts |
and similarly elsewhere.
If I understand the “after” chart it seems like there may be some color distinction between red and purple (~ red + blue)? If so, this is really hard for me to grasp, and I cannot imagine how you would overlay “skipped” on that unless you switched from grey to yellow, at which point you are in a three-dimensional color space… Suggest returning to the original format, which I at least find easier to interpret. |
If you want to go fancy you can add a filter by legend. Click to toggle on graph. |
This is automatically provided by echarts legend. |
Didn't notice that before, that's nice! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this visually. How will this play together with other plugins visualizing test results, like matrix-project?
does it call the junit APIs? If so deprecated those APIs to be replaced with the echarts ones |
To the best of my understanding, some at least are referring to generated image: https://github.com/search?q=org%3Ajenkinsci+trendMap&type=Code Keeping the endpoint in place keeps them from breaking, but the maintainers might not realize this is actually deprecated as they are not calling the Java API. My question was really to see if there is an effort to update all the plugins to avoid breakage and unify the appearance. |
To a degree yes, but focusing on the most used ones right now... If I find time I'll try update one other as an example |
Matrix project (and Maven project) do not use a separate UI they just use the charts from the JUnit plugin automatically. |
Cool, thanks! |
All seems fine unless someone can point me to something in particular as I've never used those plugins |
@jglick @oleg-nenashev @olivergondza do you need anything else from me? Thanks 🙏 |
I am fine with the changes the way they are. Unfortunately, there might be no active maintainer to integrate this so you might very well go ahead and integrate this yourself as soon as there is a consensus. |
Core team doesn't appear to have access, but happy to request permissions, if there's no active maintainer here, (not looking to do much other than fix any fallout if there's any and small patches possibly). |
Hi 👋
Before
After
There's one behaviour change in that it shows passing tests instead of total tests,
thoughts?
This was based off of https://github.com/jenkinsci/warnings-ng-plugin/blob/8ff937365caf3559c19a1e592aa218359a278347/plugin/src/main/java/io/jenkins/plugins/analysis/core/model/JobAction.java#L181
cc @oleg-nenashev @jglick @uhafner @fqueiruga