-
Notifications
You must be signed in to change notification settings - Fork 130
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 examples in cmake CI #695
Run examples in cmake CI #695
Conversation
For CompilerGym/examples/example_compiler_gym_service/demo_without_bazel_test.py Lines 5 to 12 in 2e3b176
I believes this should be run by the CI's example test jobs. Would this cover your needs for the other files? Cheers, |
Codecov Report
@@ Coverage Diff @@
## development #695 /- ##
===============================================
- Coverage 88.64% 88.55% -0.09%
===============================================
Files 131 131
Lines 7926 7926
===============================================
- Hits 7026 7019 -7
- Misses 900 907 7
Continue to review full report at Codecov.
|
OK. Got it. I will update the CI accordingly... The point is that the other 2 tests (loop_unroller and opt_loops) require building some executables. I have tried in this CI adding the other tests: #642 but I found myself opening a can of worms trying to get those test files working for different jobs that use bazel, CMake, or pip install. If I can get those examples to work with CMake only, and then look into getting them to work in other jobs that would be great. |
Ah, sorry, I see now.
I think you need to use CMake's testing https://cmake.org/cmake/help/book/mastering-cmake/chapter/Testing With CMake and CTest.html TBH I'm not super familiar with it, but you could maybe write a test job that depends on the cmake build and runs Cheers, |
292c623
to
2706976
Compare
So far, this is working:
However, this is not working:
|
According to https://github.com/actions/download-artifact#permission-loss: ``` ❗ File permissions are not maintained during artifact upload ❗ ```
OK. I just noticed that about GitHub's upload/download artifcats: https://github.com/actions/download-artifact#permission-loss:
So now I have |
Good progress @mostafaelhoushi! |
@mostafaelhoushi, these shouldn't be necessary: Do you see the UI button to re-run jobs? |
For some reason that "re-run jobs" button doesn't always appear to me. Most of the time it is not there :( |
Oh weird, but sometimes it is? So not a permission issue? |
Hmm, guess we're stuck in a queue somewhere |
Bit just be one of those "grab a cup of coffee and come back later" messages |
Never mind... the test ran... the problem was solved... but now hit another error:
I think that should be easy to solve: upload that |
and also remove running examples during build-linux-cmake
Is there a difference between The compute_observation binary is in the wheel |
OK. I wasn't aware of |
build-linux-cmake and test-linux-cmake are now green. We can merge it now. In upcoming PRs I will remove the calls to the examples from ci.yaml and ensure that pytest runs them instead. |
1 similar comment
build-linux-cmake and test-linux-cmake are now green. We can merge it now. In upcoming PRs I will remove the calls to the examples from ci.yaml and ensure that pytest runs them instead. |
Addresses #596