missing mypy detail when annotate_only=true
Alex-ley-scrub opened this issue · 4 comments
as briefly mentioned in: #699 (comment)
basically when you have annotate_only=false
(the default) you see something like this (similar to the repo README images):
and when you click "Raw Output" button you see the mypy error:
but with annotate_only=true
you don't have the "Raw Output" button and therefore can't see the erorr
Upon a closer look, this is unfortunately a limitation from GitHub. There is a difference if a check is created, or if a normal annotation is built.
For the annotate_only
a annotation property can be provided, and these don't allow for any additional information.
- https://github.com/mikepenz/action-junit-report/blob/main/src/annotator.ts#L39-L53
- https://github.com/actions/toolkit/blob/ef77c9d60bdb03700d7758b0d04b88446e72a896/packages/core/src/core.ts#L40
While check do allow an additional raw_details to bo be provided
The only "alternative" I could think of would be to add the stacktrace as part of the message for the annotation, however not everyone may like that as it is quite verbose and there is no collapsing for it
@Alex-ley-scrub related the summary output: #1050
It would be great if you could try it out if it matches what you needed.
Closing as we won't be able to have the same output for annotation_only.