Skip to content

Tracking issue for new compiletest executor #140192

Open
@jieyouxu

Description

@jieyouxu

This is a tracking issue for migrating towards a new compiletest executor to replace the dependency on the
libtest executor.

This tracking issue is not meant for discussions or bug reports but is meant to track implementation progress, please open individual issues for bugs / discussions or zulip threads instead.

Summary

compiletest currently relies on the in-tree libtest (unstable programmatic API). This is problematic because:

  1. This can cause unnecessary compiler rebuilds following the stage 0 std redesign (this is mitigated by bootstrap build.compiletest-use-stage0-libtest = true but that's more-or-less a hack / mitigation).
    • This workaround can additional cause friction for contributors modifying programmatic libtest API due to stage 0 vs in-tree libtest differences.
  2. This is quite restrictive for compiletest because we can't easily tailor libtest behavior for rustc/rustdoc/ certain library test suites without regressing all the other libtest consumers.

Instead, we can roll our own minimal executor that replaces the libtest executor, which would allow us to drop the dependency on libtest once we migrate over to the new executor.

Known limitations

  • The current new executor implementation still depends on an unstable library feature, namely #![feature(internal_output_capture)].

Known bugs

Implementation history

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-compiletestArea: The compiletest test runnerA-test-infraArea: test infrastructure (may span bootstrap/compiletest/more)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions