Skip to content

Conversation

@daissi
Copy link
Member

@daissi daissi commented Oct 7, 2025

For each action, check that as many commands it needs are available as possible. This can't be meaningfully extended to commands that run in the chroot, or might run in the chroot.

This follows up from comments on #276 which were captured as issue #280.

Closes: #280

Based on: #283

Copy link
Member

@obbardc obbardc left a comment

Choose a reason for hiding this comment

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

looks fine to me

Copy link
Member

@obbardc obbardc left a comment

Choose a reason for hiding this comment

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

nitpick

@daissi daissi force-pushed the eds/daissi/verify branch 4 times, most recently from e4d690a to 85ed64c Compare October 8, 2025 14:39
@daissi daissi marked this pull request as ready for review October 8, 2025 15:57
return
}

if !runInFakeMachine && !fakemachine.InMachine() {
Copy link
Member

Choose a reason for hiding this comment

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

are these few lines a merge error ? they dont look like they belong here

}

if !runInFakeMachine {
// Either we're on the host and intend to run on it,
Copy link
Member

@obbardc obbardc Oct 8, 2025

Choose a reason for hiding this comment

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

can you just call CheckEnvironment independently of all of this ? in same area as Verify ?

@daissi daissi force-pushed the eds/daissi/verify branch from 85ed64c to 399024c Compare October 15, 2025 11:29
@daissi daissi marked this pull request as draft October 15, 2025 12:25
daissi and others added 2 commits October 15, 2025 14:29
Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
Verify (which should be called Prepare) must run before the
fakemachine is created, in order to setup the arguments for the
fakemachine itself. It then has to run again in the fakemachine
in order to rebuild any necessary internal state.

Command checking can only occur in the same environment as run, as
commands that are in the path when running may not be available to
the regular user (e.g. Debian installs debootstrap in sbin).

Signed-off-by: Ed Smith <ed.smith@collabora.com>
Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
Copy link
Member

@sjoerdsimons sjoerdsimons left a comment

Choose a reason for hiding this comment

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

Need to verify the mmdebstrap action as well

@sjoerdsimons
Copy link
Member

@daissi is there a reason for this to be a draft?

Signed-off-by: Ed Smith <ed.smith@collabora.com>
Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
@daissi daissi force-pushed the eds/daissi/verify branch from 7010a53 to e7f54b5 Compare October 27, 2025 17:15
@daissi
Copy link
Member Author

daissi commented Oct 27, 2025

Need to verify the mmdebstrap action as well

Fixed!

@daissi
Copy link
Member Author

daissi commented Oct 27, 2025

@daissi is there a reason for this to be a draft?

Just because I haven't addressed all the comments, but let's remove the draft status.

@daissi daissi marked this pull request as ready for review October 27, 2025 17:19
@obbardc
Copy link
Member

obbardc commented Nov 30, 2025

@daissi this needs rebasing on main & couple of simple comments actioning :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

actions: check for presence of required commands in Verify()

5 participants