Skip to content
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

Intermitent problems with some builds #1951

Closed
JJ opened this issue Apr 22, 2018 · 28 comments
Closed

Intermitent problems with some builds #1951

JJ opened this issue Apr 22, 2018 · 28 comments
Labels
bug Error of some kind, from a typo to errors in the examples. meta RFCs, general discussion, writing style, repository organization, etc.

Comments

@JJ
Copy link
Contributor

JJ commented Apr 22, 2018

The problem

From time to time, builds fail with error of this type

 xt/examples-compilation.t STDERR: Use of uninitialized value $repo-id of type Any in string context.
# Methods .^name, .perl, .gist, or .say can be used to stringi
# xt/examples-compilation.t STDERR: fy it to something meaningful.
# 
t/pod-valid.t ........ 340/347 # xt/examples-compilation.t STDERR:   in any statement_control at /tmp/whateverable/rakudo-moar/a138dcf50df2b2bf571db96dc14d2ea3e81e8522/share/nqp/lib/Perl6/Grammar.moarvm line 1
# Use of uninitialized value $repo-id of type Any in string context.
# Methods .^name, .perl, .gist, or .say can be 
# xt/examples-compilation.t STDERR: used to stringify it to something meaningful.
#   in any statement_control at /tmp/whateverable/rakudo-moar/a138dcf50df2b2bf571db96dc14d2ea3e81e8522/share/nqp/lib/Perl6/Grammar.moarvm line 1
# 
# Failed test 'xt/examples-compilation.t has clean POD6'

I happens in all tests, in all binaries, be it Docker file, packages or HEAD binary.

Suggestions

Since there is another build running in parallel, it's not too important, but the fact that it consistently fails in the same place, although intermitently, might indicate some problem of some sort there.

@JJ JJ added meta RFCs, general discussion, writing style, repository organization, etc. JJ TPF Grant labels Apr 22, 2018
@AlexDaniel
Copy link
Member

Hmmm…

@JJ
Copy link
Contributor Author

JJ commented Apr 22, 2018

It's really intermitent. No actual changes to code or pods, and how it passes

JJ added a commit that referenced this issue Apr 22, 2018
And I think this closes #1946. We can later transfer this to Travis,
over all if the binary version keeps failing as it does now (reported
in #1951)
@JJ
Copy link
Contributor Author

JJ commented Apr 23, 2018

I times out sometimes... https://travis-ci.org/perl6/doc/jobs/370171158

@JJ
Copy link
Contributor Author

JJ commented Apr 26, 2018

screenshot from 2018-04-26 07 42 38
It can be any of the two environments, although it happens more often in the binary version. It happens ~ test 337 in pod-valid.t, that is, towards the end... Could it be a memory issue with MoarVM?

@JJ
Copy link
Contributor Author

JJ commented Apr 26, 2018

@AlexDaniel could it be a memory issue?

@JJ
Copy link
Contributor Author

JJ commented Apr 26, 2018

$repo-id is definitely part of CompUnit, possibly PrecompilationRepository. So could this be fixed by #1952?

@AlexDaniel
Copy link
Member

Which file is it failing on? Maybe that single test in a loop and see what happens.

@JJ
Copy link
Contributor Author

JJ commented Apr 26, 2018 via email

@AlexDaniel
Copy link
Member

OK well, take any single one of them and run it in a loop. If you can reproduce it alone like that, then please rakudobug it.

@JJ
Copy link
Contributor Author

JJ commented Apr 26, 2018 via email

JJ added a commit that referenced this issue Apr 29, 2018
Closes #1966. It might also help #1951. Or at least help debug it.
@JJ
Copy link
Contributor Author

JJ commented May 1, 2018

They seem to happen in shippable too. Same kind of error, same number of files.

@JJ JJ closed this as completed in b781985 May 4, 2018
@JJ JJ added this to the May SQUASHathon milestone May 4, 2018
@JJ JJ reopened this May 6, 2018
@JJ
Copy link
Contributor Author

JJ commented May 6, 2018

It's less frequent, but still happens. Sometimes it just hangs, too.

@JJ
Copy link
Contributor Author

JJ commented May 6, 2018

Come to think of it, we should just eliminate testing the .t files. They are not part of the documentation, and if they are, well, there is all the stuff in ./lib that should be tested too. Invalid pod will simply be invalid Perl 6 if I'm not wrong, so the .t will simply yleld an error.

@JJ
Copy link
Contributor Author

JJ commented May 6, 2018

Right, we will have something like this:

===SORRY!=== Error while compiling /home/jmerelo/Code/forks/perl6/doc/t/02-pod-valid.t
Preceding context expects a term, but found infix = instead.
Did you make a mistake in Pod syntax?
at /home/jmerelo/Code/forks/perl6/doc/t/02-pod-valid.t:52

if there's an error somewhere in the Pod. There will be warnings if there's an error of another type, so unless it's really essential to test the pod content in the tests, I would eliminate them from this test. It will make tests faster, too.

@JJ JJ removed this from the May SQUASHathon milestone May 6, 2018
@coke
Copy link
Collaborator

coke commented May 6, 2018

I would much rather we fix the underlying issue than not run the test.

@JJ
Copy link
Contributor Author

JJ commented May 6, 2018

The underlying issue is probably somewhere deep in Rakudo, either on the threading or the CompUnit code. And I'm not saying we don't run the test; I say we keep running it where it makes sense, in the .pod6 files.

@JJ
Copy link
Contributor Author

JJ commented May 7, 2018

We could make different tests for the tests themselves, if testing the tests is an issue. Not only valid pod, but also some other stuff.

@JJ
Copy link
Contributor Author

JJ commented May 7, 2018

Now it's showing up in installation of modules too

@JJ
Copy link
Contributor Author

JJ commented May 9, 2018

Now this is weird:

An operation first awaited:
  in sub process-pod-dir at htmlify.p6 line 269
  in sub MAIN at htmlify.p6 line 200
  in block <unit> at htmlify.p6 line 1006
Died with the exception:
    ctxlexpad needs an MVMContext
      in sub extract-pod at /home/travis/build/perl6/doc/lib/Pod/Convenience.pm6 (Pod::Convenience) line 131
      in block  at htmlify.p6 line 264

Seen here

@AlexDaniel
Copy link
Member

Rakudobug: rakudo/rakudo#1810

@JJ JJ closed this as completed in 014c7e6 May 13, 2018
@JJ
Copy link
Contributor Author

JJ commented May 19, 2018

Errors came back. Now in a completely different test.

@JJ JJ reopened this May 19, 2018
@JJ JJ added the build label May 19, 2018
@JJ JJ added the bug Error of some kind, from a typo to errors in the examples. label Jan 2, 2019
@JJ
Copy link
Contributor Author

JJ commented Feb 14, 2019

There have been no errors for some time now: check the Travis history Could this have fixed itself?

@JJ JJ closed this as completed in 257ca26 Feb 14, 2019
@JJ
Copy link
Contributor Author

JJ commented Feb 16, 2019

Well, no, they are back

@JJ JJ reopened this Feb 16, 2019
@JJ
Copy link
Contributor Author

JJ commented Feb 26, 2019

The intermitent error now says there's an error in r.moarvm: https://travis-ci.org/perl6/doc/jobs/498560848

@JJ
Copy link
Contributor Author

JJ commented Jun 12, 2019

This is the last time it happened, 4 months ago. Since we don't really know what causes it, we'll wait for a while before closing it. Besides, it's happening also in shippable

@nkh
Copy link
Contributor

nkh commented Jun 20, 2019

I get this problem quite often.

it's difficult to reproduce but it seems to happen often when I switch branches.

I get error:
Cannot iterate over a VMNull type object
in method get_dump_lines at ....

re-running the test always succeeds.

Another way to always succeed is to remove the .precompiled directory so it may be cache related.

This is Rakudo version 2019.03.1-616-g6565810f5 built on MoarVM version 2019.05-53-gcce71cdbf
implementing Perl 6.d.

@coke
Copy link
Collaborator

coke commented Oct 31, 2020

May be related to #3466

@JJ
Copy link
Contributor Author

JJ commented Nov 1, 2020

Don't think so. Comes from way before we even started to use Pod::Cache.

@JJ JJ closed this as completed in dead9ec Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error of some kind, from a typo to errors in the examples. meta RFCs, general discussion, writing style, repository organization, etc.
Projects
None yet
Development

No branches or pull requests

4 participants