-
Notifications
You must be signed in to change notification settings - Fork 819
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
Add fuzz tests missing vendor changes #1306
Conversation
I am not sure how it was working before, but I assume there were local changes that never got pushed? Or I am missing something. |
Build Succeeded 👏 Build Id: 7d2a9b1a-3b13-4fb3-bbe2-be0389950ea8 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
/assign @aLekSer |
@roberthbailey We have all this files in a
|
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.
We have all the files in a ./vendor/ directory, I can run diff
for all that files. It seems that we could skip this PR as files are already in the repo.
Found a diff in roundtrip.go file, I will check the versions, which you are adding and which was added to
|
If I understand correctly vendor_fixes/k8s.io/apimachinery replaces vendor/k8s.io/apimachinery: https://github.com/googleforgames/agones/blob/master/go.mod#L61 So we should have a copy of apitesting in vendor_fixes, correct? |
First of all, I think we should approve this PR with the requirement to copy those files to
Second is that statement taken from Go cmd tips. It states that with go test -mod=vendor we stop using network and mod cache and begin to use
|
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.
Left some comments, but overall I am waiting when we would remove vendor_fixes
which are confusing.
@@ -0,0 +1,415 @@ | |||
/* |
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.
Please add this and other files to a vendor
directory as well. This file has diff with what I have added to vendor
. Please use the version which is taken from k8s.io/apimachinery v0.0.0-20191004074956-01f8b7d1121a
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.
I am not sure if I understand this comment. Are you saying apimachinary copy in vendor is not the same as the version specified in mod?
When I run go mod vendor
roundtrip.go doesn't change. However, there are other changes:
deleted: vendor/github.com/google/btree/btree_mem.go
deleted: vendor/golang.org/x/sys/unix/mkasm_darwin.go
deleted: vendor/golang.org/x/sys/unix/mkpost.go
deleted: vendor/golang.org/x/sys/unix/mksyscall.go
deleted: vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.go
deleted: vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.go
deleted: vendor/golang.org/x/sys/unix/mksyscall_solaris.go
deleted: vendor/golang.org/x/sys/unix/mksysnum.go
deleted: vendor/golang.org/x/sys/unix/types_aix.go
deleted: vendor/golang.org/x/sys/unix/types_darwin.go
deleted: vendor/golang.org/x/sys/unix/types_dragonfly.go
deleted: vendor/golang.org/x/sys/unix/types_freebsd.go
deleted: vendor/golang.org/x/sys/unix/types_netbsd.go
deleted: vendor/golang.org/x/sys/unix/types_openbsd.go
deleted: vendor/golang.org/x/sys/unix/types_solaris.go
deleted: vendor/golang.org/x/text/unicode/bidi/gen.go
deleted: vendor/golang.org/x/text/unicode/bidi/gen_ranges.go
deleted: vendor/golang.org/x/text/unicode/bidi/gen_trieval.go
deleted: vendor/golang.org/x/text/unicode/norm/maketables.go
deleted: vendor/golang.org/x/text/unicode/norm/triegen.go
deleted: vendor/golang.org/x/text/width/gen.go
deleted: vendor/golang.org/x/text/width/gen_common.go
deleted: vendor/golang.org/x/text/width/gen_trieval.go
deleted: vendor/golang.org/x/tools/go/gcexportdata/main.go
deleted: vendor/golang.org/x/tools/imports/mkindex.go
deleted: vendor/golang.org/x/tools/imports/mkstdlib.go
deleted: vendor/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz_test.go
deleted: vendor/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go
deleted: vendor/k8s.io/apimachinery/pkg/api/validation/path/name.go
deleted: vendor/k8s.io/apimachinery/pkg/api/validation/path/name_test.go
deleted: vendor/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go
I mean difference between vendor and vendor_fixes for apimachinery they should be equal. Thought |
Exactly, with this PR vendor_fix has the copy of required files for round trip fuzz testing from vendor. The vendor is based on |
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.
Verified the diff between vendor/k8s.io/apimachinery
directory and vendor_fixes
one. Now I see that they contains equal files, except for an absence of go.mod
file in vendor/k8s.io/apimachinery
.
One more thing I have found is:
With no directory in the path |
Good find. There is no k8s.io/apimachinery/pkg/util/httpstream to copy over. We need to upgrade apimachinery. I created this issue #1309 to track that. |
Build Succeeded 👏 Build Id: a6811577-98d1-486e-b04b-4e5366e99bf3 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
I verified that there are no diffs between any of the files added here to vendor_fixes from the contents of the files in the vendor directory, so I'm going to merge this to unblock @pooneh-m from testing and debugging. We can fix the go mod tidy
issues in a follow-up PR.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aLekSer, pooneh-m, roberthbailey The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
vendor_fixes is missing fuzz testing dependencies.
#1098