Skip to content

sphinx/test-outcomes: make test target mandatory#2470

Merged
bors-ferrocene[bot] merged 4 commits into
mainfrom
ja/test-outcomes-mandatory-test-target
Jul 20, 2026
Merged

sphinx/test-outcomes: make test target mandatory#2470
bors-ferrocene[bot] merged 4 commits into
mainfrom
ja/test-outcomes-mandatory-test-target

Conversation

@japaric

@japaric japaric commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

see commit message for rationale. also check the qualification report target pages in tidy

@jyn514 jyn514 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is lovely, thank you :)

Comment on lines +276 to +279
* ``library_compiletest_target`` (required): the target tuple of the target
used to run library and compiler tests. For targets that have a standard
library this is the same tuple as the compilation targets; for targets
without a standard library it will be a facade target

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i find the name of this option hard to understand -- if you don't like the "bare metal" part, can we just call it "tested_target" to match render_template.py?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I'm modifying the target (.rst) pages in the qualification report and I don't know that the sphinx extensions have docs (past me says 🙋‍♂️) and I see tested_target I'll probably just duplicate the target field. if the name conveys the idea that the target is used to run the compiler and library tests then that should give me some pause "probably can't run compiler tests on a -none- target so I can't duplicate the aarch64-unknown-none that I see in :target:"

bare_metal_target I find even more confusing. if :target: is x86_64-unknown-linux-gnu then I would probably set :bare_metal_target: to x86_64-unknown-none or something.

I don't know that the sphinx extensions have docs

IMO, if you want documentation to be read you need to put in front of people's face at all times, and not tuck it away in some drawer. Hence, I'd like to have self-documenting variable names.

@jyn514 jyn514 Jul 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we name it tested_target_with_std, then? library_compiletest_target reads to me like something that's going to passed to x test <...>, not a --target value at all.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doned

@jyn514 jyn514 added the waiting-on-author If this PR was opened by an automation, the "author" is the assignee. label Jul 14, 2026
@japaric
japaric force-pushed the ja/test-outcomes-mandatory-test-target branch from 8c8f551 to e7ab79c Compare July 14, 2026 15:23
japaric added 4 commits July 14, 2026 17:25
The rationale is that forgetting to set it loads the test outcomes from the
no-std ("bare metal") target which then results in target page in the
qualification report without test outcomes even when the data is available for
the test target

The name is also changed to "library compiletest target" to better reflect that
it is the target used to run those tests which can't run on a no-std target.
otherwise the Sphinx extension will only produce an inescrutable error in
one of the final CI steps (linux-docs)
@japaric
japaric force-pushed the ja/test-outcomes-mandatory-test-target branch from e7ab79c to 8a12db4 Compare July 14, 2026 15:34
@japaric japaric added waiting-on-review and removed waiting-on-author If this PR was opened by an automation, the "author" is the assignee. labels Jul 14, 2026

@Urhengulas Urhengulas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

bors-ferrocene Bot added a commit that referenced this pull request Jul 20, 2026
2470: sphinx/test-outcomes: make test target mandatory r=Urhengulas a=japaric

see commit message for rationale. also check the qualification report target pages in tidy

2476: No RHIVOS in main safety man r=Urhengulas a=Hoverbear

#2388 touched this so we touch it again. RHIVOS should be in the safety manual for RHIVOS, not main one.


Co-authored-by: Jorge Aparicio <[email protected]>
Co-authored-by: Ana Hobden <[email protected]>
@bors-ferrocene

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

  • full

@bors-ferrocene

Copy link
Copy Markdown
Contributor

Build succeeded:

@bors-ferrocene
bors-ferrocene Bot merged commit a1102fa into main Jul 20, 2026
7 checks passed
@bors-ferrocene
bors-ferrocene Bot deleted the ja/test-outcomes-mandatory-test-target branch July 20, 2026 19:42
@github-actions github-actions Bot added backport:maybe PR candidate for backport merged-in:1.99 labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants