Skip to content

CI table improvements - #5129

Open
ptomato wants to merge 3 commits into
tc39:mainfrom
ptomato:ci-table-improvements
Open

CI table improvements#5129
ptomato wants to merge 3 commits into
tc39:mainfrom
ptomato:ci-table-improvements

Conversation

@ptomato

@ptomato ptomato commented Sep 3, 2026

Copy link
Copy Markdown
Member
  • Make the failed test emoji less big and red
  • Drop irrelevant info from test artifacts
  • Print test results in CI log

I've had some anecdotal feedback that the big red X still makes it look
like it's a problem you have to solve before the PR can be merged.
That's not the intention, so maybe a less big and red emoji makes that
clearer.
These are the only keys used by tools/misc/build-results-comment.mjs. We
can drop everything else (including the test file contents, which is
very long because it includes the harness.)

Also print the results to stdout before writing them to the file, so
that the results are visible in the CI logs.

Closes: tc39#5127
@ptomato
ptomato requested a review from a team as a code owner September 3, 2026 00:03
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

1 new or modified test were run on 7 engines.

View workflow run

Test Engine262 GraalJS JavaScriptCore QuickJS SpiderMonkey V8 XS
intl402/Locale/prototype/getWeekInfo/firstDay-by-id.js

@ptomato

ptomato commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

I guess we can't test the ➖ emoji on this PR because the privileged comment-writing workflow is always going to be run from main.

@ptomato
ptomato requested a review from gibson042 September 3, 2026 00:09

@Ms2ger Ms2ger 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.

Consider using ➕ for passing tests for consistency

features: [Reflect,Intl.Locale,Intl.Locale-info]
---*/


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.

Why add this line?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is just temporary, in order to get a test to run.

function formatFail(message) {
if (!message) return '';
return `[](## "${sanitizeTableMarkdown(message)}")`;
if (!message) return '';

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.

I'd also like the emoji to be part of an obvious pair—(👍, 👎), (🙆, 🙅), (✅, ❎), etc.

-- ${{ needs.changed-tests.outputs.all_changed_files }} \
> "results-${{ matrix.engine.key }}.json"
| jq 'map({relative, scenario, result})' \
| tee "results-${{ matrix.engine.key }}.json"

@gibson042 gibson042 Sep 3, 2026

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.

We can do better than JSON in this log output, e.g.

Suggested change
| tee "results-${{ matrix.engine.key }}.json"
| tee "results-${{ matrix.engine.key }}.json"
| jq -r '
map(
"\n\(if .result.pass then "PASS" else "FAIL" end) \(.relative) [\(.scenario)]\(if .result.pass then "" else "\n\(.result.message)" end)"
)
| .[]
'

to produce text like

PASS path/to/foo [default]

FAIL path/to/bar [default]
failure message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants