Skip to content

refactor(runner): extract runc.sh helpers into functions#3429

Merged
mkoura merged 1 commit intomasterfrom
runc_cleanups
Apr 22, 2026
Merged

refactor(runner): extract runc.sh helpers into functions#3429
mkoura merged 1 commit intomasterfrom
runc_cleanups

Conversation

@mkoura
Copy link
Copy Markdown
Collaborator

@mkoura mkoura commented Apr 22, 2026

Move .bin validation, worktree .git mount, and base-image selection into dedicated functions with locals, reducing top-level script state.

@mkoura mkoura requested a review from saratomaz as a code owner April 22, 2026 09:58
@mkoura mkoura requested review from Copilot and removed request for saratomaz April 22, 2026 09:59
Copy link
Copy Markdown
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

Refactors runner/runc.sh by extracting several top-level behaviors into dedicated Bash functions to reduce global/script-level state and centralize logic around worktree mounting, .bin validation, and base-image selection.

Changes:

  • Extract git worktree .git mount detection into add_worktree_git_mount.
  • Extract .bin compatibility checks into validate_bin_dir (now returning non-zero instead of exiting internally).
  • Extract container image + mount selection logic into select_image.

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

Comment thread runner/runc.sh
Comment thread runner/runc.sh
Move .bin validation, worktree .git mount, and base-image selection
into dedicated functions with locals, reducing top-level script state.
Copy link
Copy Markdown
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

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


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

Comment thread runner/runc.sh
@mkoura mkoura merged commit 8b12053 into master Apr 22, 2026
5 checks passed
@mkoura mkoura deleted the runc_cleanups branch April 22, 2026 10:40
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