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

CLI flags for "running only given features" will skip whole test if a feature in the env doesn't match the criteria. #426

Open
0sewa0 opened this issue Jun 7, 2024 · 2 comments · May be fixed by #428
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@0sewa0
Copy link

0sewa0 commented Jun 7, 2024

What happened?

When using the --labels "key=value" argument, the Feature with that label didn't run.
All Features got skipped, regardless of the label they have, because the first in the Environment didn't have the label.

What did you expect to happen?

Run all the Features that have the label, and skip the ones that don't.

How can we reproduce it (as minimally and precisely as possible)?

Have 2 Features, only second one has the label, try to run only the second one using the --labels arg.

Anything elese we need to know?

Tried it with the --feature arg as well, same problem.

E2E Provider Used

real cluster

e2e-framework Version

v0.4.0

OS version

OS: MacOS 14.5 (Intel Machine)
@0sewa0 0sewa0 added the kind/bug Categorizes issue or PR as related to a bug. label Jun 7, 2024
@0sewa0
Copy link
Author

0sewa0 commented Jun 7, 2024

I am not familiar with the code(at all), and how it's structured, but out of curiosity, I went digging:

I think https://github.com/kubernetes-sigs/e2e-framework/blame/72aa5e3c117ef7c0a430328fa4b6e61edbdcf790/pkg/env/env.go#L209-L212 is incorrect.

  • Doesn't t.Skipf just skip the whole test, not only the Feature? 🤔
  • Wouldn't a simple return ctx be a fix ? (with some log before it, of course 😅 )

@k8s-triage-robot
Copy link

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

This bot triages un-triaged issues 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:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please 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 Sep 5, 2024
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/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants