Skip to content

Adding proxy to tests for QE environment#2406

Merged
openshift-merge-bot[bot] merged 1 commit intostolostron:mainfrom
dbuchanaRH:proxy-qe-environment
Apr 21, 2026
Merged

Adding proxy to tests for QE environment#2406
openshift-merge-bot[bot] merged 1 commit intostolostron:mainfrom
dbuchanaRH:proxy-qe-environment

Conversation

@dbuchanaRH
Copy link
Copy Markdown
Contributor

@dbuchanaRH dbuchanaRH commented Apr 9, 2026

Summary by CodeRabbit

  • Tests
    • Updated test HTTP client setups to honor proxy settings from the environment, improving test reliability and execution in environments that require HTTP proxy configuration.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1af329fa-4e12-4bac-a937-28e3c6051629

📥 Commits

Reviewing files that changed from the base of the PR and between e392476 and 9ed27f1.

📒 Files selected for processing (4)
  • tests/pkg/tests/observability_alert_test.go
  • tests/pkg/tests/observability_route_test.go
  • tests/pkg/utils/mco_dashboard.go
  • tests/pkg/utils/mco_metric.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • tests/pkg/utils/mco_dashboard.go
  • tests/pkg/utils/mco_metric.go

📝 Walkthrough

Walkthrough

Four test and utility files were updated to set Proxy: http.ProxyFromEnvironment on their http.Transport instances so HTTP clients used in observability tests and dashboard/metric utilities honor environment proxy settings; TLS and auth behavior remain unchanged. (43 words)

Changes

Cohort / File(s) Summary
Observability tests
tests/pkg/tests/observability_alert_test.go, tests/pkg/tests/observability_route_test.go
Added Proxy: http.ProxyFromEnvironment to http.Transport used by test http.Clients for alertmanager and metrics/alert route tests; TLS RootCAs retained.
MCO utilities (dashboard & metrics)
tests/pkg/utils/mco_dashboard.go, tests/pkg/utils/mco_metric.go
Set Proxy: http.ProxyFromEnvironment on non-KIND HTTP transports in Grafana/dashboard and metrics query paths; existing TLS InsecureSkipVerify/token logic unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🧭 Clients now heed the proxy sign,
Routes and dashboards fall in line.
A small tweak in each transport’s core,
Network traffic finds the door.
Secure and tidy — ship it, score! 🚀

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding proxy configuration to HTTP clients across multiple test files for QE environment compatibility.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Timed out fetching pipeline failures after 30000ms


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dbuchanaRH
Copy link
Copy Markdown
Contributor Author

/cherry-pick release-2.16 release-2.15 release-2.14

@openshift-cherrypick-robot
Copy link
Copy Markdown
Collaborator

@dbuchanaRH: once the present PR merges, I will cherry-pick it on top of release-2.16 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-2.16 release-2.15 release-2.14

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-sigs/prow repository.

Copy link
Copy Markdown
Contributor

@jacobbaungard jacobbaungard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@jacobbaungard
Copy link
Copy Markdown
Contributor

/cherry-pick release-2.17

@openshift-cherrypick-robot
Copy link
Copy Markdown
Collaborator

@jacobbaungard: once the present PR merges, I will cherry-pick it on top of release-2.17 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-2.17

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-sigs/prow repository.

Signed-off-by: Daniel Buchanan <dbuchana@redhat.com>
@openshift-ci openshift-ci Bot removed the lgtm label Apr 21, 2026
Copy link
Copy Markdown
Contributor

@jacobbaungard jacobbaungard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 21, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dbuchanaRH, jacobbaungard

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the lgtm label Apr 21, 2026
@jacobbaungard
Copy link
Copy Markdown
Contributor

/test test-e2e

@dbuchanaRH
Copy link
Copy Markdown
Contributor Author

/test e2e-kind

@openshift-merge-bot openshift-merge-bot Bot merged commit a542a26 into stolostron:main Apr 21, 2026
28 checks passed
@openshift-cherrypick-robot
Copy link
Copy Markdown
Collaborator

@dbuchanaRH: new pull request created: #2423

Details

In response to this:

/cherry-pick release-2.16 release-2.15 release-2.14

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-sigs/prow repository.

@openshift-cherrypick-robot
Copy link
Copy Markdown
Collaborator

@jacobbaungard: new pull request created: #2424

Details

In response to this:

/cherry-pick release-2.17

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-sigs/prow repository.

jacobbaungard pushed a commit to jacobbaungard/multicluster-observability-operator that referenced this pull request Apr 23, 2026
Signed-off-by: Daniel Buchanan <dbuchana@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants