Skip to content

all, cmd/internal/moddeps: tree is inconsistent state and tests aren't reporting it #46254

Closed
@dmitshur

Description

@dmitshur

There are a few mild but unexpected inconsistencies in the tree at tip (commit 15a374d as of this posting):

Tests in cmd/internal/moddeps exist to catch this type of skew, yet longtest builders are green and these tests are passing locally:

$ gotip version
go version devel go1.17-15a374d5c Wed May 19 01:09:20 2021 +0000 darwin/amd64
$ gotip test cmd/internal/moddeps
ok  	cmd/internal/moddeps	1.045s

This is due to a recent bug in findGorootModules causing no modules to be found (similar to #46027), and therefore no modules to be tested:

$ gotip test -v cmd/internal/moddeps
=== RUN   TestAllDependencies
--- PASS: TestAllDependencies (0.38s)
=== RUN   TestDependencyVersionsConsistent
--- PASS: TestDependencyVersionsConsistent (0.00s)
PASS
ok  	cmd/internal/moddeps	0.494s

(Note no subtests run.)

I'll send a CL to fix the bug, add a safety check that at very least well-known modules are found, and get the tree into a tidy state again.

CC @golang/release, @bcmills, @findleyr, @FiloSottile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.SoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions