-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
232: Split and refactor the test outcomes page r=Veykril a=pietroalbini This PR changes how the test outcomes page's content is structured, splitting it into one page per target. This has two purposes: * Reduce the clutter on the page, which would otherwise mix information of all qualified targets. * Provide an accurate list of ignored tests, as each target now has the list of tests it ignored rather than just displaying a list of tests ignored by *all* targets. To simplify the generation of the separate pages, I changed how the `ferrocene_test_outcomes` extension works. Rather than having `.. ignored-tests::` and `.. suite-summary::` directives that are rendered in Python code, the extension now gathers and organizes the data, and defers the rendering of the information to a Jinja2 rST template. This results in the whole test results page being rendered by the template, which eases the maintenance of those pages. For example, a note that should be displayed only on cross-compiled targets can now be gated behind `{% if host != target %}`. Finally, while refactoring I removed the whole parsing code of the debug representation of steps, replacing it with the [structured test metadata](rust-lang/rust#111936) I added a while back. This will increase the robustness of the tool. There are still some open issues on this I'll address in a future PR: * The list of crates for the bootstrap test suite is empty. * The note for doc-tests not being executed is not present on aarch64. * I'd like to add references to the test suite definitions in the evaluation plan. * I'd like to see if I can make the information displayed in the page more concise. Co-authored-by: Pietro Albini <[email protected]>
- Loading branch information
Showing
13 changed files
with
491 additions
and
631 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
ferrocene/doc/qualification-report/exts/ferrocene_test_outcomes/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 0 additions & 67 deletions
67
ferrocene/doc/qualification-report/exts/ferrocene_test_outcomes/ignored_tests.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.