rust-lang / rust-lang/rust-bindgen

Idea: Run expectation tests with specific clang versions

Open
#2,638 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.3k
Forks
829
Avg merge
1d 1h
Merged PRs (30d)
15

Description

Right now bindgen-tests will run with the system's clang version by default. Even though this can be overridden using environment variables, installing different clang versions can be cumbersome but not running the expectation tests could lead to unexpected CI failures. The most common example of this is a test that fails because clang 5 lacks a feature available in later clang versions.

I've had success using nix to install different clang versions without issue. However using a more ubiquitous tool like docker to set up the right environment would be more accessible and would reduce the time spent going back and forth with CI.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the bindgen-tests expectation-test setup and review how its environment-variable clang overrides are used in CI. Compare a Docker-based environment with the existing setup, including support for specific clang versions. Done means the relevant expectation tests can run reproducibly against selected clang versions and the CI workflow documents or exercises that setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, rust
Domain
ci-cd, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.