-
Notifications
You must be signed in to change notification settings - Fork 69
Stream pipeline console output #1004
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
base: main
Are you sure you want to change the base?
Conversation
If you're using IntelliJ you need to enable the (I can't find the bug report right now but I'm pretty sure its reported: https://youtrack.jetbrains.com/issues?q=%7Bmaven.config%7D%20%7Bprofiles%7D%20state:%20Open&sort=state)
|
|
I think its unlikely people are using it, the more likely APIs are the ones for stages and steps. I would prefer to remove it if its no longer in use for the plugin. If people are using it we can restore it and mark as deprecated, removing after some time. |
|
You say part of #704 Isn't this PR the last in the chain and it will fix the issue? |
Indeed, I've updated the link to "Fixes". |
|
The tests should pass now. I used the wrong incremental for Jenkins core (jenkinsci/jenkins#11071 -> jenkinsci/jenkins#11177). |
pom.xml
Outdated
| <dependency> | ||
| <groupId>org.jenkins-ci.plugins.workflow</groupId> | ||
| <artifactId>workflow-api</artifactId> | ||
| <version>1395.v515f67ea_db_10</version> |
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.
https://github.com/jenkinsci/workflow-api-plugin/releases/tag/1398.v67030756d3fb_
Thanks for creating the release, @timja ! What's the preferred method for adopting it? Bump the version in the pom.xml here or pull in the upgrade through BOM after the next dependabot update cycle?
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.
Either is fine
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.
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.1762.vd3ff902a_5b_c4:validate-hpi (default-validate-hpi) on project pipeline-graph-view: Dependency org.jenkins-ci.plugins.workflow:workflow-api:jar:1398.v67030756d3fb_ requires Jenkins 2.532 or higher.
🕵️ I'm currently on 2.532-rc37610.379ef8546550, which should satisfy >=2.532, no? I'll try to get a new incremental for Jenkins with 2.533.
pipeline-graph-view-plugin/pom.xml
Line 37 in 2f9403a
| <jenkins.version>2.532-rc37610.379ef8546550</jenkins.version> |

Instead of reading the entire step log into memory before emitting it in the JSON response, this PR is using the streaming based reading for step logs from stapler/Jenkins core.
I've kept the old
consoleLogendpoint as it is part of the API docs. What is the policy for removing endpoints?The new streaming mode ships logs as is, without stopping at the line end. So we need to glue lines back together, see added test
incremental log fetching > when gluing lines together.For later: use
?searchNewLineUntilwhen fetching more logs to avoid displaying partial lines.Testing done
?start: Implement incremental tailing of logs #976)Submitter checklist