Conversation
dcd28d4 to
748cac3
Compare
| if: github.repository == 'apple/container' | ||
| timeout-minutes: 60 | ||
| runs-on: [self-hosted, macos, sequoia, ARM64] | ||
| runs-on: [self-hosted, macos, tahoe, ARM64] |
There was a problem hiding this comment.
We need to select tahoe, there are no sequoia runners now.
| APP_ROOT=$(mktemp -d -p "${RUNNER_TEMP}") | ||
| trap 'rm -rf "${APP_ROOT}"; echo Removing data directory ${APP_ROOT}' EXIT | ||
| echo "Created data directory ${APP_ROOT}" | ||
| export NO_PROXY="${NO_PROXY},192.168.0.0/16,fe80::/10" |
There was a problem hiding this comment.
Don't send host-to-container or container-to-container requests through the proxy, for IPv4 and for IPv6 link local.
| var request = HTTPClientRequest(url: url) | ||
| request.method = .GET | ||
| let client = getClient() | ||
| let client = getClient(useHttpProxy: false) |
There was a problem hiding this comment.
Don't use the proxy for a host-to-contaienr request.
|
|
||
| @available(macOS 26, *) | ||
| @Test(.disabled("https://github.com/apple/container/issues/953")) | ||
| @Test |
There was a problem hiding this comment.
We can enable these in 26.2 I think.
| runArgs.append(contentsOf: args) | ||
| } | ||
|
|
||
| runArgs.append(contentsOf: getProxyEnvironment()) |
There was a problem hiding this comment.
Add proxy environment variables to run containers.
| var execArgs = [ | ||
| "exec" | ||
| ] | ||
| execArgs.append(contentsOf: getProxyEnvironment()) |
There was a problem hiding this comment.
Add proxy env vars for exec.
|
|
||
| var arguments = ["create", "--rm", "--name", name] | ||
|
|
||
| arguments.append(contentsOf: getProxyEnvironment()) |
There was a problem hiding this comment.
Add proxy env args for create.
| } | ||
|
|
||
| func getClient() -> HTTPClient { | ||
| func getClient(useHttpProxy: Bool) -> HTTPClient { |
There was a problem hiding this comment.
Allow requests from the integration test code to use proxy or not (rare to use proxy, test code shouldn't be sending requests off host)
| let (_, _, _, _) = (try? run(arguments: ["network", "rm", name])) ?? (nil, "", "", 1) | ||
| } | ||
|
|
||
| private func getProxyEnvironment() -> [String] { |
There was a problem hiding this comment.
Generate arg for run, exec, and create
- Runner fleet is on 26.3 now. - Integration tests started flaking and it appears that we've been misconfiguring/not configuring proxy variables where we needed to be and it finally caught up with us. Workflow now adds appropriate exclusions for host-to-container and container-to-container network requests so they aren't all rammed through the proxy.
- Runner fleet is on 26.3 now. - Integration tests started flaking and it appears that we've been misconfiguring/not configuring proxy variables where we needed to be and it finally caught up with us. Workflow now adds appropriate exclusions for host-to-container and container-to-container network requests so they aren't all rammed through the proxy.
Type of Change
Motivation and Context
Runner fleet is on 26.3 now.
Testing