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: adding tests for helm OCI registry #5978

Merged
merged 8 commits into from
Apr 12, 2021

Conversation

mayzhang2000
Copy link
Contributor

@mayzhang2000 mayzhang2000 commented Apr 6, 2021

Signed-off-by: May Zhang [email protected]

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).

fixes #5918

@mayzhang2000 mayzhang2000 changed the title initial draft of adding tests for OCI initial draft of adding tests for helm OCI registry Apr 6, 2021
@mayzhang2000 mayzhang2000 changed the title initial draft of adding tests for helm OCI registry fix: initial draft of adding tests for helm OCI registry Apr 6, 2021
@codecov
Copy link

codecov bot commented Apr 6, 2021

Codecov Report

Merging #5978 (0dcc823) into master (ae2d0ff) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5978      +/-   ##
==========================================
- Coverage   40.95%   40.93%   -0.03%     
==========================================
  Files         147      147              
  Lines       19656    19661       +5     
==========================================
- Hits         8051     8049       -2     
- Misses      10499    10508       +9     
+ Partials     1106     1104       -2     
Impacted Files Coverage Δ
util/helm/helm.go 60.27% <0.00%> (-0.84%) ⬇️
reposerver/repository/repository.go 62.06% <0.00%> (-0.75%) ⬇️
server/application/application.go 30.23% <0.00%> (-0.33%) ⬇️
util/argo/argo.go 62.00% <0.00%> (+1.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae2d0ff...0dcc823. Read the comment docs.

@mayzhang2000 mayzhang2000 marked this pull request as ready for review April 9, 2021 16:44
@mayzhang2000 mayzhang2000 changed the title fix: initial draft of adding tests for helm OCI registry fix: adding tests for helm OCI registry Apr 9, 2021
@alexmt alexmt added the cherry-pick/2.0 Candidate for cherry picking into the 2.0 release branch label Apr 9, 2021
Copy link
Collaborator

@alexmt alexmt left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @mayzhang2000

@@ -76,14 +76,16 @@ func (h *helm) DependencyBuild() error {
repo := h.repos[i]
if repo.EnableOci {
h.cmd.IsHelmOci = true
_, err := h.cmd.Login(repo.Repo, repo.Creds)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch! 👍
We should cherry-pick it into v2.0

@mayzhang2000 mayzhang2000 merged commit 12cabdf into argoproj:master Apr 12, 2021
yujunz added a commit to abcue/argo-cd that referenced this pull request Apr 15, 2021
5bc7297 fix: bitbucket server failing diagnostics:ping (argoproj#6029) (argoproj#6034)
8f53bd5 fix: add helm dependencies with custom CA (argoproj#6003)
8fd6f13 docs: Custom resource actions (argoproj#5838)
8a2897d docs: update delete policy verbiage (argoproj#6025)
c847bd9 chore: remove Argo CD CRDs from namespaced install (argoproj#6022)
61080b3 docs: improve Orphaned Resources Monitoring with more examples and correct grammar (argoproj#6006)
8301d39 Adding explicit bind to redis and sentinel for IPv4 clusters argoproj#5957 (argoproj#6005)
12cabdf fix: adding tests for helm OCI registry (argoproj#5978)
9da9514 docs: Add Ant Group to the list of users (argoproj#6011)
5e34a8a add Polarpoint.io (argoproj#6010)
2f92777 chore: move access checks from api server to repo server (argoproj#5940)
ae2d0ff fix(ui): Unscheduled pods in node view are now visible. Fixes argoproj#5981 (argoproj#5988)
b003f70 docs: SealedSecret status missing on k8s 1.16+ (argoproj#5846)
445872f fix: use correct field for evaluating whether or not GitHub Enterprise is selected (argoproj#5987)
9afa833 chore: Make e2e tests runnable against remote cluster (argoproj#5895)
shubhamagarwal19 pushed a commit to shubhamagarwal19/argo-cd that referenced this pull request Apr 15, 2021
* initial draft of adding tests for OCI

Signed-off-by: May Zhang <[email protected]>

* fix: initial draft of adding tests for OCI

Signed-off-by: May Zhang <[email protected]>

* bring up registry for tests

Signed-off-by: May Zhang <[email protected]>

* bring up registry for tests

Signed-off-by: May Zhang <[email protected]>

* bring up registry for tests

Signed-off-by: May Zhang <[email protected]>

* fix: just to test if PR is working

Signed-off-by: May Zhang <[email protected]>

* adding additional helm oci dependencies tests

Signed-off-by: May Zhang <[email protected]>
@jannfis jannfis added the needs-verification PR requires pre-release verification label Jun 25, 2021
@mayzhang2000 mayzhang2000 removed the needs-verification PR requires pre-release verification label Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/2.0 Candidate for cherry picking into the 2.0 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support OCI Helm registries in e2e tests
3 participants