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

feat!: make delete directive non-strict by default #3498

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Feb 13, 2025

Fixes: #3497

This makes a delete step succeed when a file or directory that is
attempted to be removed already does not exist, instead of failing.

In case this behavior is undesired, and the promotion has to fail
when the path does not exist, the strict configuration option can
be set to true.

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit 5018e44
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-io/deploys/67ad77a1c28a5500086010c5
😎 Deploy Preview https://deploy-preview-3498.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 52.26%. Comparing base (d497623) to head (5018e44).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/directives/file_deleter.go 90.90% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3498      +/-   ##
==========================================
+ Coverage   52.25%   52.26%   +0.01%     
==========================================
  Files         290      290              
  Lines       26307    26314       +7     
==========================================
+ Hits        13747    13754       +7     
  Misses      11810    11810              
  Partials      750      750              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hiddeco hiddeco force-pushed the fix-delete-directive branch from 800a0cb to 929d292 Compare February 13, 2025 04:37
This makes a `delete` step succeed when a file or directory that is
attempted to be removed already does not exist, instead of failing.

In case this behavior is undesired, and the promotion has to fail
when the path does not exist, the `strict` configuration option can
be set to `true`.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco force-pushed the fix-delete-directive branch from 929d292 to 5018e44 Compare February 13, 2025 04:39
@krancour krancour modified the milestones: v1.3.0, v1.2.3 Feb 15, 2025
@hiddeco hiddeco added this pull request to the merge queue Feb 15, 2025
Merged via the queue into akuity:main with commit 7b9b9e5 Feb 15, 2025
19 checks passed
@hiddeco hiddeco deleted the fix-delete-directive branch February 15, 2025 07:51
github-actions bot pushed a commit that referenced this pull request Feb 15, 2025
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit 7b9b9e5)
@akuitybot
Copy link

Successfully created backport PR for release-1.2:

hiddeco added a commit that referenced this pull request Feb 15, 2025
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit 7b9b9e5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

delete step should be idempotent
3 participants