perl-actions / install-with-cpanm

GitHub action to install Perl Modules using App::cpanm
14 stars 3 forks source link

Want to disable error message in raw logs #14

Closed sidey79 closed 2 years ago

sidey79 commented 2 years ago

I found out that if i use this awesom action, somethin happens with my error output.

That is something i wasn't aware of it and now i try to prevent this happening.

Overall, i run serval tests with prove. Now i want to pipe the results over to reviewdog/reviewdog to generate nice inline comments at the right place.

If i run prove without using actions-setup-perl on github actions anything looks as on my local machine. Output is as expected from prove. No [Error] statement can be found in the raw log. This is my expected behaivor also using this action: job details

    # Failed test 'check returnvalue Hello_Define'
    # at /home/runner/work/perlTest/perlTest/t/FHEM/98_HELLO/00_define.t line 21.
    # +---------+-----------+---------+-----+
    # | GOT     | OP        | CHECK   | LNs |
    # +---------+-----------+---------+-----+
    # | <UNDEF> | DEFINED() | DEFINED | 21  |
    # +---------+-----------+---------+-----+

# Failed test 'Demo Test checking define'
# at /home/runner/work/perlTest/perlTest/t/FHEM/98_HELLO/00_define.t line [22]

If i use the actions-setup-perl There are additional Error: Statements in the log. Even in the raw log. job details

    # Failed test 'check returnvalue Hello_Define'
Error:     # at /home/runner/work/perlTest/perlTest/t/FHEM/98_HELLO/00_define.t line 21.
    # +---------+-----------+---------+-----+
    # | GOT     | OP        | CHECK   | LNs |
    # +---------+-----------+---------+-----+
    # | <UNDEF> | DEFINED() | DEFINED | 21  |
    # +---------+-----------+---------+-----+

# Failed test 'Demo Test checking define'
Error: # at /home/runner/work/perlTest/perlTest/t/FHEM/98_HELLO/00_define.t line 22.
/home/runner/work/perlTest/perlTest/t/FHEM/98_HELLO/00_define.t .. 

I also tryed to disable workflow commands for this command as explained in the github docs:

        stopMarker=$(uuidgen)
        echo "::stop-commands::$stopMarker"
        prove --exec 'perl -MDevel::Cover=-silent,1 fhem.pl -t' -I FHEM -r -vv ${GITHUB_WORKSPACE}/t/FHEM/[0-9][0-9]_*/
        echo "::$stopMarker::"

But this doesn't help.

Am i right, that this output is caused by your action? Any ideas how i can disable them?

sidey79 commented 2 years ago

sorry i opend the ticket in the wron repostitory :)