Check (all?) backends of profiling
in CI
#6462
Labels
area: infrastructure
Testing, building, coordinating issues
area: tests
Improvements or issues with our test suite
WGPU has had a multitude of compilation failures that make it into mainline history, caused by subtle differences in
profiling
backends. Some examples:cargo clippy
fails on call intoprofiling
#5991wgpu-core/src/instance.rs
whenprofiling
has a backend enabled #6422The root cause is, according to aclysma/profiling#87 (comment), significant tension between
profiling
wanting to be portable but also zero-cost when no backends are enabled, and no guarantee from Rust that unused expressions' side effects will be discarded. Resolving the root cause is interesting, but does not appear simple.In the meantime, we can “simply” check
profiling
backends in CI, to ensure that we don't merge PRs that cause this again. If we can do this, we can mitigate the risk of the above problem, without actually needing to resolve it.The text was updated successfully, but these errors were encountered: