-
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
Bugfix in the federated launch script to let failures be reported correctly #1835
Conversation
The following are now failing for Python in
We will have to either move them to Fortunately it looks like the C and TypeScript tests are still passing. We're lucky that it was only |
Actually, this is a nondeterministic segmentation fault (sometimes it happens, usually it doesn't), so probably it affects other Python federated tests as well. It happens during garbage collection; here is the stack trace:
Could this be related to the problem that @jackykwok2024 is working on? |
I would be in favor of moving these tests to failing and creating an issue documenting this. I agree that it seems that @jackykwok2024 would be the right person to look into this... |
Hi @petervdonovan, thanks for the thorough description you've provided. From my understanding, the nondeterministic segmentation fault seems to be caused by the unordered main reactions occurring in Python's federated execution. This does correlate with the memory leak issue I'm currently examining. I will look into it next week. |
The reason why this has not been merged yet with the failing tests moved into failing is that I am worried that other tests will also prove to be flaky. This means that I am basically allowing all Python tests to be more or less disabled in |
I see. I guess the question is: is a fix for the memory leak within reach? And if not, what is the status, @jackykwok2024? Can we help? |
I think this is also related to the fact that the Python programs segfault with Python 3.11 (issue #1458). I started looking into this, and put some notes in #1458, including some instructions on how to use the VS Code debugger with mixed Python and C. In my setup, I can set breakpoints in our C code and see variable values, etc. |
b90d63d
to
054d466
Compare
This fixes another way tests can pass when they should be failing.
35911dd
to
351707b
Compare
This change has already made it into |
This fixes another way tests can pass when they should be failing.
The behavior which apparently is currently in
master
is that if all federates terminate then the test passes, even if some federates terminated with nonzero exit code.