Skip to content
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

CTest succedd locally but fail on actions #10616

Closed
2 of 13 tasks
BhJaipal opened this issue Sep 16, 2024 · 3 comments
Closed
2 of 13 tasks

CTest succedd locally but fail on actions #10616

BhJaipal opened this issue Sep 16, 2024 · 3 comments

Comments

@BhJaipal
Copy link

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
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • 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

@kishorekumar-anchala
Copy link
Contributor

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.

@BhJaipal
Copy link
Author

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

@ijunaidm ijunaidm assigned subir0071 and unassigned ijunaidm Oct 21, 2024
@subir0071
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants