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

Restructure IngressClass e2e tests for potential Conformance bump #92147

Closed
1 of 6 tasks
cmluciano opened this issue Jun 15, 2020 · 17 comments
Closed
1 of 6 tasks

Restructure IngressClass e2e tests for potential Conformance bump #92147

cmluciano opened this issue Jun 15, 2020 · 17 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/network Categorizes an issue or PR as relevant to SIG Network.

Comments

@cmluciano
Copy link

cmluciano commented Jun 15, 2020

What happened:

The existing ingressclass make assumptions about no default ingressclass being present and they should be run in Serial mode.

What you expected to happen:

These tests should be refactored to not make assumptions about the cluster state, so that they can be added to the conformance suite for IngressClass.

J Liggitt suggests the following changes need to happen:

How to reproduce it (as minimally and precisely as possible):

Run the tests in an existing cluster with similar ingressclass names, an existing default ingressclass, or in a random order.

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): v1.18
  • Cloud provider or hardware configuration: N/A
  • OS (e.g: cat /etc/os-release): N/A
  • Kernel (e.g. uname -a): N/A
  • Install tools: N/A
  • Network plugin and version (if this is a network-related bug): N/A
  • Others:
@cmluciano cmluciano added the kind/bug Categorizes issue or PR as related to a bug. label Jun 15, 2020
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Jun 15, 2020
@cmluciano
Copy link
Author

/sig network
/assign @cmluciano

@k8s-ci-robot k8s-ci-robot added sig/network Categorizes an issue or PR as relevant to SIG Network. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jun 15, 2020
@athenabot
Copy link

/triage unresolved

Comment /remove-triage unresolved when the issue is assessed and confirmed.

🤖 I am a bot run by vllry. 👩‍🔬

@k8s-ci-robot k8s-ci-robot added the triage/unresolved Indicates an issue that can not or will not be resolved. label Jun 15, 2020
@cmluciano
Copy link
Author

/remove-triage unresolved

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 14, 2020
@cmluciano
Copy link
Author

Related to #93427

@kolyshkin
Copy link
Contributor

This bug is still there even after #93427, we occasionally see it in cri-o tests (see e.g. cri-o/cri-o#4253).

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 12, 2020
@cmluciano
Copy link
Author

@liggitt Do we have precedent for these type of defaulting e2e tests? Is it sufficient to just check if a default exists already and only then try to create one?

@liggitt
Copy link
Member

liggitt commented Oct 13, 2020

I'm not sure... I don't see storageclasses, or priorityclasses creating defaulting objects in e2e tests

I don't see anything testing priorityclass defaulting in e2e tests

Apps and Storage have e2e tests (but not conformance tests) that depend on a default storageclass existing, and skip them if none exists: https://github.com/kubernetes/kubernetes/blob/release-1.19/test/e2e/framework/pv/pv.go#L821-L827

@cmluciano
Copy link
Author

@robscott Do you have any thoughts about not creating the defaults for e2e tests and just skipping if don't exist?

@robscott
Copy link
Member

I'd discussed this a bit with @cmluciano on Slack today but just realized I never followed up here. I think these tests are still valuable to have in the e2e suite. I'd hate to not have any coverage for this feature in e2e tests which I think is what we'd end up with if we only ran the tests in clusters that already had a default ingressclass. Maybe in time more environments will actually provide a default ingressclass, but I'm thinking that won't be widespread anytime in the next few months. Maybe the safest option here is to leave this out of conformance and update it to use an existing default class if it exists.

@kolyshkin
Copy link
Contributor

This bug is still there even after #93427, we occasionally see it in cri-o tests (see e.g. cri-o/cri-o#4253).

My bad 🤦, just found out we forgot to skip [Serial] tests.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 17, 2021
@cmluciano
Copy link
Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 15, 2021
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 13, 2021
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 13, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/network Categorizes an issue or PR as relevant to SIG Network.
Projects
None yet
Development

No branches or pull requests

8 participants