Repository navigation
fix(ci): e2e tests on dual-mode network clusters #23510
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,7 +14,9 @@ curl_cfg() { # Use built-in echo to not expose $2 in the process list. | |||||
|
|
||||||
| call_curl() { | ||||||
| local url=$1 | ||||||
| curl -s --insecure --config <(curl_cfg user "${ROX_USERNAME}:${ROX_ADMIN_PASSWORD}") "$url" | ||||||
| # Bound each request: an unbounded curl here hung the whole post phase for | ||||||
| # the 30-min timeout on dual-ipv6-primary (one stalled per-policy GET, 2026-09-12). | ||||||
| curl -s --insecure --connect-timeout 10 --max-time 120 --retry 3 --retry-delay 2 --config <(curl_cfg user "${ROX_USERNAME}:${ROX_ADMIN_PASSWORD}") "$url" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: git show 6991e75ae308e4411a24ce4e8186e7e88bc4f456:scripts/grab-data-from-central.sh | sed -n '1,40p'
cat scripts/grab-data-from-central.sh
rg -n 'grab-data-from-central|grab_central_data|post.*timeout|POST_TIMEOUT' scripts tests .openshift-ci | head -30Repository: stackrox/stackrox Length of output: 3872 🏁 Script executed: sed -n '170,225p' .openshift-ci/post_tests.py
sed -n '285,315p' .openshift-ci/post_tests.py
rg -n -F --glob '*.py' -e 'timeout' -e 'post phase' .openshift-ci | head -80Repository: stackrox/stackrox Length of output: 7903 🏁 Script executed: sed -n '1,125p' .openshift-ci/post_tests.py
sed -n '125,175p' .openshift-ci/post_tests.pyRepository: stackrox/stackrox Length of output: 6287 Cap the retry window for each The script makes two calls plus one call per policy. Each call can take about eight minutes with four attempts and retry delays. Multiple slow policy calls can therefore consume the 30-minute This change improves the unbounded base behavior, so this is a minor resilience gap rather than a major regression. Suggested fix--- "a/scripts/grab-data-from-central.sh"
+++ "b/scripts/grab-data-from-central.sh"
@@ -16,7 +16,7 @@
local url=$1
# Bound each request: an unbounded curl here hung the whole post phase for
# the 30-min timeout on dual-ipv6-primary (one stalled per-policy GET, 2026-09-12).
- curl -s --insecure --connect-timeout 10 --max-time 120 --retry 3 --retry-delay 2 --config <(curl_cfg user "${ROX_USERNAME}:${ROX_ADMIN_PASSWORD}") "$url"
+ curl -s --insecure --connect-timeout 10 --max-time 120 --retry 3 --retry-delay 2 --retry-max-time 120 --config <(curl_cfg user "${ROX_USERNAME}:${ROX_ADMIN_PASSWORD}") "$url"
}
main() {📝 Committable suggestion
Suggested change
🧰 Tools🪛 ast-grep (0.45.3)[warning] 19-19: curl is invoked with -k/--insecure, which disables TLS certificate verification and exposes the connection to man-in-the-middle attacks. Remove the insecure flag and let curl validate the server certificate; if you need to trust a private CA, pin it with --cacert instead. (curl-insecure-tls-bash) 🤖 Prompt for AI Agents |
||||||
| } | ||||||
|
|
||||||
| main() { | ||||||
|
|
||||||
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: stackrox/stackrox
Length of output: 5497
🏁 Script executed:
Repository: stackrox/stackrox
Length of output: 12371
🏁 Script executed:
Repository: stackrox/stackrox
Length of output: 7258
Clear
SETUP_WORKLOAD_IDENTITIESfor AWS jobs.When an AWS job inherits
SETUP_WORKLOAD_IDENTITIES=true, the current condition leaves it enabled. The E2E runner then calls the GCP workload-identity setup. Set the flag tofalsefor AWS before the existing GCP OpenShift condition.🐛 Suggested fix
🤖 Prompt for AI Agents