Skip to content

Conversation

pasha-codefresh
Copy link
Member

@pasha-codefresh pasha-codefresh commented Apr 13, 2025

pasha and others added 6 commits April 13, 2025 13:35
…evel

Signed-off-by: pasha <pasha.k@fyxt.com>
…ontext

- Introduced a new option to skip dry run verification for missing resources at the application level.
- Updated the sync context to include a flag for this feature.
- Enhanced tests to cover scenarios where the skip dry run annotation is applied to all resources.
@pasha-codefresh pasha-codefresh requested a review from a team as a code owner April 13, 2025 13:55
Copy link

Copy link

codecov bot commented Apr 13, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.

Project coverage is 53.64%. Comparing base (8849c3f) to head (3cd3902).
Report is 41 commits behind head on master.

Files with missing lines Patch % Lines
pkg/sync/sync_context.go 66.66% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #712      +/-   ##
==========================================
- Coverage   54.26%   53.64%   -0.63%     
==========================================
  Files          64       64              
  Lines        6164     6474     +310     
==========================================
+ Hits         3345     3473     +128     
- Misses       2549     2725     +176     
- Partials      270      276       +6     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Nheijmink19
Copy link
Contributor

couldn't you just use the new skipDryrun functionality? that one is on application scope? (not yet available in argoCD, but implemented in the git-ops engine)

@pasha-codefresh
Copy link
Member Author

Will not it skip dry run completely and not just in case when resource is missing? the whole idea is not to configure SkipDryRunOnMissingResource for every resource and has it on application level. So it will ignore resource not found , but still will do dry run and probably catch other errors

@reggie-k reggie-k merged commit d65e9d9 into argoproj:master Apr 20, 2025
5 checks passed
RoelofKuijpers pushed a commit to RoelofKuijpers/gitops-engine that referenced this pull request Jul 29, 2025
…evel (argoproj#712)

* fix: go mod tidy is not working due to k8s.io/externaljwt dependency

Signed-off-by: pasha <pasha.k@fyxt.com>

* feat: Enable SkipDryRunOnMissingResource sync option on Application level

Signed-off-by: pasha <pasha.k@fyxt.com>

* feat: Enable SkipDryRunOnMissingResource sync option on Application level

* feat: add support for skipping dry run on missing resources in sync context

- Introduced a new option to skip dry run verification for missing resources at the application level.
- Updated the sync context to include a flag for this feature.
- Enhanced tests to cover scenarios where the skip dry run annotation is applied to all resources.

---------

Signed-off-by: pasha <pasha.k@fyxt.com>
Co-authored-by: pasha <pasha.k@fyxt.com>
Signed-off-by: Roelof Kuijpers <roelof.kuijpers@energyessentials.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants