Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22047

Add option to reduce noise in logs

    XMLWordPrintable

Details

    Description

      When there are a lot of tap files in a working area, the lines printed when each one is parsed get to overwhelm the log, making it more difficult to see issues. Please add an option to only print when starting to scan, when finished, and any errors encountered between. Perhaps a "verbose" option that defaults to on would be the easiest way to explain this to users.

      Attachments

        Activity

          benmartin Ben Martin created issue -
          kinow Bruno P. Kinoshita made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]

          Code changed in jenkins
          User: Bruno P. Kinoshita
          Path:
          src/main/java/org/tap4j/plugin/TapParser.java
          src/main/java/org/tap4j/plugin/TapPublisher.java
          src/main/resources/org/tap4j/plugin/TapPublisher/config.jelly
          src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java
          src/test/java/org/tap4j/plugin/issue16964/TestIssue16964.java
          http://jenkins-ci.org/commit/tap-plugin/ffcbf6f33fbd6bd128ae8eca46018248d42c6183
          Log:
          [FIXED JENKINS-22047] Add option to reduce noise in logs

          Compare: https://github.com/jenkinsci/tap-plugin/compare/c890b89c2b8f...ffcbf6f33fbd

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/java/org/tap4j/plugin/TapParser.java src/main/java/org/tap4j/plugin/TapPublisher.java src/main/resources/org/tap4j/plugin/TapPublisher/config.jelly src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java src/test/java/org/tap4j/plugin/issue16964/TestIssue16964.java http://jenkins-ci.org/commit/tap-plugin/ffcbf6f33fbd6bd128ae8eca46018248d42c6183 Log: [FIXED JENKINS-22047] Add option to reduce noise in logs Compare: https://github.com/jenkinsci/tap-plugin/compare/c890b89c2b8f...ffcbf6f33fbd
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

          Hi Ben, I've added an option "Verbose" that lets you limit the number of messages printed for each tap stream file.

          My output with 100 files:

          Started by user anonymous
          Building in workspace /home/kinow/java/jenkins/tap-plugin/work/jobs/test-22047/workspace
          [workspace] $ /bin/bash /tmp/hudson4079931317366559985.sh
          TAP Reports Processing: START
          Looking for TAP results report in workspace using pattern: *.tap
          Saving reports...
          There are failed test cases. Marking build as UNSTABLE
          TAP Reports Processing: FINISH
          Build step 'Publish TAP Results' changed build result to UNSTABLE
          Finished: UNSTABLE

          Will release a version to the experimental plug-in update center [1] tonight so you can give it a shot after tomorrow morning.

          Cheers
          Bruno

          [1] http://jenkins-ci.org/content/experimental-plugins-update-center

          kinow Bruno P. Kinoshita added a comment - Hi Ben, I've added an option "Verbose" that lets you limit the number of messages printed for each tap stream file. My output with 100 files: Started by user anonymous Building in workspace /home/kinow/java/jenkins/tap-plugin/work/jobs/test-22047/workspace [workspace] $ /bin/bash /tmp/hudson4079931317366559985.sh TAP Reports Processing: START Looking for TAP results report in workspace using pattern: *.tap Saving reports... There are failed test cases. Marking build as UNSTABLE TAP Reports Processing: FINISH Build step 'Publish TAP Results' changed build result to UNSTABLE Finished: UNSTABLE Will release a version to the experimental plug-in update center [1] tonight so you can give it a shot after tomorrow morning. Cheers Bruno [1] http://jenkins-ci.org/content/experimental-plugins-update-center

          Fixed in 1.18

          kinow Bruno P. Kinoshita added a comment - Fixed in 1.18
          kinow Bruno P. Kinoshita made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          Hmm, I just upgraded to 1.18, but I do not see the "Verbose" checkbox, and still a ton of output like

          16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0000-basic.sh'
          16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0000-basic.sh].
          16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0001-init.sh'
          16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0001-init.sh].
          16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0002-gitfile.sh'
          16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0002-gitfile.sh].
          16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0003-attributes.sh'
          16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0003-attributes.sh].
          16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0004-unwritable.sh'
          16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0004-unwritable.sh].
          16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0005-signals.sh'
          16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0005-signals.sh].
          16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0006-date.sh'
          16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0006-date.sh].
          

          in the console output.

          sschuberth Sebastian Schuberth added a comment - Hmm, I just upgraded to 1.18, but I do not see the "Verbose" checkbox, and still a ton of output like 16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0000-basic.sh' 16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0000-basic.sh]. 16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0001-init.sh' 16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0001-init.sh]. 16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0002-gitfile.sh' 16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0002-gitfile.sh]. 16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0003-attributes.sh' 16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0003-attributes.sh]. 16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0004-unwritable.sh' 16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0004-unwritable.sh]. 16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0005-signals.sh' 16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0005-signals.sh]. 16:36:37 Processing 'C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0006-date.sh' 16:36:37 Parsing TAP test result [C:\Jenkins\mingwGitDevEnv-test-git\builds\2014-03-19_15-28-05\tap-master-files\test-results\t0006-date.sh]. in the console output.

          Looks to me as if the fix for JENKINS-22047 (ffcbf6f) is on a branch called "JENKINS-20924" (note the different numbers), but not on master from which release 1.18 was made.

          sschuberth Sebastian Schuberth added a comment - Looks to me as if the fix for JENKINS-22047 (ffcbf6f) is on a branch called " JENKINS-20924 " (note the different numbers), but not on master from which release 1.18 was made.

          Code changed in jenkins
          User: Bruno P. Kinoshita
          Path:
          src/main/java/org/tap4j/plugin/TapParser.java
          src/main/java/org/tap4j/plugin/TapPublisher.java
          src/main/resources/org/tap4j/plugin/TapPublisher/config.jelly
          src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java
          src/test/java/org/tap4j/plugin/issue16964/TestIssue16964.java
          http://jenkins-ci.org/commit/tap-plugin/82167d204f8cb02150c07c42724b75aee7cfbb15
          Log:
          [FIXED JENKINS-22047] Add option to reduce noise in logs

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/java/org/tap4j/plugin/TapParser.java src/main/java/org/tap4j/plugin/TapPublisher.java src/main/resources/org/tap4j/plugin/TapPublisher/config.jelly src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java src/test/java/org/tap4j/plugin/issue16964/TestIssue16964.java http://jenkins-ci.org/commit/tap-plugin/82167d204f8cb02150c07c42724b75aee7cfbb15 Log: [FIXED JENKINS-22047] Add option to reduce noise in logs

          Code changed in jenkins
          User: Bruno P. Kinoshita
          Path:
          src/main/java/org/tap4j/plugin/TapParser.java
          src/main/java/org/tap4j/plugin/TapPublisher.java
          src/main/resources/org/tap4j/plugin/TapPublisher/config.jelly
          src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java
          src/test/java/org/tap4j/plugin/issue16964/TestIssue16964.java
          http://jenkins-ci.org/commit/tap-plugin/239c532ed290149d3b0fd3d3f72e67e761400683
          Log:
          Merge pull request #7 from sschuberth/master

          [FIXED JENKINS-22047] Add option to reduce noise in logs

          Compare: https://github.com/jenkinsci/tap-plugin/compare/65b57b2cbbea...239c532ed290

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/java/org/tap4j/plugin/TapParser.java src/main/java/org/tap4j/plugin/TapPublisher.java src/main/resources/org/tap4j/plugin/TapPublisher/config.jelly src/test/java/org/tap4j/plugin/issue16647/TestIssue16647.java src/test/java/org/tap4j/plugin/issue16964/TestIssue16964.java http://jenkins-ci.org/commit/tap-plugin/239c532ed290149d3b0fd3d3f72e67e761400683 Log: Merge pull request #7 from sschuberth/master [FIXED JENKINS-22047] Add option to reduce noise in logs Compare: https://github.com/jenkinsci/tap-plugin/compare/65b57b2cbbea...239c532ed290
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 154126 ] JNJira + In-Review [ 207473 ]

          People

            kinow Bruno P. Kinoshita
            benmartin Ben Martin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: