Skip to content
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

support skipping tests by labels, assessment and feature name #48

Merged
merged 3 commits into from Oct 13, 2021

Conversation

ShwethaKumbla
Copy link
Member

This PR introduces --skip-labels and --skip-features flags for tests.

Fix for : #25

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Aug 29, 2021
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 29, 2021
@ShwethaKumbla
Copy link
Member Author

/retest

@ShwethaKumbla ShwethaKumbla force-pushed the skip-label branch 2 times, most recently from 74ef030 to a135fa9 Compare September 15, 2021 10:52
@ShwethaKumbla ShwethaKumbla changed the title [WIP] support skipping tests by labels and feature name support skipping tests by labels, assessment and feature name Sep 15, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 15, 2021
@ShwethaKumbla
Copy link
Member Author

/cc @vladimirvivien

Copy link
Contributor

@vladimirvivien vladimirvivien left a comment

Choose a reason for hiding this comment

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

This looks awesome @ShwethaKumbla
Please update the ./examples to actually use the skip functionality as additional test.

@ShwethaKumbla
Copy link
Member Author

/test pull-e2e-framework-test

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 8, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 11, 2021
@ShwethaKumbla ShwethaKumbla changed the title support skipping tests by labels, assessment and feature name [WIP]support skipping tests by labels, assessment and feature name Oct 11, 2021
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 11, 2021
@ShwethaKumbla ShwethaKumbla force-pushed the skip-label branch 3 times, most recently from f275d6e to 0c6ade9 Compare October 13, 2021 13:29
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 13, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 13, 2021
@ShwethaKumbla ShwethaKumbla changed the title [WIP]support skipping tests by labels, assessment and feature name support skipping tests by labels, assessment and feature name Oct 13, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 13, 2021
@ShwethaKumbla
Copy link
Member Author

/test pull-e2e-framework-test

2 similar comments
@ShwethaKumbla
Copy link
Member Author

/test pull-e2e-framework-test

@ShwethaKumbla
Copy link
Member Author

/test pull-e2e-framework-test

Copy link
Contributor

@vladimirvivien vladimirvivien left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -80,3 +80,21 @@ func TestWithFlags(t *testing.T) {

test.Test(t, f.Feature())
}

func TestWithSkipFlags(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you have examples/skip_flags you could omit this test.
Your call.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ShwethaKumbla, vladimirvivien

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 lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 13, 2021
@k8s-ci-robot k8s-ci-robot merged commit 9bfc131 into kubernetes-sigs:main Oct 13, 2021
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants