Skip to content

Reduce test recompilations #8659

@cwfitzgerald

Description

@cwfitzgerald

Currently to run cargo xtask test you need to compile twice. First for wgpu-info to generate .gpuinfo, second for the test suite. What we should do is write a test inside wgpu-info which internally calls the wgpu-info output-to-json function. In order to get rid of the race condition, we can make it only output if a given env var is set. The xtask can run this one exact test with the flag set, then run the whole suite. The test will still run, but not output anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: infrastructureTesting, building, coordinating issuesarea: testsImprovements or issues with our test suitetype: enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions