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: resolve args to metric in garbage collection function #2843

Merged
merged 7 commits into from
Jun 15, 2023

Conversation

zachaller
Copy link
Collaborator

Make sure we resolve args before creating the provider for garbage collection, this lets providers such as prometheus check that the url is valid if it contains any args.

Checklist:

  • 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: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Patch coverage: 40.00% and project coverage change: -0.02 ⚠️

Comparison is base (ded934b) 81.67% compared to head (9366a8e) 81.66%.

❗ Current head 9366a8e differs from pull request most recent head c9dd7ea. Consider uploading reports for the commit c9dd7ea to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2843      +/-   ##
==========================================
- Coverage   81.67%   81.66%   -0.02%     
==========================================
  Files         133      133              
  Lines       20188    20192       +4     
==========================================
+ Hits        16489    16490       +1     
- Misses       2847     2849       +2     
- Partials      852      853       +1     
Impacted Files Coverage Δ
analysis/analysis.go 87.52% <40.00%> (-0.45%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 14, 2023

Go Published Test Results

1 989 tests   1 989 ✔️  2m 35s ⏱️
   118 suites         0 💤
       1 files           0

Results for commit c9dd7ea.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

E2E Tests Published Test Results

    4 files      4 suites   3h 18m 34s ⏱️
  96 tests   87 ✔️   5 💤 4
390 runs  364 ✔️ 20 💤 6

For more details on these failures, see this check.

Results for commit 9366a8e.

analysis/analysis.go Outdated Show resolved Hide resolved
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Copy link
Contributor

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

LGTM

@zachaller zachaller enabled auto-merge (squash) June 15, 2023 15:48
@zachaller zachaller disabled auto-merge June 15, 2023 15:48
@zachaller zachaller enabled auto-merge (squash) June 15, 2023 15:48
@sonarcloud
Copy link

sonarcloud bot commented Jun 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.7% 3.7% Duplication

@zachaller zachaller merged commit 4e28aeb into argoproj:master Jun 15, 2023
zachaller added a commit that referenced this pull request Jun 15, 2023
* resolve args to metric in garbage collection function

Signed-off-by: zachaller <zachaller@users.noreply.github.com>

* remove incorrectly added test, this moved to a function

Signed-off-by: zachaller <zachaller@users.noreply.github.com>

* re-trigger

Signed-off-by: zachaller <zachaller@users.noreply.github.com>

* add context to errors

Signed-off-by: zachaller <zachaller@users.noreply.github.com>

* better error message

Signed-off-by: zachaller <zachaller@users.noreply.github.com>

* better error message

Signed-off-by: zachaller <zachaller@users.noreply.github.com>

---------

Signed-off-by: zachaller <zachaller@users.noreply.github.com>
@zachaller zachaller added the cherry-pick-completed Used once we have cherry picked the PR to all requested releases label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/release-1.5 cherry-pick-completed Used once we have cherry picked the PR to all requested releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants