-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: Improve e2e tests and small fixes #6737
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jorge Turrado <[email protected]>
/run-e2e |
Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>
/run-e2e |
/run-e2e |
/run-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR pins the nginx image version used in tests to 1.26 and switches from dockerhub (nginxinc) to the GHCR registry. Additionally, there is a change in error handling for the GCP storage scaler.
Reviewed Changes
Copilot reviewed 85 out of 85 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
tests/internals/* (all affected test files) | Updated nginx image reference to "ghcr.io/nginx/nginx-unprivileged:1.26" for consistency across tests |
pkg/scalers/gcp_storage_scaler.go | Modified error handling in the getItemCount loop |
/run-e2e |
Signed-off-by: Jorge Turrado <[email protected]>
/run-e2e |
Signed-off-by: Jorge Turrado <[email protected]>
@zroubalik , I have updated |
/run-e2e |
Signed-off-by: Jorge Turrado <[email protected]>
Signed-off-by: Jorge Turrado <[email protected]>
/run-e2e |
Signed-off-by: Jorge Turrado <[email protected]>
/run-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the e2e test stability by pinning the nginx image to a known good version from the GHCR registry and updating related error logging and connection retry handling. It updates the image references in multiple test files and makes a minor refactor in the GCP storage scaler to change the error handling order.
Reviewed Changes
Copilot reviewed 86 out of 86 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/* | Updates image references from "nginxinc/nginx-unprivileged" to "ghcr.io/nginx/nginx-unprivileged:1.26" (with or without alpine-slim) across different e2e test definitions |
pkg/scalers/gcp_storage_scaler.go | Adjusts the error handling order when iterating over bucket items to pin error conditions |
pkg/scalers/external_scaler.go | Adds improved error logging and back-off logging for retrying connection acquisition |
Comments suppressed due to low confidence (2)
tests/internals/pause_scaledobject_explicitly/pause_scaledobject_explicitly_test.go:60
- [nitpick] Some tests update the image from the 'alpine-slim' variant to a non-slim version. Please confirm that the change from 'alpine-slim' to '1.26' is intentional and does not affect test behavior.
- image: nginxinc/nginx-unprivileged:alpine-slim
pkg/scalers/gcp_storage_scaler.go:207
- In the updated error branch, the code accesses 'item.Size' after an error is detected. This may lead to undefined behavior if 'item' is not valid. Consider checking for 'iterator.Done' or other errors before accessing any fields on 'item'.
if err != nil {
/run-e2e |
There is an issue with latest version of the nginx image that we use for e2e tests -> nginx/docker-nginx-unprivileged#302
As the image isn't relevant for the test, this PR pines the image to a working version and uses the GHCR registry instead of dockerhub.
This PR also fixes some small issues on gcp e2e and also remove some wrong error logging on external_push
Checklist