Skip to content

CI Pipeline Fails on ZKP/Verifier Tests Due to Missing Files #22

@sid030sid

Description

@sid030sid

Problem
The GitHub Actions workflow fails during the test phase because several tests require contract artifacts and files from the verifiers and circom-zkp-generator folders that cannot be committed to the repository due to licensing restrictions. When Hardhat attempts to run these tests, it fails with:

Code
HardhatError: HHE1000: Artifact for contract "VerifierM2" not found.
This affects four tests in the "DIDMultisigController – private publishing on marketplace" suite:

  1. Group of 4 admins can publish via ZKP
  2. Group of 2 admins can publish via ZKP
  3. Fails if valid admin includes non-admin (group of 4)
  4. Fails if invalid admin attempts to generate a proof for a group they do not belong to

Root Cause
The CI environment cannot build or access the required verifier contracts since they're not in the repository, making these tests impossible to run in the automated pipeline.

Recommended Solutions

  1. Option (Simplest): Conditionally skip tests in CI using environment variables
    Mark ZKP-dependent tests with conditional skip logic
    Set CI=true in the GitHub Actions workflow
    Option 2: Filter tests by pattern during CI runs

  2. Create a test:ci script that excludes ZKP/verifier tests
    Update the workflow to use this script instead of the standard test command
    Option 3: Organize verifier tests separately

  3. Move ZKP tests to a dedicated file/directory
    Configure Hardhat to exclude these in CI environments

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