about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-05-27 13:38:30 +0200
committerGitHub <noreply@github.com>2023-05-27 13:38:30 +0200
commit859068c628cb14622c58aa5d05959530b05ffee1 (patch)
tree59a49da79b11a51e75706a4ea508c95e22fb9f57 /compiler/rustc_mir_transform/src
parenta525c7ddba5997b132efa46515e0ce90c173f480 (diff)
parentc5139b9136c25c71f4c5f71335da9aedb8088cbc (diff)
downloadrust-859068c628cb14622c58aa5d05959530b05ffee1.tar.gz
rust-859068c628cb14622c58aa5d05959530b05ffee1.zip
Rollup merge of #111936 - ferrocene:pa-test-suite-metadata, r=jyn514
Include test suite metadata in the build metrics

This PR enhances the build metadata to include structured information about the test suites being executed, allowing external tools consuming the metadata to understand what was being tested.

The included metadata is:

* Target triple
* Host triple
* Stage number
* For compiletest tests:
  * Suite name
  * Mode
  * Comparing mode
* For crate tests:
  * List of crate names

This is implemented by replacing the `test` JSON node with a new `test_suite` node, which contains the metadata and the list of tests. This change also improves the handling of multiple test suites executed in the same step (for example in compiletest tests with a compare mode), as the multiple test suite executions will now be tracked in separate `test_suite` nodes.

This included a breaking change in the build metrics metadata format. To better handle this, in the second commit this PR introduces the `metadata_version` top-level field. The old version is considered to be `0`, while the new one `1`. Bootstrap will also gracefully handle existing metadata of a different version.

r? `@jyn514`
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions