-
Notifications
You must be signed in to change notification settings - Fork 444
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
Run MacOS tests in correct directory. #3718
Conversation
Anyone with a MacOS setup able to debug the CI failure? I am not sure what to do here. |
It looks like we need to add |
Do you have an idea what is causing the remaining JSON CI failure? The grep does not produce an output it seems. |
|
@davidbolvansky
It looks like we need to add the following line to make sure that the tests are using the GNU version of
|
When comparing the output of outputTO.json: "enums" : [
{
"name" : "X",
"entries" : [
["Field_0", 0],
["Field_1", 1],
["Field_2", 2]
]
},
{
"name" : "Y",
"entries" : [
["Field_00", 0],
["Field_01", 1],
["Field_02", 2]
]
}
], outputFROM.json: "enums" : [
{
"name" : "Y",
"entries" : [
["Field_00", 0],
["Field_01", 1],
["Field_02", 2]
]
},
{
"name" : "X",
"entries" : [
["Field_0", 0],
["Field_1", 1],
["Field_2", 2]
]
}
], |
Hm could this be some non-determinism in the JSONGenerator? |
Ideally it would generate fields in alphabetical order. |
It could either be the loader or generator, but I do not understand that code well enough yet to tell. |
If this is hard to debug - maybe just disable this test for now to unblock this PR? |
11db6fd
to
93d7cec
Compare
93d7cec
to
a4381b8
Compare
Done. |
.github/workflows/ci-test.yml
Outdated
run: | | ||
ctest --output-on-failure -j 2 --schedule-random -LE "bpf$" | ||
ctest --output-on-failure -j 2 --schedule-random -LE "bpf|gtest|ubpf" |
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.
drop -j2.
CTEST_PARALLEL_LEVEL is defined.
@@ -141,5 +141,7 @@ jobs: | |||
./bootstrap.sh -DENABLE_GC=ON -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_UNIFIED_COMPILATION=ON && cd build && make -j2 | |||
|
|||
- name: Run tests (MacOS) | |||
# TODO: Renable gtest. Unit tests currently fail on MacOS. |
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.
@fruffy Would you be able to open a GitHub issue describing the problem and add a link in the comment, or we could add a link to this pull request?
Turns out MacOS tests have not run in a while. ctest was not executed in the right folder.