-
Notifications
You must be signed in to change notification settings - Fork 10
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
failing assertion while generating the flowGraphMap #16
Comments
well I ran into this problem a few weeks ago and did not know yet what to make of it I made this branch to avoid the error https://github.com/gdemengin/pipeline-logparser/tree/corruptflow can you try it ? it did hide the error for me ... but the logs I got from the parsing were incomplete so I was not really sure it should become the default behavior because I suspect there was some kind of corruption of the flowgraph of a specific run:
assuming it's a corruption, I'm thinking maybe the behavior in that branch should become an option
I did not do it (yet) cause this library already has too many/too complicated options and this one will be tricky to explain (and to find a good name : I guess I would call it allowCorruptFlow with default false) what do you think, should we add an option for that ? |
hi @gdemengin according to the docs both FlowStartNode and FlowEndNode should have a null encolsingId ( I am not sure about the logic why though ) But I suspect that usually if you try to get the logs while the build is still running the flowEndNode would be still not created ( so not visited in the loop and the assertion would not fail ) |
ok agreed. I'll propose a change asap |
testing the latest 3.1.2 version
I am having currently the issue that the following assertion is failing
https://github.com/gdemengin/pipeline-logparser/blob/3.1.2/vars/logparser.groovy#L69
with some debugging, it looks like the FlowEndNode can also have a null enclosingId ( not only the FlowStartNode ) and the start is not null
for example I am getting:
is this happening because I am trying to get the logs of an already finished pipeline?
The text was updated successfully, but these errors were encountered: