Skip to content

Select macOS 26 CI runners.#1074

Merged
jglogan merged 3 commits intoapple:mainfrom
jglogan:tahoe-runner
Jan 22, 2026
Merged

Select macOS 26 CI runners.#1074
jglogan merged 3 commits intoapple:mainfrom
jglogan:tahoe-runner

Conversation

@jglogan
Copy link
Contributor

@jglogan jglogan commented Jan 21, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Runner fleet is on 26.3 now.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@jglogan jglogan force-pushed the tahoe-runner branch 4 times, most recently from dcd28d4 to 748cac3 Compare January 22, 2026 00:20
if: github.repository == 'apple/container'
timeout-minutes: 60
runs-on: [self-hosted, macos, sequoia, ARM64]
runs-on: [self-hosted, macos, tahoe, ARM64]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

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"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

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)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't use the proxy for a host-to-contaienr request.


@available(macOS 26, *)
@Test(.disabled("https://github.com/apple/container/issues/953"))
@Test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can enable these in 26.2 I think.

runArgs.append(contentsOf: args)
}

runArgs.append(contentsOf: getProxyEnvironment())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add proxy environment variables to run containers.

var execArgs = [
"exec"
]
execArgs.append(contentsOf: getProxyEnvironment())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add proxy env vars for exec.


var arguments = ["create", "--rm", "--name", name]

arguments.append(contentsOf: getProxyEnvironment())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add proxy env args for create.

}

func getClient() -> HTTPClient {
func getClient(useHttpProxy: Bool) -> HTTPClient {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

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] {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generate arg for run, exec, and create

@jglogan jglogan merged commit a18df81 into apple:main Jan 22, 2026
2 checks passed
@jglogan jglogan deleted the tahoe-runner branch January 22, 2026 02:25
saehejkang pushed a commit to saehejkang/container that referenced this pull request Jan 23, 2026
- 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.
saehejkang pushed a commit to saehejkang/container that referenced this pull request Jan 27, 2026
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants