-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Issue 1102: Fixup test suite, fix broken tests #1103
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
Conversation
Hmmm. Using this branch locally, I have this:
... Oh, if I delete the build-dir and start over, then it works. That's odd. Meson/Ninja usually do a good job of auto-updating for changes. Very suspicious, but it does work.
Thanks for fixing this! ... Oh, hold on. It fails if you run a second time:
So we still have something to fix ... |
I've verified that |
I'm digging back into this... looks like a fun problem. Basically both the |
I figured it out! It's a race condition--for some reason the |
I think this is ready for another look! |
Is there any progress? |
This worked:
But this failed (from top-dir):
I'll update meson, but I don't think that's the issue... |
After upgrading python/meson/ninja on my Mac, I don't see a failure anymore. Weird. But the tests seem slow... Ok. I see the problem. Meson runs 3 tests: C++ unit-tests, a python round-trip checker on This whole thing should be done differently, but I try to solve just one specific problem at a time. For now I will revert your last 2 commits and skip the repetition of those tests. Tomorrow.... |
A recent PR broken the JsonChecker tests by adding support for trailing commas. This didn't end up breaking the build, because those tests aren't run, except locally and only using CMake. This patch fixes the tests by adding exclusions for trailing comma tests, as well as updates Meson to run these tests as part of `ninja test`. See issue #1102.
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 pushed some commits, and it seems fine now, though we clearly still need some reorganization of the test-suite(s).
test/runjsontests.py
Outdated
|
||
|
||
def safeReadFile(file_path): | ||
# We may try to read early, so wait if the file doesn't exist yet. |
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.
There must be a way to prevent the race. We might merge just to make progress, but I'd like to figure out a way to prevent this problem altogether.
I'm about to try these changes locally....
A recent PR broken the JsonChecker tests by adding support for trailing
commas. This didn't end up breaking the build, because those tests
aren't run, except locally and only using CMake.
This patch fixes the tests by adding exclusions for trailing comma
tests, as well as updates Meson to run these tests as part of
ninja test
.See issue #1102.