Skip to content

Conversation

@nikola-jokic
Copy link
Contributor

Once the hook v0.8.0 is released, pull it down into a separate directory.
The change in the v0.8.0 is fairly risky, so we ideally want to apply the fallback mechanism to the current version of the hook v0.7.0.

ARC PR: actions/actions-runner-controller#4250 introduces a new mode, including this path to the hook.

@nikola-jokic nikola-jokic requested a review from a team as a code owner September 30, 2025 14:59
Copilot AI review requested due to automatic review settings September 30, 2025 14:59
Copy link
Contributor

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 adds the v0.8.0 version of the runner-container-hooks to the Docker image as a fallback mechanism. The change downloads and extracts the new hook version to a separate k8s-novolume directory while preserving the existing v0.7.0 hooks in the k8s directory.

  • Downloads runner-container-hooks v0.8.0 to a separate directory for fallback support
  • Maintains existing v0.7.0 hooks alongside the new version
  • Supports the new "novolume" mode being introduced in ARC

Comment on lines +24 to +26
RUN curl -f -L -o runner-container-hooks.zip https://github.com/actions/runner-container-hooks/releases/download/v0.8.0/actions-runner-hooks-k8s-0.8.0.zip \
&& unzip ./runner-container-hooks.zip -d ./k8s-novolume \
&& rm runner-container-hooks.zip
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

The code duplicates the download logic from lines 20-22. Consider combining both downloads into a single RUN instruction with different variables for version and directory, or create a helper script to reduce duplication.

Copilot uses AI. Check for mistakes.
@TingluoHuang TingluoHuang force-pushed the nikola-jokic/include-k8s-novolume branch from 4db76e6 to 35dde84 Compare October 13, 2025 13:35
@TingluoHuang TingluoHuang enabled auto-merge (squash) October 13, 2025 13:37
@TingluoHuang TingluoHuang merged commit a12731d into actions:main Oct 13, 2025
9 checks passed
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.

3 participants