-
Notifications
You must be signed in to change notification settings - Fork 74
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
Improve doc build log notification #185
Comments
Adam B has offered to set this up for us if we raise an issue in their queue. We should collect together all the specific strings we want to report on. Here are some we can think of .....
On this job: https://ci.eclipse.org/openj9/view/Website-Doc/job/Build-Doc-Push_to_ghpages/ To be reported to slack. Standard slack channel used is Eclipse OpenJ9 "jenkins", but would be good if it could also go to one we use more regularly. |
Copied into the description an example file containing strings to look for. |
Guess we would add this last one:
|
I removed stuff that obviously wasn't applicable but left everything else just in case. The git one might still be useful, the SSH one might or might not be depending on what happens with the MkDocs output (I guess it just goes back into github rather than being SSHed about the place though), and not sure whether the build does anything with files (such as using sed) that could cause an error. We definitely want to see all the ERRORs and WARNINGs that MkDocs produces and it's useful to see the start of the actual MkDocs processing because you can skip all the Jenkins output before it. |
There are some Warnings that get produced for every build, which would be a pain to see. For example:
There is another too about |
Yuck! Fair enough. |
I have not seen or used the log parser plugin before. It does look interesting but I worry that it is not very actively maintained and released so it may not even work for pipeline jobs. We have tested the Build failure analyzer plugin internally. cc @pshipton for awareness and @JasonFengJ9 since he has used it internally for dev builds. Edit: There are likely other plugin options too but another option would be to DIY. I don't think it's that much code to get/parse the console at the end of a build, compare against a list, and take action accordingly. |
@AdamBrousseau - thanks for the analysis. It sounds like the Build failure analyzer plugin won't be suitable as our builds pass green but can have warnings. If you don't want to use the log parser plugin, which I can understand, a DIY approach could work just as well. I guess that is just a post-processing step in the Jenkins job config. |
I'm not against trying the log parser plugin in a test env, like hyc-runtimes or better yet another internal instance (not openj9). |
Need a better way to pull out errors and warnings from the MkDocs build, so we don't have to read the Jenkins console log to spot issues.
Possible solution: the Jenkins Log Parser plugin can produce a page that pulls out the errors and warnings in an easy-to-read way. It requires a file that defines the strings to look for in the Jenkins console log, and whether they are errors or warnings. This file can be created via the "Create file" step at the start of the job, and referenced later in the job, in a post-build step
It's possible to add notification (email or Slack) too.
Here's a text file used for the Log Parser plugin in a different MkDocs build. We could re-use this:
The text was updated successfully, but these errors were encountered: