-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
E2E usability updates #7353
E2E usability updates #7353
Conversation
b0e615e
to
84c5dbd
Compare
GOBIN
so Makefile don't modify $PATH on go install
/kind changelog-not-required |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7353 +/- ##
=======================================
Coverage 61.65% 61.65%
=======================================
Files 262 262
Lines 28479 28479
=======================================
Hits 17558 17558
Misses 9689 9689
Partials 1232 1232 ☔ View full report in Codecov by Sentry. |
@danfengliu lmk if there is any problematic changes here. I can also split into smaller PRs if required. |
@kaovilai I will run nightly against this PR, it seems no need to split it for now. |
Hi @kaovilai , there're some cross parts with this PR 7292, so if this PR is merged first ( nightly CI has support IRSA, so I prefer to have PR 7292 go first, sorry for letting you wait for this), you might need to rebase main branch and solve some conflicts. And please help to review my PR, we're going to cover IRSA in nightly test. |
Sounds good |
test/perf/Makefile
Outdated
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.
maybe for another PR, but can't test/e2e/Makefile
and test/perf/Makefile
be merged to avoid duplication?
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.
@qiuming-best , please help to provide your thought on this question, is there any block things from merging these 2 Makefile?
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.
Yes, maybe it could be merged into one, but may be more confusing to use.
I originally set the performance Makefile apart from the e2e Makefile for both tests, which all need lots of input parameters, and also both of them have some unique parameters. To not confuse I make them independent.
.github/workflows/e2e-test-kind.yaml
Outdated
focus: | ||
# tests to focus on, use `|` to concatenate multiple regexes to run on the same job | ||
- Basic\]\[ClusterResource | ||
- Basic\]\[StorageClass | ||
- PrivilegesMgmt\]\[SSR|ResourceModifier | ||
- ResourceFiltering | ||
- NamespaceMapping\]\[Single\]\[Restic|NamespaceMapping\]\[Multiple\]\[Restic |
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.
Adding more coverage to the PR e2e
Logic in line 78~88 should be moved to here, because this logic only triggered by function VeleroInstall , but most of tests will not install Velero if it’s not needed or Velero instance exists by previous test. so objectStoreProvider might not be set in these tests. For example in backup deletion test, veleroCfg was set to the initial empty value here. |
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
test/util/velero/install.go
Outdated
args = append(args, "--features", options.Features) | ||
if strings.EqualFold(options.Features, FeatureCSI) && options.UseVolumeSnapshots { | ||
if strings.EqualFold(cloudProvider, "azure") { | ||
if strings.EqualFold(cloudProvider, "azure") { |
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.
if strings.EqualFold(cloudProvider, "azure") { | |
if len(options.Features) > 0 { | |
args = append(args, "--features", options.Features) | |
if strings.EqualFold(options.Features, FeatureCSI) && options.UseVolumeSnapshots && | |
strings.EqualFold(cloudProvider, "azure") { | |
fmt.Println("Start to install Azure VolumeSnapshotClass ...") | |
if err := KubectlApplyByFile(ctx, "../util/csi/AzureVolumeSnapshotClass.yaml"); err != nil { | |
return err |
If options.Features is not empty, arg --features must be set with that value no matter what provider it is.
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.
Current code blocked data mover pipeline due to args --features
is missing.
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.
ack
Sorry I also made a mistake, after re-running nightly against your latest code, test failed due to missing |
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
…th resolving when cloud credentials is prefixed by `~` for home dir Use `~/.docker/config.json` if REGISTRY_CREDENTIAL_FILE not defined and skip step if does not exists since it is optional Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Set `GOBIN` so Makefile don't modify $PATH on `go install` Fix realPath resolving when cloud credentials is prefixed by `~` for home dir Use `~/.docker/config.json` if REGISTRY_CREDENTIAL_FILE not defined and skip step if does not exists since it is optional Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Add kind testdata storageclass Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Add kind testdata storageclass Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> log `Start to install Azure VolumeSnapshotClass ...` only on azure when csi is enabled Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Add BSL_CONFIG example and notes Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Makefile: Set `GOBIN` for `_output/...` Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> README spacing Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> StandbyClusterObjectStoreProvider typo Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Specify velero namespace during get/delete command Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Use object stores rather than cloudProvider for bucket queries Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Remove debug print Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> simplify NS get changes, add velero NS to `DeleteBackupResource` Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Skip file system backups on kind which uses hostPath volumes Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Add StorageClass change test to PR kind e2e Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Add more tests to pr Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Add NS mapping to PR e2e Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Add `SKIP_KIND` to some jobs containing volumes Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Remove kind from kibishii tests Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Label volume resource policies as restic, skip restic/snapshot tests, add more tests Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> TTLTest is a snapshot test Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Remove non working tests Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Resolve vmware-tanzu#7353 (comment) Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> address https://github.com/vmware-tanzu/velero/pull/7353/files#r1477218762 Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com> Address vmware-tanzu#7353 (comment) Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
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.
LGTM
~
for home dir~/.config/velero/config.json
Signed-off-by: Tiger Kaovilai tkaovila@redhat.com
Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
Fixes #(issue)
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.Changes to make e2e tests work in my local env with kind cluster