-
Notifications
You must be signed in to change notification settings - Fork 159
Use the compiled kubernetes binaries in the e2e tests in CI #893
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
Use the compiled kubernetes binaries in the e2e tests in CI #893
Conversation
test/k8s-integration/main.go
Outdated
// the kubernetes binaries should've already been built above | ||
// or by the user if --localK8sDir was set, these binaries should be copied to the | ||
// path sent to kubetest2 through its --artifacts path | ||
klog.Infof("Copying kubernetes binaries to path=%s to run the tests", kubetestDumpDir) |
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.
kubetestdumpDir may be empty, in that case maybe it would be better to set it to ./? (and will it work in this case, or have we implicitly assumed an artifactsDir if we're testing master?)
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.
thanks for catching this, I saw that if we don't set --artifacts
then kubetest2 assumes that it's ./_artifacts
, from its help:
Flags:
--artifacts string top-level directory to put artifacts under for each kubetest2 run, defaulting to "${ARTIFACTS:-./_artifacts}". If using the ginkgo tester, this must be an absolute path. (default "/usr/local/google/home/mauriciopoppe/go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/_artifacts")
I modified it to be that path if kubetestdumpDir
is empty
Looks like something is awry with the directories or copying? The relevant integration test error I think is this:
|
I see that the problem is that |
8cbd8c5
to
228bea0
Compare
@mattcary I'm using the |
When in doubt of kubetest2 add more flags I guess... :-P /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattcary, mauriciopoppe 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
When the kubetest2 flags are created it'll detect if we're trying to run the e2e test from master, if so then it'll assume that the cluster was created by compiling a kubernetes release or kubernetes master and that the binaries to use in the e2e tests should be the ones generated during the compilation.
Which issue(s) this PR fixes:
Might help #892
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
/cc @mattcary @jingxu97