-
-
Notifications
You must be signed in to change notification settings - Fork 660
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
Fix coverage files combining #552
Conversation
Thanks for the PR. Is there a test we can write to get coverage of this? |
b362ffb
to
5a32eb8
Compare
Yeah sure, I will add an integration test. |
@williammartin I am wondering why the test on go 1.9 fails. Could it be possible that it is the case because the travis machine still installs from I guess for integration testing of forks the binary needs to be built locally, right? |
Any updates on when this will be fixed/merged? |
I can reproduce this failure on go 1.10.7 by focussing the changed spec. Will keep digging. |
@williammartin Is there anything I can do here? I guess the failing pipeline is related to the go fetch source... |
Well, I was just having a look at the contents of this file: https://github.com/onsi/ginkgo/pull/552/files#diff-28605e74bddc91d19789edefa99640b8R121 And indeed, in 1.10 it looks like this:
and in 1.11:
Something funny in 1.10 is resulting in keeping the duplicate |
For some reason the coverage file in Go 1.10 has https://github.com/onsi/ginkgo/blob/master/ginkgo/run_command.go#L166 |
I must say this makes me not happy. So do we have to add a hack-around for go 1.10/11? |
I don't fully understand what is causing the difference yet. Ideally I'd like to reproduce a simple case of this behaviour without ginkgo to ensure I understand where the difference is and what the behaviour is. |
Hi, any update on this issue ? |
Looking forward to merging it |
I do not have the time to look at this issue right now (sorry for the lack of communication), if we want to merge this soon, I'll need help debugging the failing builds. Thanks! |
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
5a32eb8
to
b07917b
Compare
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
b07917b
to
5db67d9
Compare
os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0666) | ||
combined, err := os.OpenFile( | ||
filepath.Join(path, r.getCoverprofile()), | ||
os.O_WRONLY|os.O_CREATE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the go 1.10 bug by removing os.O_APPEND
Rebased on top of the latest master and applied a fix for the go1.10 issue. |
LGTM thanks |
Hey, this enhancement should fix #518.