Repository navigation
Fix resuse_simulator value always being True - #2985
Merged
Merged
Conversation
john-flanagan
requested review from
aaronsky,
adincebic,
brentleyjones,
keith,
luispadron and
mattrobmattrob
as code owners
June 2, 2026 16:11
keith
reviewed
Jun 2, 2026
keith
reviewed
Jun 2, 2026
aaronsky
reviewed
Jun 7, 2026
john-flanagan
force-pushed
the
jflan/resuse-simulator-fix
branch
from
July 27, 2026 19:35
91f8f43 to
9c850c7
Compare
adincebic
approved these changes
Oct 26, 2026
Contributor
|
@john-flanagan @aaronsky @keith are all concerns addressed here? I would like to have this merged eventually. We maintain a local patch to specifically fix this issue. |
keith
force-pushed
the
jflan/resuse-simulator-fix
branch
from
October 26, 2026 23:43
9d150ac to
fa77645
Compare
keith
enabled auto-merge (squash)
October 26, 2026 23:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
resuse_simulatorwas always being set toTruebecause of the default value of the--reuse-simulatorargument.This PR updates the logic not include a default value for
--reuse-simulatordirectly, while still defaulting toTruewhen the argument is missing andSIMULATOR_REUSE_SIMULATORis not0orFalse.The previous check for
os.getenv("SIMULATOR_REUSE_SIMULATOR") is not Nonewasn't working correctly either because the template always set eitherSIMULATOR_REUSE_SIMULATOR=1orSIMULATOR_REUSE_SIMULATOR=which resolve to"1"and""respectively, both of which returnedTruefromis not None.I added a print statement just below the
reuse_simulatorlogic to illustrate the problemBefore
After
I think this logic would be better if we explicitly checked
SIMULATOR_REUSE_SIMULATORforTrueor1and defaulted everything else toFalse, but I wasn't sure if that would mesh with the help text of "Toggle simulator reuse; default is True"i.e.