Skip to content

Comments

fix for persistence#38

Merged
compscidr merged 1 commit intomainfrom
jason/fix-perisistence-issue
Jan 5, 2026
Merged

fix for persistence#38
compscidr merged 1 commit intomainfrom
jason/fix-perisistence-issue

Conversation

@compscidr
Copy link
Owner

was having an issue where it would get stuck in infinite retry loop after machine restarts

Copilot AI review requested due to automatic review settings January 5, 2026 18:16
Copy link

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 fixes an infinite retry loop issue that occurred after machine restarts by implementing runner configuration persistence using Docker named volumes.

  • Adds a new github_runner_persist_config variable (defaults to true) to enable/disable configuration persistence
  • Mounts a named Docker volume (<runner-name>-runner-data:/runner-data) to persist runner configuration files
  • Sets the CONFIGURED_ACTIONS_RUNNER_FILES_DIR environment variable to point to the persisted volume location

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
roles/github_runner/tasks/main.yml Adds conditional volume mount for runner configuration persistence and sets the CONFIGURED_ACTIONS_RUNNER_FILES_DIR environment variable when persistence is enabled
roles/github_runner/defaults/main.yml Introduces the github_runner_persist_config variable with a default value of true
README.md Documents the new github_runner_persist_config variable and its purpose
galaxy.yml Bumps the collection version from 0.1.0 to 0.1.1 for this patch release

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

['/var/run/docker.sock:/var/run/docker.sock'] +
(['/root/.android:/root/.android'] if github_runner_android else [])
(['/root/.android:/root/.android'] if github_runner_android else []) +
([github_runner_name ~ '-runner-data:/runner-data'] if github_runner_persist_config else [])
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

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

The new persistence feature introduced in this PR is not covered by any test scenarios. Consider adding test coverage to verify that:

  1. The named volume is correctly mounted when github_runner_persist_config is true
  2. The CONFIGURED_ACTIONS_RUNNER_FILES_DIR environment variable is set when persistence is enabled
  3. The volume and environment variable are not present when github_runner_persist_config is false

This is particularly important since this feature aims to fix an infinite retry loop issue after machine restarts.

Copilot uses AI. Check for mistakes.
@compscidr compscidr merged commit 555fbc7 into main Jan 5, 2026
11 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.

1 participant