Skip to content

Commit

Permalink
Bug 1651991 [wpt PR 24556] - [Taskcluster] Make lint create a GitHub …
Browse files Browse the repository at this point in the history
…Checks output file, a=testonly

Automatic update from web-platform-tests
[Taskcluster] Make lint create a GitHub Checks output file (#24556)

See web-platform-tests/wpt#15412
--

wpt-commits: 8420fdfa2c9124b1f7b1eaf64517c5b3fc3f072b
wpt-pr: 24556

UltraBlame original commit: a6e4b389013941a0c67a2ed4b32796bfa59bcb23
  • Loading branch information
marco-c committed Sep 16, 2020
1 parent 3da7ba1 commit a0ceef9
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 51 deletions.
64 changes: 38 additions & 26 deletions testing/web-platform/tests/tools/ci/tc/github_checks_output.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
MYPY
=
False
if
MYPY
:

from
typing
import
Any

from
typing
import
Optional

from
typing
import
Text
class
GitHubChecksOutputter
(
Expand Down Expand Up @@ -157,7 +178,7 @@
def
get_gh_checks_outputter
(
kwargs
filepath
)
:

Expand All @@ -177,23 +198,24 @@

:
param
kwargs
filepath
:
The
arguments
passed
filepath
to
the
program
(
write
GitHub
Check
output
information
to
look
for
the
github_checks_text_file
field
)
or
None
if
not
enabled
.

"
"
Expand All @@ -203,12 +225,7 @@
__outputter

if
kwargs
[
'
github_checks_text_file
'
]
filepath
and
__outputter
is
Expand All @@ -219,12 +236,7 @@
=
GitHubChecksOutputter
(
kwargs
[
'
github_checks_text_file
'
]
filepath
)

return
Expand Down
20 changes: 20 additions & 0 deletions testing/web-platform/tests/tools/ci/tc/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,26 @@ lint
-
-
all
-
-
github
-
checks
-
text
-
file
=
/
home
/
test
/
artifacts
/
checkrun
.
md
"
-
update
Expand Down
Loading

0 comments on commit a0ceef9

Please sign in to comment.