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

[occm] LB tests failures are masked #2540

Closed
dulek opened this issue Feb 7, 2024 · 1 comment · Fixed by #2360
Closed

[occm] LB tests failures are masked #2540

dulek opened this issue Feb 7, 2024 · 1 comment · Fixed by #2360
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@dulek
Copy link
Contributor

dulek commented Feb 7, 2024

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
In test-lb-service.sh we do trap "delete_resources" EXIT to make sure we cleanup resources on a test failure. In there, we only fetched the $? after making a check for ${AUTO_CLEAN_UP}, which itself alters the code to 0, so function always returns success. This means tests can never really fail.

What you expected to happen:
Tests can fail.

How to reproduce it:
Run the tests.

Anything else we need to know?:
It's already fixed, I'm creating bugs historically.

Environment:

  • openstack-cloud-controller-manager(or other related binary) version:
  • OpenStack version:
  • Others:
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 7, 2024
@dulek dulek changed the title [occm]Make sure we don't mask LB tests failures [occm] LB tests failures are masked Feb 7, 2024
@dulek
Copy link
Contributor Author

dulek commented Feb 7, 2024

Done in #2540

@dulek dulek closed this as completed Feb 7, 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.
Projects
None yet
2 participants