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

fix: check err before use schedule and duration (cherry-pick #20043) #20353

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked fix: check err before use schedule and duration (#20043)

  • fix: check err before use schedule and duration

Signed-off-by: daengdaengLee gunho1020@gmail.com

  • test: add tests for invalid schedule and duration

Signed-off-by: daengdaengLee gunho1020@gmail.com

  • feat: change to return error when sync window is invalid

Signed-off-by: daengdaengLee gunho1020@gmail.com

  • fix: use assert.Error or assert.NoError

Signed-off-by: daengdaengLee gunho1020@gmail.com

  • fix: use require instead of assert

Signed-off-by: daengdaengLee gunho1020@gmail.com


Signed-off-by: daengdaengLee gunho1020@gmail.com

* fix: check err before use schedule and duration

Signed-off-by: daengdaengLee <gunho1020@gmail.com>

* test: add tests for invalid schedule and duration

Signed-off-by: daengdaengLee <gunho1020@gmail.com>

* feat: change to return error when sync window is invalid

Signed-off-by: daengdaengLee <gunho1020@gmail.com>

* fix: use assert.Error or assert.NoError

Signed-off-by: daengdaengLee <gunho1020@gmail.com>

* fix: use require instead of assert

Signed-off-by: daengdaengLee <gunho1020@gmail.com>

---------

Signed-off-by: daengdaengLee <gunho1020@gmail.com>
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested a review from a team as a code owner October 12, 2024 17:33
@crenshaw-dev crenshaw-dev merged commit a9a8d0e into release-2.13 Oct 12, 2024
9 of 13 checks passed
@crenshaw-dev crenshaw-dev deleted the cherry-pick-963c53-release-2.13 branch October 12, 2024 17:33
Copy link

codecov bot commented Oct 12, 2024

Codecov Report

Attention: Patch coverage is 75.94937% with 19 lines in your changes missing coverage. Please review.

Project coverage is 55.88%. Comparing base (a713e50) to head (9f556a5).
Report is 2 commits behind head on release-2.13.

Files with missing lines Patch % Lines
server/application/application.go 36.36% 3 Missing and 4 partials ⚠️
controller/sync.go 69.23% 2 Missing and 2 partials ⚠️
cmd/argocd/commands/app.go 66.66% 0 Missing and 2 partials ⚠️
cmd/argocd/commands/projectwindows.go 0.00% 2 Missing ⚠️
pkg/apis/application/v1alpha1/types.go 95.23% 1 Missing and 1 partial ⚠️
server/project/project.go 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-2.13   #20353      +/-   ##
================================================
- Coverage         55.88%   55.88%   -0.01%     
================================================
  Files               320      320              
  Lines             44415    44451      +36     
================================================
+ Hits              24823    24843      +20     
- Misses            17031    17039       +8     
- Partials           2561     2569       +8     

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

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.

2 participants