podman icon indicating copy to clipboard operation
podman copied to clipboard

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

Open mtrmac opened this issue 3 months ago • 5 comments

Issue Description

The

limactl copy "$REPO_DIR" $LIMA_VM_NAME:/var/tmp/…

line in hack/ci/ci.sh should include -r. This does work in CI, but breaks in (some?) local VMs. Guessing, perhaps depending on whether scp or rsync is used.

Apples also to Buildah and Skopeo.

@timcoding1988 PTAL at least to confirm (low priority, perhaps delegate).

/usr/bin/scp: local "$CHECKOUT/hack/ci/../.." is not a regular file
/usr/bin/scp: failed to upload file $CHECKOUT/hack/ci/../.. to /var/tmp/buildah

mtrmac avatar Aug 07 '26 23:08 mtrmac

Hi @mtrmac, I'd like to work on this one. Looking at the limactl copy "$REPO_DIR" $LIMA_VM_NAME:/var/tmp/… line in hack/ci/ci.sh, I'll add the -r flag so it recurses correctly when copying the repo directory — that should resolve the scp: local ... is not a regular file error you're seeing locally.

I'll open a PR shortly. Happy to also flag the same fix for Buildah and Skopeo if that's useful, since you mentioned it applies there too.

mwemmz avatar Aug 08 '26 16:08 mwemmz

Hi @mtrmac, @mwemmz — noticed this was still open with no linked PR after ~15h, so I went ahead and put up #29434 with the -r fix on both limactl copy calls in hack/ci/ci.sh. Apologies for the potential overlap @mwemmz — happy to close mine if you'd already started; otherwise reviews welcome. Also happy to mirror the same change to Buildah and Skopeo since @mtrmac mentioned it applies there too.

shrevid03 avatar Aug 09 '26 08:08 shrevid03

@mtrmac – I've taken a look at this. The -r fix was merged via #29434, but since this issue was reopened, I wanted to check:

Is the failure still happening in your local environment after pulling the latest main?

If so, could you share more details about your setup (OS, limactl version, whether it's using scp or rsync)?

I'm happy to help test or carry the fix over to Buildah/Skopeo if that's still needed. Just let me know what would be most useful.

mwemmz avatar Aug 15 '26 15:08 mwemmz

I originally intended this issue to track fixing it in all repos, not just Podman. Alternatively filing separate issues in those projects would be fine, but perhaps fixing everything at once would be easier.

mtrmac avatar Aug 17 '26 20:08 mtrmac

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Sep 17 '26 01:09 github-actions[bot]