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(cli): nil pointer while linting #2324

Merged
merged 12 commits into from
Oct 13, 2022

Conversation

zachaller
Copy link
Collaborator

fixes #2322

Signed-off-by: zachaller [email protected]

Signed-off-by: zachaller <[email protected]>
@zachaller zachaller changed the title fix nil pointer on lint fix:(cli) nil pointer on lint Oct 13, 2022
@zachaller zachaller changed the title fix:(cli) nil pointer on lint fix:(cli) nil pointer while linting Oct 13, 2022
@zachaller zachaller changed the title fix:(cli) nil pointer while linting fix(cli): nil pointer while linting Oct 13, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2022

Go Published Test Results

1 778 tests   1 778 ✔️  2m 30s ⏱️
   101 suites         0 💤
       1 files           0

Results for commit c101738.

♻️ This comment has been updated with latest results.

Signed-off-by: zachaller <[email protected]>
@zachaller zachaller added this to the v1.4 milestone Oct 13, 2022
@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Base: 82.38% // Head: 82.76% // Increases project coverage by +0.38% 🎉

Coverage data is based on head (c101738) compared to base (1394f4e).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2324      +/-   ##
==========================================
+ Coverage   82.38%   82.76%   +0.38%     
==========================================
  Files         121      121              
  Lines       18476    18522      +46     
==========================================
+ Hits        15221    15330     +109     
+ Misses       2468     2408      -60     
+ Partials      787      784       -3     
Impacted Files Coverage Δ
.../apis/rollouts/validation/validation_references.go 90.65% <100.00%> (+0.21%) ⬆️
pkg/kubectl-argo-rollouts/cmd/lint/lint.go 85.84% <100.00%> (+0.20%) ⬆️
controller/metrics/metrics.go 100.00% <0.00%> (ø)
controller/controller.go 91.41% <0.00%> (+1.96%) ⬆️
rollout/trafficrouting/istio/controller.go 53.36% <0.00%> (+2.55%) ⬆️
rollout/controller.go 80.77% <0.00%> (+2.77%) ⬆️
experiments/controller.go 71.42% <0.00%> (+5.67%) ⬆️
service/service.go 78.51% <0.00%> (+10.13%) ⬆️
ingress/ingress.go 74.00% <0.00%> (+12.94%) ⬆️
analysis/controller.go 61.53% <0.00%> (+13.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@zachaller zachaller added the ready-for-review Ready for final review label Oct 13, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2022

E2E Tests Published Test Results

89 tests   86 ✔️  44m 25s ⏱️
  1 suites    3 💤
  1 files      0

Results for commit c101738.

♻️ This comment has been updated with latest results.

Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
@mayzhang2000 mayzhang2000 self-requested a review October 13, 2022 17:40
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
Signed-off-by: zachaller <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Oct 13, 2022

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
4.2% 4.2% Duplication

Copy link
Contributor

@mayzhang2000 mayzhang2000 left a comment

Choose a reason for hiding this comment

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

LGTM

@mayzhang2000 mayzhang2000 merged commit 83e9b40 into argoproj:master Oct 13, 2022
jenciso pushed a commit to jenciso/argo-rollouts that referenced this pull request Oct 25, 2022
* fix nil pointer on lint

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* add test for having a virtual service but not using it in rollout

Signed-off-by: zachaller <[email protected]>

* change logic

Signed-off-by: zachaller <[email protected]>

* improve test cov

Signed-off-by: zachaller <[email protected]>

* remove unreachable code

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* Add test coverage

Signed-off-by: zachaller <[email protected]>

* add more test coverage

Signed-off-by: zachaller <[email protected]>

* Standardize msg

Signed-off-by: zachaller <[email protected]>

* lint

Signed-off-by: zachaller <[email protected]>

Signed-off-by: zachaller <[email protected]>
jandersen-plaid pushed a commit to jandersen-plaid/argo-rollouts that referenced this pull request Nov 8, 2022
* fix nil pointer on lint

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* add test for having a virtual service but not using it in rollout

Signed-off-by: zachaller <[email protected]>

* change logic

Signed-off-by: zachaller <[email protected]>

* improve test cov

Signed-off-by: zachaller <[email protected]>

* remove unreachable code

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* Add test coverage

Signed-off-by: zachaller <[email protected]>

* add more test coverage

Signed-off-by: zachaller <[email protected]>

* Standardize msg

Signed-off-by: zachaller <[email protected]>

* lint

Signed-off-by: zachaller <[email protected]>

Signed-off-by: zachaller <[email protected]>
jandersen-plaid pushed a commit to jandersen-plaid/argo-rollouts that referenced this pull request Nov 26, 2022
* fix nil pointer on lint

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* add test for having a virtual service but not using it in rollout

Signed-off-by: zachaller <[email protected]>

* change logic

Signed-off-by: zachaller <[email protected]>

* improve test cov

Signed-off-by: zachaller <[email protected]>

* remove unreachable code

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

* Add test coverage

Signed-off-by: zachaller <[email protected]>

* add more test coverage

Signed-off-by: zachaller <[email protected]>

* Standardize msg

Signed-off-by: zachaller <[email protected]>

* lint

Signed-off-by: zachaller <[email protected]>

Signed-off-by: zachaller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review Ready for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

argo-rollouts lint 1.3.0 segfaults when there's a VirtualService specified
2 participants