Skip to content

Run snapshot class tests separately from other tests #966

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

Merged
merged 1 commit into from
May 3, 2022

Conversation

mattcary
Copy link
Contributor

Running all snapshot classes with all storage class is causing timeouts. Running the snapshot tests with just one storageclass does not substantially reduce the test coverage.

/kind failing-test

None

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 27, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattcary

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 27, 2022
@mattcary
Copy link
Contributor Author

/hold

I'll want to examine the CI test run to make sure it's working as expected.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 27, 2022
@mattcary
Copy link
Contributor Author

Still timing out, will have to see what's getting run

@mattcary
Copy link
Contributor Author

I don't understand ginkgo focus very well I guess; I think we have to basically ignore the passed in focus if there is a snapshot class given and use the volume snapshot feature. I'll have to double-check that's what we want here.

@mattcary
Copy link
Contributor Author

mattcary commented May 2, 2022

/hold cancel

finally it looks right! @leiyiz can you take a look & lgtm?

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 2, 2022
@mattcary
Copy link
Contributor Author

mattcary commented May 3, 2022

/assign @leiyiz


focus := testParams.testFocus
skip := testParams.testSkip
if testParams.snapshotClassFile == "" && !strings.Contains(skip, "VolumeSnapshotDataSource") {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think if the snapshotClassFile is not set, the k/k integration framework would not run snapshot tests? is that not the case

@leiyiz
Copy link
Contributor

leiyiz commented May 3, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 3, 2022
@k8s-ci-robot k8s-ci-robot merged commit 445028f into kubernetes-sigs:master May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants