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(controller): add canary steps plugin #3521

Merged
merged 50 commits into from
Aug 8, 2024

Conversation

agaudreault
Copy link
Member

@agaudreault agaudreault commented Apr 10, 2024

Implementation of #3480
Related to #2685

Additional work

The following work can be done in subsequent pull request to facilitate the review of the feature

  • Create Official step plugin example with best practice in argoproj-labs
  • Configurable defaults for error, requeue and minRequeue.
  • Health status in ArgoCD should reflect the "cause"
  • ArgoCD UI extensions to add plugin step information
  • Run step plugin e2e on CI
  • Allow to reload config without restarting container
  • Documentation
    • Explain step plugin behavior
    • Explain configuration
    • Example repository

Other

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Copy link
Contributor

github-actions bot commented Apr 10, 2024

Go Published Test Results

2 241 tests   2 241 ✅  2m 57s ⏱️
  128 suites      0 💤
    1 files        0 ❌

Results for commit 1fda169.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Apr 10, 2024

E2E Tests Published Test Results

  4 files    4 suites   3h 27m 50s ⏱️
111 tests  98 ✅  7 💤  6 ❌
466 runs  416 ✅ 28 💤 22 ❌

For more details on these failures, see this check.

Results for commit 1fda169.

♻️ This comment has been updated with latest results.

Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Attention: Patch coverage is 75.49801% with 123 lines in your changes missing coverage. Please review.

Project coverage is 84.04%. Comparing base (48131eb) to head (7459514).
Report is 68 commits behind head on master.

Files with missing lines Patch % Lines
rollout/steps/plugin/client/client.go 0.00% 44 Missing ⚠️
rollout/steps/plugin/resolver.go 9.09% 20 Missing ⚠️
rollout/stepplugin.go 86.71% 10 Missing and 9 partials ⚠️
rollout/steps/plugin/plugin.go 88.97% 10 Missing and 5 partials ⚠️
utils/plugin/types/steps.go 0.00% 9 Missing ⚠️
rollout/canary.go 50.00% 3 Missing and 1 partial ⚠️
utils/config/config.go 85.18% 2 Missing and 2 partials ⚠️
utils/plugin/plugin.go 63.63% 2 Missing and 2 partials ⚠️
rollout/steps/plugin/rpc/rpc.go 97.50% 1 Missing and 1 partial ⚠️
metricproviders/plugin/client/client.go 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3521      +/-   ##
==========================================
- Coverage   84.23%   84.04%   -0.19%     
==========================================
  Files         154      161       +7     
  Lines       18022    18492     +470     
==========================================
+ Hits        15180    15541     +361     
- Misses       1999     2093      +94     
- Partials      843      858      +15     

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

Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
func (s *StepPluginSuite) SetupSuite() {
s.E2ESuite.SetupSuite()
if !IsStepPluginConfigured(&s.Common, s.GetControllerConfig()) {
s.T().SkipNow()
Copy link
Member Author

Choose a reason for hiding this comment

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

Should I configure E2E by default with a valid step plugin

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should but can do it, in a different PR.

Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
@agaudreault agaudreault marked this pull request as ready for review May 1, 2024 21:28
@agaudreault agaudreault requested a review from zachaller May 1, 2024 21:29
@agaudreault agaudreault changed the title feat(canary): define steps as plugins feat(controller): define steps as plugins May 1, 2024
@agaudreault agaudreault changed the title feat(controller): define steps as plugins feat(controller): add canary steps plugin May 1, 2024
Copy link

sonarqubecloud bot commented May 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Copy link
Contributor

github-actions bot commented Jul 25, 2024

Published E2E Test Results

  4 files    4 suites   3h 25m 45s ⏱️
112 tests 100 ✅  7 💤  5 ❌
458 runs  420 ✅ 28 💤 10 ❌

For more details on these failures, see this check.

Results for commit 7459514.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jul 25, 2024

Published Unit Test Results

2 257 tests   2 257 ✅  2m 58s ⏱️
  128 suites      0 💤
    1 files        0 ❌

Results for commit 7459514.

♻️ This comment has been updated with latest results.

Copy link

sonarqubecloud bot commented Aug 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@zachaller zachaller added this to the v1.8 milestone Aug 8, 2024
@zachaller zachaller merged commit 74c1a94 into argoproj:master Aug 8, 2024
22 of 25 checks passed
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