Skip to content

fix: set OPENSSL_DIR=/usr by default during cargo test#42

Merged
benedikt-schesch merged 1 commit into
mainfrom
fix/openssl-dir-test-env
Jun 20, 2026
Merged

fix: set OPENSSL_DIR=/usr by default during cargo test#42
benedikt-schesch merged 1 commit into
mainfrom
fix/openssl-dir-test-env

Conversation

@benedikt-schesch

Copy link
Copy Markdown
Collaborator

Summary

The test harness invokes cargo test without setting OPENSSL_DIR. Any CRUST project depending on the openssl-sys crate (notably c_blind_rsa_signatures) fails to build with:

Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge.

This produces a spurious build_ok: false in result.json even though the translation is correct. It silently affected scoring: agents whose result.json was generated in an environment with OPENSSL_DIR pre-set passed, while later refresh runs in cleaner environments saw "build failures" for the same source.

This PR sets OPENSSL_DIR=/usr by default (still overridable via the env var) in:

  • cargo test invocation in test_one_crust
  • cargo test --verbose re-run for diagnostics
  • python3 -m runtests.rust invocation in run_runtests

Test plan

  • cargo build --release clean
  • Re-ran harvest-tools test CRUST/c_blind_rsa_signatures --update for claude (was build_ok=false): now tests_ok: 3, tests_failed: 0, build_ok: true
  • Re-ran for claude-no-iter: same recovery ✅

The test harness invokes cargo test without setting OPENSSL_DIR. Any
CRUST project depending on the `openssl-sys` crate (e.g.
c_blind_rsa_signatures) fails to build for environmental reasons
unrelated to translation quality, producing spurious build_ok=false
in result.json.

This silently affected scoring: agents whose result.json was generated
in an environment with OPENSSL_DIR pre-set passed, while later refresh
runs in cleaner environments saw "build failures" for the same code.

Set OPENSSL_DIR to /usr by default (overridable via the env var) in
both cargo test invocations and the runtests Python invocation.
@benedikt-schesch benedikt-schesch merged commit 05aec2a into main Jun 20, 2026
1 of 2 checks passed
benedikt-schesch added a commit that referenced this pull request Jun 20, 2026
Bumps results pointer from 8df0744 to 4ff73b7. Includes:

* 6bc629aa  Refresh result.json across all Test-Corpus agents using the
            parser from #40 (per-vector failures, accurate counts).
* 75005f8e  Refresh result.json for gemini-3.1-pro-preview and gpt-5.4
            (oneshot agents that were missed in the all-agent pass).
* 4ff73b73  Add codex-gpt54 CRUST + CRUST-blind results (95 projects
            each, full translation pass with in-harness Bedrock retry).
            Also refreshes codex-gpt54 Test-Corpus after retrying 6
            cases that hit transient Bedrock errors during the original
            run, and re-tests c_blind_rsa_signatures for claude variants
            now that OPENSSL_DIR is set by default (#42).

Co-authored-by: Benedikt Schesch <scheschb@amazon.co.uk>
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

Successfully merging this pull request may close these issues.

2 participants