Commit 466419f
fix(iris): handle scheme in actor proxy upstream URL (#4157)
## Summary
- The iris backend registers actor endpoints with a full URL including
scheme (e.g. `http://10.164.0.11:63143`), but the actor proxy
unconditionally prepended `http://`, producing a malformed
`http://http://...` URL that fails with "Name or service not known"
- Use the address as-is when it already contains a scheme; prepend
`http://` only for bare `host:port` addresses
## Test plan
- [x] Existing `test_actor_proxy.py` tests pass (bare `host:port` path
still works)
- [ ] Verify proxy works end-to-end with a running zephyr job after
controller redeploy
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Rafal Wojdyla <ravwojdyla@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8057f1f commit 466419f
3 files changed
Lines changed: 45 additions & 27 deletions
File tree
- lib/iris
- src/iris
- actor
- cluster/controller
- tests/actor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | | - | |
91 | 93 | | |
92 | 94 | | |
93 | | - | |
| 95 | + | |
94 | 96 | | |
95 | | - | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 36 | | |
50 | 37 | | |
51 | 38 | | |
52 | | - | |
| 39 | + | |
53 | 40 | | |
54 | 41 | | |
55 | 42 | | |
| |||
81 | 68 | | |
82 | 69 | | |
83 | 70 | | |
84 | | - | |
| 71 | + | |
| 72 | + | |
85 | 73 | | |
86 | 74 | | |
87 | 75 | | |
| |||
125 | 113 | | |
126 | 114 | | |
127 | 115 | | |
| 116 | + | |
| 117 | + | |
128 | 118 | | |
129 | | - | |
| 119 | + | |
130 | 120 | | |
131 | 121 | | |
132 | 122 | | |
133 | | - | |
| 123 | + | |
134 | 124 | | |
135 | 125 | | |
136 | 126 | | |
137 | | - | |
138 | | - | |
| 127 | + | |
| 128 | + | |
139 | 129 | | |
140 | 130 | | |
141 | 131 | | |
| |||
151 | 141 | | |
152 | 142 | | |
153 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
154 | 171 | | |
155 | 172 | | |
156 | 173 | | |
| |||
0 commit comments