Skip to content
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

Fixes the tick and trigger issue on SingleModeSpec test #3676

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

HoneyTauOverTwo
Copy link
Collaborator

@HoneyTauOverTwo HoneyTauOverTwo commented Nov 17, 2022

This issue happens because the test "let everybody take drive_transit when their plan says so" leaves some electric vehicles plugged into the charging station, then these vehicles are in an unexpected state when the next test "let everybody drive when their plan says so" starts.

Running beamScenario.privateVehicles.foreach(_._2.resetState()) right at the begining of the aforementioned second test fixes the issue. I will be adding this code to SimRunnerForTest.beforeEach() and comparing the CI output before and after the change.


This change is Reviewable

I will be adding code to SimRunnerForTest.beforeEach() method, running the CI before after the change so I can analyse if the change had undesirable side effects other than fixing the tick and trigger issue on SingleModeSpec.
@HoneyTauOverTwo
Copy link
Collaborator Author

test!

@HoneyTauOverTwo
Copy link
Collaborator Author

test!

@HoneyTauOverTwo
Copy link
Collaborator Author

Turns out, differently from what we thought, there is another test that was throwing this issue: BikeTransitModeSpec as can be seen here:
CI output before change.txt

The output after these changes does not contain any instance of the issue:
CI output after change.txt

I looked through all the error messages reported on "CI output after change" and, from what I can tell, there is no new kind of error being thrown when compared to "CI output before change".

@HoneyTauOverTwo HoneyTauOverTwo marked this pull request as ready for review November 17, 2022 21:21
@HoneyTauOverTwo HoneyTauOverTwo self-assigned this Nov 18, 2022
Copy link
Collaborator

@Xuan-1998 Xuan-1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Xuan-1998 Xuan-1998 merged commit b2586f7 into develop Nov 21, 2022
@Xuan-1998 Xuan-1998 deleted the heric/tick-and-trigger-issue branch November 21, 2022 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants