Skip to content

BBC: c844eac triggers failures in Devel::Cover #22439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jkeenan opened this issue Jul 29, 2024 · 4 comments
Closed

BBC: c844eac triggers failures in Devel::Cover #22439

jkeenan opened this issue Jul 29, 2024 · 4 comments
Labels
BBC Blead Breaks CPAN - changes in blead broke a cpan module(s)

Comments

@jkeenan
Copy link
Contributor

jkeenan commented Jul 29, 2024

Commit c844eac has triggered CPANtesters failures for the Devel-Cover distribution.

Sample failure report

Extract:

#   Failed test 'output'
#   at blib/lib/Devel/Cover/Test.pm line 304.
# +----+------------------------------------------------------------+-------------------------------------------------------------+
# | Elt|Got                                                         |Expected                                                     |
# +----+------------------------------------------------------------+-------------------------------------------------------------+
# * 117|  '19           100      3      6      1      2   $y ^^ $z  |  '19           100      3      6      1      2   $y xor $z  *
# +----+------------------------------------------------------------+-------------------------------------------------------------+
# * 119|  '21    ***     50      9      3      0      0   $i ^^ $y  |  '21    ***     50      9      3      0      0   $i xor $y  *
# +----+------------------------------------------------------------+-------------------------------------------------------------+
# * 121|  '22    ***     50      0      0      9      3   $j ^^ $y  |  '22    ***     50      0      0      9      3   $j xor $y  *
# +----+------------------------------------------------------------+-------------------------------------------------------------+
# Looks like you failed 1 test of 1.
t/e2e/acond_xor.t .................. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Not surprisingly, bisection pointed to this commit:

commit c844eac5926d1efbdfbf2e8bcc3989ba6a6aee50
Author:     Lukas Mai <[email protected]>
AuthorDate: Fri May 24 00:34:53 2024
Commit:     Lukas Mai <[email protected]>
CommitDate: Wed Jul 10 23:44:57 2024

    B::Deparse: teach Deparse about ^^ (high-precedence xor)

@mauke, can you investigate and/or discuss with @pjcj? Thanks.

@pjcj
Copy link
Contributor

pjcj commented Jul 29, 2024

Thanks Jim! I thought I had already created a Devel::Cover ticket for this but it looks like I only thought I should rather than actually doing it :)

My initial suspicion was that this would be a Devel::Cover problem due to not having the complete context when deparsing a section of the optree. I'll look further into it to make sure it's not a perl problem, but I'd be quite surprised if it was.

And I'll make sure Devel::Cover is fixed before 5.42.

@jkeenan
Copy link
Contributor Author

jkeenan commented Mar 13, 2025

Still failing as of v5.41.9-77-g28aeb4ecd4 (Mar 12 2025).

@pjcj
Copy link
Contributor

pjcj commented May 2, 2025

And now it should be fixed. Thanks for keeping track, Jim!

@jkeenan
Copy link
Contributor Author

jkeenan commented May 2, 2025

And now it should be fixed. Thanks for keeping track, Jim!

Confirmed: http://fast-matrix.cpantesters.org/?dist=Devel-Cover. Thanks.

@jkeenan jkeenan closed this as completed May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BBC Blead Breaks CPAN - changes in blead broke a cpan module(s)
Projects
None yet
Development

No branches or pull requests

2 participants