Skip to content

Reduce the duration of the Rust unit tests in the CI #3729

Backlog

Description

@jpraynaud

Why

Since the snark feature is enabled by default (#3650), the Rust test jobs of the CI are about twice as slow on every runner (for example 6m 9s to 10m 15s on ubuntu-24.04 and 4m 36s to 10m 57s on ubuntu-24.04-arm), and they now hold back the later stages of the CI (Docker builds and infrastructure deployment tests).

What

Bring the test-rust job times back close to what they were before snark was enabled by default, mainly by making the certificate chain fixtures cheaper and by tuning how the dependencies are optimized in the CI cargo profiles.

How

  • Tune the optimization of the dependencies in the CI cargo profiles
    • Apply opt-level = 3 only to the dependencies that dominate the test time, instead of all dependencies ([profile.ci-tests-snark.package."*"])
    • Decide whether the workspace jobs use this profile, comparing the build time increase with the test time reduction after a CI cache cleanup
  • Create test assets (pre-built certificates and certificate chains) for the certificate chain tests, used in place of CertificateChainBuilder where real fixture generation is not needed

Activity

  1. added
    optimization 🛠️
    and removed
    optimization 🛠️
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions