Skip to content

stdlib-sourcelinks-test is failing on CI #13196

Closed
@griggt

Description

@griggt

See https://github.com/lampepfl/dotty/runs/3179654611?check_suite_focus=true#step:4:1008

Error:  Test dotty.tools.scaladoc.sourcelinks.RemoteLinksTest.runTest failed: Expected to find ScalaWholeNumberProxy at https://github.com/scala/scala/blob/v2.13.6/src/library/scala/runtime/ScalaNumberProxy.scala at lines 57-573, took 5.304 sec
Error:  Failed: Total 4, Failed 1, Errors 0, Passed 3
Error:  Failed tests:
Error:  	dotty.tools.scaladoc.sourcelinks.RemoteLinksTest

running sbt scaladoc/sourceLinksIntegrationTest:test from the newest master (pulled a few minutes ago) locally succeeds with no error, whereas on GitHub it failed.

The members that are tested are selected at random, and the random number generator on CI seems to produce a different sequence for the same seed than is produced locally. For me locally, IntegralProxy is selected from ScalaNumberProxy.scala, whereas on CI, ScalaWholeNumberProxy is selected.

Neither of these seems to be correctly linked in the current API docs.
IntegralProxy links to L60 when I think it should link to L55.
ScalaWholeNumberProxy links to L57 instead of L52.

Also, there is a bug in the test which is causing it to be more lenient than it should be:

https://github.com/lampepfl/dotty/blob/d7d70c06ecdc0d5c5a40fab75beaf265992a865b/scaladoc/test-source-links/dotty/tools/scaladoc/source-links/RemoteLinksTest.scala#L46-L48

Here, expectedLine is of type String

Originally posted by @griggt in #13180 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions