-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
build: turn on integration tests in ctest by default #1381
build: turn on integration tests in ctest by default #1381
Conversation
Let's see how long the tests take to run with this on by default. |
Looks like upon test failures the build automatically calls the |
Integration tests should pass after #1379 |
Yes! I should have deleted it long ago. I left it on by mistake. |
Done. I'll rerun the tests here. |
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'm fine with this. If you think the actual test run is taking too long in CI, we can defer merging this and consider ways to speed things up.
So here are some factors that I believe we have to sift through in evaluating the timing:
Happy to debate any of these if you disagree. |
Two build workflow runs for comparison:
|
Another way to look at this, which may be simpler, is to find the logs of the packager_test_py run, which contain a standalone wall-clock time:
The error from windows logs:
I suspect we need to have the test command involve "python3" or something, at least on Windows. We are probably relying on the shebang line for Linux & macOS. Does |
fd09f81
to
355d21e
Compare
I think the problem is that the integration tests rely on reaching into the source tree to get the test media, and make assumptions about the hardcoded path to the source tree. |
I think the test command needs to include "python3" and avoid using the shebang. |
The test is defined using
so in theory it should be using python3, but it doesn't look like anything sets the Python executable. I think we need to use |
Down to only one test failing on Windows shared builds, with the app failing to recognized the |
48cdae9
to
0e60e6f
Compare
Still haven't found a good solution to the abseil flags from the packager shared library not being recognized by the packager app binary. So I went back to fixing what the tests originally tried to do, and skip them if it was built as a shared library. We can circle back to fixing these flags but meanwhile we should enable the integration tests as part of the build. |
packager/CMakeLists.txt
Outdated
add_test (NAME packager_test_py | ||
COMMAND ${PYTHON_EXECUTABLE} packager_test.py | ||
COMMAND ${Python3_EXECUTABLE} packager_test.py |
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.
Could you please also use ${Python3_EXECUTABLE}
in packager/tools/CMakeLists.txt
and packager/version/CMakeLists.txt
in place of python3
? I think that might solve #1385
…_parameter_set_nalus test if shared, for now
… integration tests
1c89ad6
to
27e3b54
Compare
…argets to avoid potential out-of-order execution
They can still be skipped by passing
-DSKIP_INTEGRATION_TESTS=ON
for the build configuration.