Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions: overlay: Check source exists during RecipeDir during verification #304

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

obbardc
Copy link
Member

@obbardc obbardc commented Jan 12, 2022

If an overlay coming from the recipe directory doesn't
exist, the recipe exits during execution. Let's check
early if the overlay exists on the host filesystem.

@sjoerdsimons
Copy link
Member

bors try

bors bot added a commit that referenced this pull request Apr 28, 2022
actions/overlay_action.go Outdated Show resolved Hide resolved
@bors
Copy link
Contributor

bors bot commented Apr 28, 2022

try

Build failed:

@obbardc obbardc self-assigned this Jul 27, 2023
@obbardc obbardc changed the title actions/overlay: Check source exists during recipe verification actions: overlay: Check source exists during recipe verification Jul 27, 2023
@obbardc obbardc changed the title actions: overlay: Check source exists during recipe verification actions: overlay: Check source exists during RecipeDir during verification Jul 27, 2023
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from 12bd81a to 9a89ebe Compare July 27, 2023 15:58
…ation

If an overlay (with a source from the recipe directory which is unlikely
to change during execution) doesn't exist, the recipe errors out during
execution. Let's check early if the overlay exists on the host filesystem
inside the recipe directory.

Signed-off-by: Christopher Obbard <[email protected]>
Since the overlay-non-existent-destination test now also checks for a
non-existent source, let's rename the test to be overlay to better describe
the test contents.

Signed-off-by: Christopher Obbard <[email protected]>
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from 9a89ebe to add9a02 Compare January 10, 2024 15:14
@obbardc obbardc added this to the v1.1.4 milestone Jan 10, 2024
@@ -1,6 +1,12 @@
architecture: amd64

actions:
# This overlay action is expected to error out here because the source
# doesn't exist in the recipe directory.
Copy link
Member

Choose a reason for hiding this comment

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

so now the next part is no longer tested because this one already errored out right or am i missing something?

Copy link
Member

Choose a reason for hiding this comment

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

would it make sense to do the rename in the same commit where you changed it ? also this seems to only delete not add the new name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review required
Development

Successfully merging this pull request may close these issues.

2 participants