Skip to content

Make errors parsing ::error more discoverable #4167

@Andrej730

Description

@Andrej730

Hi! Stumbled upon issue when if there's an issue with :error type of annotations, it's hard to discover it - some user first has to notice that annotations don't appear in commits no more and then investigate the logs for the details.

Would be great if runner could propagate those errors either to Summary or as Github action annotations.

The original case where I've met this issue was with output from Ruff (related issue - astral-sh/ruff#22074)

It was creating annotation below:

::error title=Ruff (RUF022),file=/home/test.py,line=1,col=11,endLine=6,endColumn=2::test.py:1:11: RUF022 `__all__` is not sorted

Resulting in the following logs:

##[debug]Invalid error command value. 'col' and 'endColumn' cannot be set if 'line' and 'endLine' are different values.
##[debug]Invalid error command value. 'endColumn' cannot be less than 'col'.

But I guess issue has been there for awhile and if error messages were propagated to Summary page / as annotations, it would be possible to discover something like this sooner - without noticing from some feature breaking because of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions