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.
@omkarkhatavkar If I'm reading this correctly, the checkin won't happen for the sanity server anyway.
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.
Maybe I confused you here, I'm talking here or this PR not want to check out the build_sanity satellite,
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.
If we run pytest with
-m build_sanity
, then'sanity' not in request.config.option.markexpr
evaluates toFalse
, therefore ifsettings.server.auto_checkin
is set toFalse
for the build sanity run, then we getwhich evaluates to
False
. Therefore the following logical block will not get executed.In a scenario where we run standard test automation, it would be
if True and True
, therefore thesat
instance would be checked in unless we change theauto_checkin
setting to False.I see no issue with the logic Omkar proposes. Are there any problems that might arise if this patch goes in, @jameerpathan111?
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 saying that there'll be any problem but the PR description IMO is/was misleading as the built sanity server was not going to checked in anyway so I didn't see the point in having this code to solve the problem which is not there.
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.
Anyway, like you said I don't see any problems with having this patch either.
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 did not state it explicitly in the above comment, but @omkarkhatavkar, could you please revisit the logic? For sanity testing with
auto_checkin
set to True, the condition would beif False and True
->False
. Jameer is correct in what he is saying, there is no problem to solve,installer_satellite
is not being checked in in case of sanity testing.If we want to do a VM check-in in robottelo, I would prefer to relo solely on the
auto_checkin
setting. So the condition would look like