CTest succedd locally but fail on actions
Description
I am working on a C project with CMake and added Single Platform workflow but now Tests are working locally but fails on workflow
Latest Run link
Platforms affected
- [ ] Azure DevOps
- [X] GitHub Actions - Standard Runners
- [ ] GitHub Actions - Larger Runners
Runner images affected
- [ ] Ubuntu 20.04
- [X] Ubuntu 22.04
- [ ] Ubuntu 24.04
- [ ] macOS 12
- [ ] macOS 13
- [ ] macOS 13 Arm64
- [ ] macOS 14
- [ ] macOS 14 Arm64
- [ ] Windows Server 2019
- [ ] Windows Server 2022
Image version and build link
latest run link: https://github.com/BhJaipal/libaloo/actions/runs/10882290942
Is it regression?
Maybe no
Expected behavior
Locally Test project /home/jaipal001/Desktop/files/c-use/libaloo/build Start 1: IntegerTest 1/2 Test #1: IntegerTest ...................... Passed 0.02 sec Start 2: WidgetTest 2/2 Test #2: WidgetTest ....................... Passed 0.24 sec
100% tests passed, 0 tests failed out of 2
Total Test time (real) = 0.26 sec
Actual behavior
On actions Run cd /home/runner/work/libaloo/libaloo/build Test project /home/runner/work/libaloo/libaloo/build Start 1: IntegerTest 1/2 Test #1: IntegerTest ...................... Passed 0.01 sec Start 2: WidgetTest 2/2 Test #2: WidgetTest .......................***Failed 0.01 sec
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 0.07 sec Errors while running CTest Output from these tests are in: /home/runner/work/libaloo/libaloo/build/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
The following tests FAILED: 2 - WidgetTest (Failed) Error: Process completed with exit code 8.
Repro steps
Run commands in cmake-single-platform.yml
Hi @BhJaipal , Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.
Hi @BhJaipal , Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.
Problem possibly occurs here
Hi @BhJaipal , We are sorry to inform you that we are unable to analyze third party codebases. However, kindly see if the test cases are referring to any files or data in your local machine which might not be available in the runner machines. Moreover, please check the versions of relevant packages and their differences between your local and runner image. Thanks.