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

DevnetClient.declareContract() fails on CI #472

Open
1 task done
franciszekjob opened this issue May 23, 2024 · 0 comments
Open
1 task done

DevnetClient.declareContract() fails on CI #472

franciszekjob opened this issue May 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working tests

Comments

@franciszekjob
Copy link
Collaborator

franciszekjob commented May 23, 2024

What happened

Sometimes StandardDeployerTest fails to initialize during deployment on CI. An EOF error occurs when declaring contract with DevnetClient.declareContract(). It happens irregularly. Re-running the job usually results in solving this problem.

Below you can find two jobs, that run with the same codebase, one failed and after re-running, it succeeded.
Fail: https://github.com/software-mansion/starknet-jvm/actions/runs/9205979828/attempts/1
Success: https://github.com/software-mansion/starknet-jvm/actions/runs/9205979828/attempts/3

Stack trace

StandardDeployerTest > initializationError FAILED
    starknet.utils.data.SnCastCommandFailed: Command declare failed. Error reason: {
      "command": "declare",
      "error": "Failed to parse contract definition: /home/runner/work/starknet-jvm/starknet-jvm/lib/src/test/resources/contracts/target/release/Contracts_Balance.casm.json: EOF while parsing an object at line 1 column 15913"
    }
        at app//starknet.utils.DevnetClient.requireNoErrors(DevnetClient.kt:406)
        at app//starknet.utils.DevnetClient.runSnCast(DevnetClient.kt:391)
        at app//starknet.utils.DevnetClient.declareContract(DevnetClient.kt:261)
        at app//starknet.utils.DevnetClient.declareContract$default(DevnetClient.kt:250)
        at app//starknet.deployercontract.StandardDeployerTest.before(StandardDeployerTest.kt:38)

Full insight into error https://github.com/software-mansion/starknet-jvm/actions/runs/9205979828/job/25322856216

Steps to reproduce

  1. Watch for StandardDeployerTest during CI deployment (unfortunately this error occurs irregularly, so there isn't a certain set of steps to reproduce)

SDK Version

0.11.1

Language

Kotlin

Language

n/a

Language version

1.9.0

What operating system are you using?

Mac

Is there an existing issue for this?

  • I have searched the existing issues and verified no issue exits for this problem.
@franciszekjob franciszekjob added the bug Something isn't working label May 23, 2024
@franciszekjob franciszekjob changed the title CI DevnetClient.declareContract() fails on CI May 23, 2024
@franciszekjob franciszekjob self-assigned this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

No branches or pull requests

1 participant