Action fails with `Validation Failed`
See original GitHub issueThanks for making this action! It’s quite nice to have.
Yesterday, the action started failing with this trace. I’m not sure if it’s something on our side that triggered it or not. We do have a lot of failing tests in this project, which are ignored by a flag on the test action. That was never an issue before.
https://github.com/usethesource/rascal-core/runs/6112088376?check_suite_focus=true
2022-04-21 13:29:23 +0000 - publish-unit-test-results - INFO - reading target/surefire-reports/**/*.xml
2022-04-21 13:29:24 +0000 - publish - INFO - publishing failure results for commit a074b5e8be95a4e6367c6af579f31e768fd77845
2022-04-21 13:29:26 +0000 - publish - INFO - created check https://github.com/usethesource/rascal-core/runs/6112893594
Traceback (most recent call last):
File "/home/runner/work/_actions/EnricoMi/publish-unit-test-result-action/v1/composite/../python/publish_unit_test_results.py", line 331, in <module>
main(settings, gha)
File "/home/runner/work/_actions/EnricoMi/publish-unit-test-result-action/v1/composite/../python/publish_unit_test_results.py", line 102, in main
Publisher(settings, gh, gha).publish(stats, results.case_results, conclusion)
File "/home/runner/work/_actions/EnricoMi/publish-unit-test-result-action/v1/python/publish/publisher.py", line 97, in publish
check_run = self.publish_check(stats, cases, conclusion)
File "/home/runner/work/_actions/EnricoMi/publish-unit-test-result-action/v1/python/publish/publisher.py", line 289, in publish_check
check_run.edit(output=output)
File "/home/runner/.local/lib/python3.8/site-packages/github/CheckRun.py", line 261, in edit
headers, data = self._requester.requestJsonAndCheck(
File "/home/runner/.local/lib/python3.8/site-packages/github/Requester.py", line 353, in requestJsonAndCheck
return self.__check(
File "/home/runner/.local/lib/python3.8/site-packages/github/Requester.py", line 378, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "CheckRun", "code": "invalid", "field": "annotations"}], "documentation_url": "https://docs.github.com/rest/reference/checks#update-a-check-run"}
Error: Process completed with exit code 1.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
[error]Validation Failed Why does this error happen? · Issue #41
This my workflow yaml. I think there is no error. But it always fails. Someone can help me ? Thanks. # on: #...
Read more >Unable to create github releases: Error: Validation Failed
It works perfectly if I use "repositoryName: 'claudioandre-br/JohnTheRipper'.". And fails if I select "repositoryName: 'claudioandre-br/packages'." Below the ...
Read more >GitHub Action - Reviewdog - 422 Validation Failed
The action is verilog-cleaner, which I wrote myself. Running with local reporter, it seems to be correctly parsing all outputs. However, with ...
Read more >How to troubleshoot your workflow if you get a validation error ...
1. If you're using the Condition 'Subscriber opened workflow email' as shown in the below example, but you fail to specify which email...
Read more >Why does the error: 'Validation failed for the field - List Header ...
When trying to copy some sales orders, the action is failing with an error: "Validation failed for the field - List Header" Why...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been fixed and released. Thanks for reporting!
Gotta love surrogate pair unicode characters, we’ve always used 🍝 as a nice character for escaping utf16 boundaries. but in general, most emojis are in that extra high-surrogate plane.