|
Ran
|
Jobs
1
|
Files
738
|
Run time
1min
|
Badge
README BADGES
|
push
github
fix(http): inherit default http.Transport settings (#7030) ## Summary Make all http clients with custom transports inherit at least the default settings of http.Transport. Attempts to forward proof some issues with http clients. Intentionally left out `internal/mcp` clients and defered to a follow up. Introduces a new httputil.SetTLSClientConfig, to avoid remembering to set `transport.DialContext = nil` (which carries the tls dialer by default in cmd/pomerium) everytime it is required. ## Related issues Follow up to https://github.com/pomerium/pomerium/pull/7028 Should prevent potential future issues with similar root causes as : https://github.com/pomerium/pomerium/issues/7027 Maybe provides a better building block to [ENG-4530](https://linear.app/pomerium/issue/ENG-4530/reload-outbound-http-proxy-settings-without-restarting-core) ## User Explanation ## AI disclosure I had Claude opus 5.5 investigate the fix to the failing tests in the first commit [1dfd1fb](https://github.com/pomerium/pomerium/pull/7030/commits/1dfd1fb7e). It was related to improper porting of the http transport settings to the testenv scenario transport settings. ## Checklist - [X] reference any related issues - [X] updated unit tests - [X] add appropriate label (`enhancement`, `bug`, `breaking`, `dependencies`, `ci`) - [X] disclosed AI usage (or wrote "none") per AI_POLICY.md - [X] ready for review
36 of 87 new or added lines in 10 files covered. (41.38%)
23 existing lines in 10 files now uncovered.36861 of 67236 relevant lines covered (54.82%)
340.22 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 13 |
0.0
|
0.0% | internal/testenv/upstreams/tcp.go |
| 12 |
0.0
|
0.0% | internal/testenv/upstreams/http.go |
| 9 |
51.22
|
-7.11% | internal/httputil/transport.go |
| 8 |
0.0
|
0.0% | internal/zero/healthcheck/check_routes.go |
| 5 |
1.9
|
0.0% | pkg/envoy/envoy.go |
| 4 |
0.0
|
0.0% | internal/tests/xdserr/cmd/main.go |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 5 |
39.61
|
-3.25% | internal/databroker/server_clustered_leader.go |
| 4 |
44.81
|
-0.81% | internal/databroker/server_clustered_follower.go |
| 3 |
0.0
|
0.0% | internal/testenv/upstreams/tcp.go |
| 2 |
75.86
|
-0.16% | config/options.go |
| 2 |
77.6
|
-1.6% | pkg/grpcutil/client_manager.go |
| 2 |
96.05
|
-2.63% | pkg/identity/manager/schedulers.go |
| 2 |
88.21
|
-0.42% | pkg/storage/postgres/postgres.go |
| 1 |
73.57
|
0.96% | internal/databroker/config_source.go |
| 1 |
0.0
|
0.0% | internal/tests/xdserr/cmd/main.go |
| 1 |
88.43
|
0.0% | pkg/health/systemd.go |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 44132706768.1 | 738 |
54.82
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|