Skip to content

hack/ci: pass -r to limactl copy for directory copies - #29434

Merged
Luap99 merged 1 commit into
podman-container-tools:mainfrom
shrevid03:fix/hack-ci-recursive-copy
Aug 12, 2026
Merged

hack/ci: pass -r to limactl copy for directory copies#29434
Luap99 merged 1 commit into
podman-container-tools:mainfrom
shrevid03:fix/hack-ci-recursive-copy

Conversation

@shrevid03

@shrevid03 shrevid03 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Description

hack/ci/ci.sh calls limactl copy twice on directories — the repo directory being copied into the VM at line 30, and the logs directory being copied back out at line 40. limactl copy uses the underlying host transport (scp or rsync) and without -r, scp refuses a directory with is not a regular file, which matches what @mtrmac reported in #29425. It happens to work in CI (likely the rsync path) but breaks in local VMs (scp path).

Small fix: add -r to both limactl copy directory calls so they're always recursive regardless of the underlying transport.

Fixes #29425

Testing

Shell change only, no Go build affected. Local-VM reproducer requires an environment where limactl uses the scp transport — happy to iterate if @mtrmac or @timcoding1988 can confirm on the exact setup that failed.

Checklist

  • I have read and understood the contributing guidelines and will not have more than two open PRs as a new contributor.
  • PR description, commit message, and GitHub comments are human-written, per LLM Policy.
  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all commits.
  • Referenced issues using Fixes: #00000 in commit message.
  • Tests: no tests needed (shell script change).
  • Documentation: no documentation changes needed.
  • All commits pass make validatepr (could not run locally on macOS — relying on CI).
  • Release note entered in the section below.

Does this PR introduce a user-facing change?

NONE

The 'limactl copy' calls in hack/ci/ci.sh copy directories (the
repo dir into the VM, and the logs dir out of the VM). Depending
on the underlying transport limactl uses (scp vs rsync), directory
copies without -r may fail with 'is not a regular file'. This works
in CI but breaks in local VMs.

Fixes podman-container-tools#29425

Signed-off-by: Shreya Vidyadhar <shrevidh03@gmail.com>

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@shrevid03
shrevid03 requested a review from Honny1 August 10, 2026 18:00
@Honny1

Honny1 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

PTAL @timcoding1988 @ashley-cui @Luap99

@Luap99 Luap99 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Luap99
Luap99 merged commit 82cb1c4 into podman-container-tools:main Aug 12, 2026
125 of 128 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hack/ci/ci.sh has an environment dependency (in all repos)

3 participants