Re: Contibuting to JUnit Plugin
Hi all, I was try to do analysis of testcases which failed most on till the current and build but for that I have to reload the previous builds from xml file if the object got GC'ed as it has only weak references referring it. But reloading of previous builds is quite expensive. I was testing it for 7k testcases and 30 builds and it took 14.8 sec to load xml files for 30 builds. Can some please suggest a work around for this. I was planning to raise a PR after this performance test but now I am stuck. TIA. On Thursday, June 18, 2020 at 12:53:27 AM UTC+5:30, Sanjeet Malhotra wrote: > > Hi all, > I am beginning to contribute on JUnit plugin by making more useful test > result trends for analyzing testcases. I was looking into the code for > making test result trends in JUnit plugin and I got stuck at how to use > JFreeChart for making bar charts, stacked bar charts, gantt chart and line > chart. Basically, I am stuck at how set the plot area properties and how to > use DateAxis objects. An example of usage will be highly helpful. > > Thanks, > > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/79b99738-76f3-48b4-86e6-3484ceecb1f9o%40googlegroups.com.
Contibuting to JUnit Plugin
Hi all, I am beginning to contribute on JUnit plugin by making more useful test result trends for analyzing testcases. I was looking into the code for making test result trends in JUnit plugin and I got stuck at how to use JFreeChart for making bar charts, stacked bar charts, gantt chart and line chart. Basically, I am stuck at how set the plot area properties and how to use DateAxis objects. An example of usage will be highly helpful. Thanks, -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b9541016-32a4-422f-b2a1-cae5a863940do%40googlegroups.com.
Re: [Question]: Where can I find guidelines for contributing on JUnit Plugin?
I have started working upon JUnit plugin and planning on adding new functionalities listed below. Please suggest some advice if any correction is needed or changes are needed. FYI: I am only using the information provided in junitResult.xml and is not making any xml file of my own having more information. - For all the functionalities I have implemented drop down menus along with a submit button on jenkins UI just below the trends. - A trend for depicting number testcases which took longer to run based upon exponential weighted average of their duration for previous builds. In fact I have implemented 3 more metrics also for the same purpose namely- max(if a testcase took maximum time to run in this build), prev(if a testcase took more time to run in this build than previous build) and threshold(if a testcase took more time to run than the specified threshold). - A trend for depicting number of test flappers(flaky tests) in a particular build based upon the idea that if a test passed in the given build and failed in one of the last 10 builds then it will be marked as "flake". - Also, upon hovering over the chart as a tooltip I am working upon displaying some testcase names rather than just count as it can also be visualized from chart itself using range axis/y-axis. - I am also working upon displaying trends for each project by selecting the outermost package name in which whole of the project lies, as project name may not be necessarily a substring of package name so this functionality can't directly use project name but project name can derived approximately from package name for that project(if packages are named appropriately). - On clicking the submit button on UI we will get the desired trend displayed at the original location where the trend is being displayed as of now. I had a doubt that the getFailCount(), getPassedCount() which are being called from buildDataset() are synchronized methods, so what all threads will be accessing these methods simultaneously. I was not able to determine this. And if we just synchronize buildDataset method(though it won't be directly accessed by object being private method) will the purpose be not fulfilled? TIA On Tuesday, June 2, 2020 at 12:36:54 AM UTC+5:30, Sanjeet Malhotra wrote: > > Hi, > I wanted to contribute to JUnit Plugin by making more trends in addition > to one being currently displayed right now. I was planning to make trends > like one for test flappers, number of tests taking longer time based on > various metrics, etc. I just wanted to know where I can find guidelines for > contributing to JUnit Plugin and any advice is most welcomed. TIA. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e69f0a23-31cf-4c5c-9522-65fa82a1a56eo%40googlegroups.com.
Re: [Question]: Where can I find guidelines for contributing on JUnit Plugin?
Thanks I will look into and I was thinking of a way to have more customizable charts. Thanks for suggesting this. On Tuesday, June 2, 2020 at 11:56:56 PM UTC+5:30, Ullrich Hafner wrote: > > And before writing a lot of new trends using the old PNG server side > rendering you should think about using the new approach using ECharts. > (See https://github.com/jenkinsci/echarts-api-plugin for details) > > > Am 02.06.2020 um 19:08 schrieb Sanjeet Malhotra >: > > Thanks a lot. > > On Tuesday, June 2, 2020 at 9:46:28 PM UTC+5:30, Jesse Glick wrote: >> >> On Tue, Jun 2, 2020 at 11:22 AM Sanjeet Malhotra >> wrote: >> > I am bit stuck at understanding jelly files. Is there any official >> documentation for it? >> >> https://www.jenkins.io/doc/developer >> >> generally. The site seems to be down at the moment (!), but I can find >> >> >> https://github.com/jenkins-infra/jenkins.io/blob/master/content/doc/developer/architecture/web.adoc#views >> >> >> linking to >> >> >> https://github.com/jenkins-infra/jenkins.io/tree/master/content/doc/developer/handling-requests >> >> >> which is not too helpful. >> >> >> https://github.com/jenkins-infra/jenkins.io/blob/master/content/doc/developer/forms/jelly-form-controls.adoc >> >> >> is specific to configuration forms, not applicable in this context. >> The most relevant content is from the old wiki and would need to be >> cleaned up, vetted, and moved to the official site: >> >> >> https://wiki.jenkins.io/display/JENKINS/Basic+guide+to+Jelly+usage+in+Jenkins >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkin...@googlegroups.com . > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/f2ab07e8-8061-4af2-9304-a3916f3573ec%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/f2ab07e8-8061-4af2-9304-a3916f3573ec%40googlegroups.com?utm_medium=email_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3f28d507-4f82-427f-ba91-9d5d893870a4%40googlegroups.com.
Re: [Question]: Where can I find guidelines for contributing on JUnit Plugin?
Thanks a lot. On Tuesday, June 2, 2020 at 9:46:28 PM UTC+5:30, Jesse Glick wrote: > > On Tue, Jun 2, 2020 at 11:22 AM Sanjeet Malhotra > > wrote: > > I am bit stuck at understanding jelly files. Is there any official > documentation for it? > > https://www.jenkins.io/doc/developer > > generally. The site seems to be down at the moment (!), but I can find > > > https://github.com/jenkins-infra/jenkins.io/blob/master/content/doc/developer/architecture/web.adoc#views > > > linking to > > > https://github.com/jenkins-infra/jenkins.io/tree/master/content/doc/developer/handling-requests > > > which is not too helpful. > > > https://github.com/jenkins-infra/jenkins.io/blob/master/content/doc/developer/forms/jelly-form-controls.adoc > > > is specific to configuration forms, not applicable in this context. > The most relevant content is from the old wiki and would need to be > cleaned up, vetted, and moved to the official site: > > > https://wiki.jenkins.io/display/JENKINS/Basic+guide+to+Jelly+usage+in+Jenkins > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f2ab07e8-8061-4af2-9304-a3916f3573ec%40googlegroups.com.
Re: [Question]: Where can I find guidelines for contributing on JUnit Plugin?
I am bit stuck at understanding jelly files. Is there any official documentation for it? I looked at Apache jelly website but there also, majority of tags were not explained as how to use them. I new to jelly scripts and so having difficulty understanding them. TIA for any advice. On Tuesday, June 2, 2020 at 12:36:54 AM UTC+5:30, Sanjeet Malhotra wrote: > > Hi, > I wanted to contribute to JUnit Plugin by making more trends in addition > to one being currently displayed right now. I was planning to make trends > like one for test flappers, number of tests taking longer time based on > various metrics, etc. I just wanted to know where I can find guidelines for > contributing to JUnit Plugin and any advice is most welcomed. TIA. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/25df337a-db78-4a8d-afb6-cad3ee1bec2a%40googlegroups.com.
Re: [Question]: Where can I find guidelines for contributing on JUnit Plugin?
Thanks a lot. Will keep that in mind and will avoid reloading of build records. On Tuesday, June 2, 2020 at 12:36:54 AM UTC+5:30, Sanjeet Malhotra wrote: > > Hi, > I wanted to contribute to JUnit Plugin by making more trends in addition > to one being currently displayed right now. I was planning to make trends > like one for test flappers, number of tests taking longer time based on > various metrics, etc. I just wanted to know where I can find guidelines for > contributing to JUnit Plugin and any advice is most welcomed. TIA. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3db192ac-14ab-4bc1-a2c2-70f340b936f4%40googlegroups.com.
Re: [Question]: Where can I find guidelines for contributing on JUnit Plugin?
Is there any particular scheme being followed for caching or is there any technique being used for better memory management. Like I was going through the code and saw the usage of weak references. As far as I know, they are used for better memory management by allowing garbage collector to collect the object but if not collected then reusing the object. It seems to me that for making various trends I will need to used HashMap or TreeMap for better time complexity but I was thinking whether this will create an issue with memory complexity. TIA. On Tuesday, June 2, 2020 at 12:36:54 AM UTC+5:30, Sanjeet Malhotra wrote: > > Hi, > I wanted to contribute to JUnit Plugin by making more trends in addition > to one being currently displayed right now. I was planning to make trends > like one for test flappers, number of tests taking longer time based on > various metrics, etc. I just wanted to know where I can find guidelines for > contributing to JUnit Plugin and any advice is most welcomed. TIA. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/76493712-8612-497e-8f75-4aaaccc76478%40googlegroups.com.
Re: [Question]: Where can I find guidelines for contributing on JUnit Plugin?
Thanks a lot for guiding. I will surely discuss my ideas after looking at the resources you mentioned. On Tuesday, June 2, 2020 at 1:49:04 AM UTC+5:30, Mark Waite wrote: > > Great to have you interested in helping! > > https://plugins.jenkins.io/junit/ shows that the plugin is at > https://github.com/jenkinsci/junit-plugin . > > I didn't see any specific contributing guidelines in the plugin. I assume > it is similar to most plugins. Discuss your idea here, refine it, provide > an implementation as a pull request, discuss the implementation in the pull > request. > > Javadoc for the plugin is located at > https://javadoc.jenkins-ci.org/plugin/junit/ . You may want to consider > creating the added functionality as a separate plugin so that users can > choose to install the new capabilities with an independent plugin, rather > than upgrading the junit plugin. > > Mark Waite > > On Monday, June 1, 2020 at 1:06:54 PM UTC-6, Sanjeet Malhotra wrote: >> >> Hi, >> I wanted to contribute to JUnit Plugin by making more trends in addition >> to one being currently displayed right now. I was planning to make trends >> like one for test flappers, number of tests taking longer time based on >> various metrics, etc. I just wanted to know where I can find guidelines for >> contributing to JUnit Plugin and any advice is most welcomed. TIA. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/cc7824ba-5700-4f17-81dd-2b38b4e878bd%40googlegroups.com.
[Question]: Where can I find guidelines for contributing on JUnit Plugin?
Hi, I wanted to contribute to JUnit Plugin by making more trends in addition to one being currently displayed right now. I was planning to make trends like one for test flappers, number of tests taking longer time based on various metrics, etc. I just wanted to know where I can find guidelines for contributing to JUnit Plugin and any advice is most welcomed. TIA. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1b28519d-82af-49a8-a60d-d63e5385b4ef%40googlegroups.com.