Skip to content

Releases/dind network host patch v2.325.0 #3894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

cgundy
Copy link

@cgundy cgundy commented Jun 4, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 4, 2025 13:06
@cgundy cgundy requested a review from a team as a code owner June 4, 2025 13:06
@cgundy cgundy closed this Jun 4, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the Docker-in-Docker behavior to use the host network, bumps the release version, and updates the runner download source.

  • Switch container networking to host and remove local network setup/teardown
  • Bump releaseVersion
  • Point Dockerfile download to the dfinity/runner repository

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/Runner.Worker/ContainerOperationProvider.cs Comment out local network creation/removal and set containerNetwork to "host"
releaseVersion Updated release version from placeholder to 2.324.0
images/Dockerfile Changed runner download URL to https://github.com/dfinity/runner/...
Comments suppressed due to low confidence (1)

images/Dockerfile:16

  • Confirm that the new dfinity/runner repository and path are correct; using an invalid URL will break the Docker build.
&& curl -f -L -o runner.tar.gz https://github.com/dfinity/runner/releases/download/v${RUNNER_VERSION}/actions-runner-${TARGETOS}-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz \

Comment on lines +95 to +102
/*
XXX: don't add network as we'll use --network host
executionContext.Output("##[group]Create local container network");
var containerNetwork = $"github_network_{Guid.NewGuid().ToString("N")}";
await CreateContainerNetworkAsync(executionContext, containerNetwork);
executionContext.JobContext.Container["network"] = new StringContextData(containerNetwork);
executionContext.Output("##[endgroup]");

*/
Copy link
Preview

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider removing or extracting this large commented-out block if the local network code is no longer needed, to keep the codebase clean.

Copilot uses AI. Check for mistakes.

executionContext.Output("##[group]Create local container network");
var containerNetwork = $"github_network_{Guid.NewGuid().ToString("N")}";
await CreateContainerNetworkAsync(executionContext, containerNetwork);
executionContext.JobContext.Container["network"] = new StringContextData(containerNetwork);
executionContext.Output("##[endgroup]");

*/
var containerNetwork = "host";
Copy link
Preview

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] Introduce a named constant or config setting for the "host" network string instead of using a magic literal, to improve readability and ease future changes.

Suggested change
var containerNetwork = "host";
const string DefaultContainerNetwork = "host";
var containerNetwork = DefaultContainerNetwork;

Copilot uses AI. Check for mistakes.

Comment on lines +167 to +168
// XXX: we're using --network host
//await RemoveContainerNetworkAsync(executionContext, containers.First().ContainerNetwork);
Copy link
Preview

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] Rather than commenting out the teardown call, consider adding a conditional check (e.g., skip only for host) so that non-host networks are still cleaned up and intent is explicit.

Suggested change
// XXX: we're using --network host
//await RemoveContainerNetworkAsync(executionContext, containers.First().ContainerNetwork);
if (containers.First().ContainerNetwork != "host")
{
await RemoveContainerNetworkAsync(executionContext, containers.First().ContainerNetwork);
}

Copilot uses AI. Check for mistakes.

@@ -1 +1 @@
<Update to ./src/runnerversion when creating release>
2.324.0
Copy link
Preview

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

The PR title references version v2.325.0, but releaseVersion is set to 2.324.0; please update to the correct release number.

Suggested change
2.324.0
2.325.0

Copilot uses AI. Check for mistakes.

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.

4 participants