Skip to content
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

[JENKINS-27394] Collapsible sections in log #21

Closed

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 13, 2016

JENKINS-27394

Downstream of #20.

I initially thought to add visual bounding boxes, as the Collapsing Console Sections plugin does. But this would not work with parallel steps at all, and it seemed clumsy to show bounding boxes unless you were inside a branch.

A more radical alternative would be to never show multiple branches interleaved at all, and have a special control at the start of a parallel branch allowing you to select which branch to display. This would usually be fine, but there are also some cases where you actually want to know what happened in which order; Pipeline captures this information and it would be a shame to throw it away. The likely replacement would be to bake in the equivalent of the timestamper wrapper so you could manually compare timestamps between branches in cases where this was important for debugging something.

Note a little log cleanup in jenkinsci/workflow-support-plugin#10. The longer-term plan is to interleave all output into a single log file internally, with flow node (and perhaps timestamp) metadata captured at point of origin, and various visualizations like the annotated console log able to display the data however they prefer.

@reviewbybees

@ghost
Copy link

ghost commented Sep 13, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@jglick
Copy link
Member Author

jglick commented Sep 14, 2016

Particularly useful in jenkinsci/parallel-test-executor-plugin#20.

private final String id;

private ShowHideNote(String id, int length) {
super("#", length);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well use "#" + id here and add an a tag in logNodeMessage, allowing us to create direct links to the section—useful for getLogURL in jenkinsci/workflow-basic-steps-plugin#2, for example.

@jglick
Copy link
Member Author

jglick commented Sep 22, 2016

Putting this on hold until JENKINS-38381 is done.

@jglick jglick mentioned this pull request Sep 26, 2016
11 tasks
/**
* Encodes the block-scoped nesting of a step.
*/
public class NestingNote extends ConsoleNote<Run<?,?>> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐛 needs to be Object to avoid breaking per-step LogAction display

jglick added a commit to jglick/workflow-job-plugin that referenced this pull request Oct 10, 2016
@jglick
Copy link
Member Author

jglick commented Oct 10, 2016

Closing in favor of #27.

@jglick jglick closed this Oct 10, 2016
jglick added a commit to jglick/workflow-job-plugin that referenced this pull request Oct 12, 2016
@jglick jglick deleted the collapsing-sections-JENKINS-27394 branch October 4, 2018 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants