Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep/gps/pkgtree: test failure #520

Closed
dcheney-atlassian opened this issue May 5, 2017 · 6 comments
Closed

dep/gps/pkgtree: test failure #520

dcheney-atlassian opened this issue May 5, 2017 · 6 comments

Comments

@dcheney-atlassian
Copy link

deadwood(~) % go test github.com/golang/dep/gps/pkgtree
--- FAIL: TestListPackages (0.00s)
    --- FAIL: TestListPackages/malformed_go_file (0.00s)
        pkgtree_test.go:1320: Did not get expected PackageOrErrs:
                        (GOT): pkgtree.PackageTree{ImportRoot:"bad", Packages:map[string]pkgtree.PackageOrErr{"bad":pkgtree.PackageOrErr{P:pkgtree.Package{Name:"", ImportPath:"", CommentPath:"", Imports:[]string(nil), TestImports:[]string(nil)}, Err:scanner.ErrorList{(*scanner.Error)(0xc420183640)}}}}
                        (WNT): pkgtree.PackageTree{ImportRoot:"bad", Packages:map[string]pkgtree.PackageOrErr{"bad":pkgtree.PackageOrErr{P:pkgtree.Package{Name:"", ImportPath:"", CommentPath:"", Imports:[]string(nil), TestImports:[]string(nil)}, Err:scanner.ErrorList{(*scanner.Error)(0xc420182140)}}}}
FAIL
FAIL    github.com/golang/dep/gps/pkgtree       0.007s
% go version
go version devel +507f4d5 Fri May 5 01:00:11 2017 +0000 linux/amd64
@sdboyer
Copy link
Member

sdboyer commented May 5, 2017

yeah ty - i just noticed this, and am super-confused about how it snuck by our CI

@sdboyer sdboyer closed this as completed in fd8d0c4 May 5, 2017
@krisnova
Copy link
Contributor

krisnova commented May 5, 2017

good point

I know we had to work on other tests in this package to get gps into dep.. hrmmm 🤔

Is this intermittent or constant? Just curious 😁

@krisnova
Copy link
Contributor

krisnova commented May 5, 2017

Ah just kidding - Sam already found it 😁

@sdboyer
Copy link
Member

sdboyer commented May 5, 2017

it's still super, super weird that it made it past CI, as this was a consistent error owing to...ugh...a super brittle test that got cranky when the license header changed file offsets. it should've been complaining immediately.

makes me not trust travis. 😢

@davecheney
Copy link
Contributor

davecheney commented May 5, 2017 via email

@sdboyer
Copy link
Member

sdboyer commented May 5, 2017

...lol, it was right in front of me and i didn't read it. maybe it's time to go to sleep 😄

ibrasho pushed a commit to ibrasho-forks/dep that referenced this issue May 10, 2017
This is a horribly brittle test, being that it was broken by the
addition of a license header. Fixes golang#520
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants