Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm not too sure how changing scope of variable fixes the issue?
Can you write a test for it as well, so that it not breaks again?
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.
no sure how this test would look, since it happens only on Robin. I can add a the test there two if you want
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.
private variables don't get filled out by json parsing. If this is being parsed (it seems to be the case), it'll always be null
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.
I feel I might be missing something, the deserialization of Yaml commands to Maestro commands works through same deserializer here in YamlCommandReader for both Robin and CLI.
If it's working on CLI and not on Robin, it sounds like we must be doing something wrong on Robin. Not sure it's clear from here what.
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.
it seams ot me that this is due to some library version that doesn't parse the json of private variables anymore, as the code implementations is the same in both codes. Still figuring out which one is it. Should I proceed with the release or wait till this is figured out?
I think it probably makes sense to release it that way, since the condition variable already is not private, btw do you have context on that? @amanjeetsingh150
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.
You can go ahead with the release no worries!
But since that can be an issue with private variables. I think more importantly let's ensure there are no other private variables in maestro commands that could also face this issue.
On the version thing probably it makes sense to confirm that we are using same version of serialzers for robin for jackson or some dependency is not missing?
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.
Checked this, it seems that this was the last private val that we had on the MaestroCommand
Also think that it's something related to this, will take a look as soon as I free up