Skip to content

Fix skipping test that requires root issue#19

Closed
chenrui333 wants to merge 2 commits intocontainerd:masterfrom
chenrui333:fix-go-test-issue
Closed

Fix skipping test that requires root issue#19
chenrui333 wants to merge 2 commits intocontainerd:masterfrom
chenrui333:fix-go-test-issue

Conversation

@chenrui333
Copy link
Contributor

@chenrui333 chenrui333 commented Jan 6, 2020

@chenrui333 chenrui333 mentioned this pull request Jan 6, 2020
@AkihiroSuda
Copy link
Member

ping @chenrui333

@chenrui333
Copy link
Contributor Author

Thanks the reminder, picking it up now.

@AkihiroSuda
Copy link
Member

CI still failing. maybe go test -exec sudo works.

@AkihiroSuda
Copy link
Member

Also, don't drop -test.root -test.v

@chenrui333
Copy link
Contributor Author

I am going to spin up a new repo and test it separately.
https://travis-ci.com/chenrui333/aufs-test

@chenrui333
Copy link
Contributor Author

Looks like travis does not have debug mode by default for public repo, I have to switch to company private repo to debug the build.

@chenrui333
Copy link
Contributor Author

@fuweid @AkihiroSuda should be good now, thanks for the help!

Signed-off-by: Rui Chen <chenrui333@gmail.com>
@codecov-io
Copy link

codecov-io commented Jan 20, 2020

Codecov Report

Merging #19 into master will increase coverage by 54.35%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #19       +/-   ##
===========================================
+ Coverage    1.65%   56.01%   +54.35%     
===========================================
  Files           1        1               
  Lines         241      241               
===========================================
+ Hits            4      135      +131     
+ Misses        236       72      -164     
- Partials        1       34       +33
Impacted Files Coverage Δ
aufs.go 56.01% <0%> (+54.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76944a9...be60dea. Read the comment docs.

- DCO_VERBOSITY=-q ../project/script/validate/dco
- ../project/script/validate/fileheader ../project/
- go test -v -race -covermode=atomic -coverprofile=coverage.txt ./...
- sudo $GOROOT/bin/go test -test.root -test.v -race -covermode=atomic -coverprofile=coverage.txt ./...
Copy link
Contributor Author

@chenrui333 chenrui333 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried to use export PATH=$GOROOT/bin:$PATH, seems not quite work out. Let me know if you guys prefer to have a comment for this line as well.

Copy link
Contributor Author

@chenrui333 chenrui333 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

travis@travis-job-f1c1eeb9-d213-4c5b-bd66-aa15232af65a:~/gopath/src/github.com/meetup/aufs-test$ export PATH=$GOROOT/bin:$PATH
travis@travis-job-f1c1eeb9-d213-4c5b-bd66-aa15232af65a:~/gopath/src/github.com/meetup/aufs-test$ sudo go test -test.root -test.v -race -covermode=atomic -coverprofile=coverage.txt ./...
sudo: go: command not found

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not simply use go test -c as in former revisions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we have sudo: go: command not found issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So previous version didn't have that issue because we don't need sudo go for go test -c

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
@AkihiroSuda
Copy link
Member

ping @chenrui333

@AkihiroSuda
Copy link
Member

We are switching away from Travis (#25), so closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants