-
Notifications
You must be signed in to change notification settings - Fork 63
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
Multiple fixes for federated programs with TypeScript target #1752
Conversation
Known error: The |
…possibly coming from the TargetProperty).
I fixed this by preventing the federateConfig.keepAlive from being overwritten by the app parameter in 3b1ad06 There are still errors in |
The check boxes in the PR description are meant to track progress of the PR, so we should only lists the tests that are failing, and check off the ones that we fixed... |
I suggest merging this PR first by moving failed tests to the failing folder. Because fixing all failed tests pass requires lots of time and makes this PR too heavy. Currently, just 27/42 Python federated tests are passing. Also, I realized that we have to add PTAG handling to fix the remaining failing tests in Because we get some improvements (finding the fault of the script and fixing some TypeScript federated Tests) with this PR, I think it's fine to merge this PR first and create other PRs that solve Python tests and TypeScript tests. |
For some reason, creating a trap for SIGTERM results in SIGTERM not causing the program to exit. In any case, we really do not want the program to exit without killing the RTI and federates under any circumstance unless we are sure that the program terminated successfully. Therefore, it seems safest to require positive confirmation via an EXITED_SUCCESSFULLY flag that the program really did exit successfully.
This replaces all instances in the test/Python/src directory.
This is not the right solution. The right solution is not to do the files property merging in the first place. This has been discusssed. I think everyone agrees about this, but probably it will not be fixed until the package manager is more complete.
Fixes for Python federated tests
Only the oldest test output is deleted.
This makes the test too computationally intensive and more importantly results in too much debugging output.
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.
Assuming that @byeong-gil will document the issues with the TypeScript tests now marked as failing, let's merge this so that we regain testing ability for federated execution in Python and TypeScript.
StringBuffers differ from StringBuilders mainly in that they are synchronized. It is not entirely clear to me where the concurrent accesses would be coming from since there is only one thread writing to this StringBuffer (right?) but it is one more thing to check.
After fixing the launch script so that its exit code reflects that when the RTI cannot be found this amounts to an error, it became clear that quite a few of the federated tests were failing.
Of those failing tests, the following were successfully repaired:
ChainWithDelay.lf
DistributedCount.lf
DistributedCountPhysical.lf
DistributedDoublePort.lf
DistributedLoopedAction.lf
DistributedLoopedPhysicalAction.lf
DistributedStop.lf
DistributedStopZero.lf
HelloDistributed.lf
StopAtShutdown.lf
TopLevelArtifacts.lf
The following tests need more work and have temporarily been marked as
failing
:DistributedCountPhysicalAfterDelay.lf
LoopDistributedCentralized.lf
LoopDistributedDouble.lf
PingPongDistributed.lf
PingPongDistributedPhysical.lf
SimpleFederated.lf
Relevant PR: lf-lang/reactor-ts#152