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

Issue with --save-trace-data in Github runners #29

Open
julio4 opened this issue Feb 6, 2025 · 0 comments
Open

Issue with --save-trace-data in Github runners #29

julio4 opened this issue Feb 6, 2025 · 0 comments

Comments

@julio4
Copy link

julio4 commented Feb 6, 2025

Scarb version 2.9.2
Snforge version 0.35.1
Setup-snfoundry version 4.0.0

Within a Scarb project, with the correct versions set in .tool-versions and Scarb.toml at the root of the repository, the following Github action works fine:

name: Test
on:
  pull_request:
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: foundry-rs/setup-snfoundry@v3
      - uses: foundry-rs/setup-snfoundry@v4
      - uses: software-mansion/setup-scarb@v1
      - run: snforge test

However, adding --save-trace-data to snforge test, while appending the following to Scarb.toml:

[profile.dev.cairo]
unstable-add-statements-code-locations-debug-info = true
unstable-add-statements-functions-debug-info = true
inlining-strategy = "avoid"
name: Test
on:
  pull_request:
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: foundry-rs/setup-snfoundry@v3
      - uses: foundry-rs/setup-snfoundry@v4
      - uses: software-mansion/setup-scarb@v1
      - run: snforge test --save-trace-data

Cause the action to fails during tests compilation, with no specific error:

Run snforge test --save-trace-data
    Updating crates.io index
 Downloading crates ...
// ...
   Compiling snforge_scarb_plugin v0.35.1 (/home/runner/.cache/scarb/registry/src/scarbs.xyz-9djtpev4jug5q/snforge_scarb_plugin-0.35.1)
    Finished `release` profile [optimized] target(s) in 1m 19s
   Compiling test(tests) tests v0.1.0 (/home/runner/work/.../Scarb.toml)
Error: The operation was canceled.

It works perfectly fine locally with the exact same configuration.

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

No branches or pull requests

1 participant