Skip to content

Hardhat coverage behaves different locally vs in GitHub ci #918

@LyonSsS

Description

@LyonSsS

Context: In order to validate coverage of tests we implemented a coverage mechanism which does execute coverage locally via hardhat and then in GitHub CI and if the CI job is != local file to fail as the file was tampered.
Still we had multiple jobs that executed with different results from local to Github CI jobs.

Here are few examples: https://github.com/sprintertech/sprinter-stash-contracts/actions/runs/20311697276/job/58344394052
Just fork from this commit then try run it locally and compare with the CI results. (https://github.com/sprintertech/sprinter-stash-contracts/actions/runs/20311697276/job/58344394052#step:9:924 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions