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

Initial analysis controller implementation #168

Merged
merged 5 commits into from
Sep 28, 2019

Conversation

jessesuen
Copy link
Member

@jessesuen jessesuen commented Sep 26, 2019

Initial AnalysisRun controller logic. Reconcilation does not do anything yet -- need provider interfaces to continue further.

@codecov
Copy link

codecov bot commented Sep 26, 2019

Codecov Report

Merging #168 into master will decrease coverage by 0.92%.
The diff coverage is 72.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
- Coverage   82.83%   81.91%   -0.93%     
==========================================
  Files          27       29       +2     
  Lines        2587     2848     +261     
==========================================
+ Hits         2143     2333     +190     
- Misses        316      379      +63     
- Partials      128      136       +8
Impacted Files Coverage Δ
utils/log/log.go 100% <100%> (ø) ⬆️
analysis/analysis.go 63.12% <63.12%> (ø)
analysis/controller.go 63.46% <63.46%> (ø)
utils/analysis/analysis.go 97.05% <97.01%> (+97.05%) ⬆️

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 6cf4f21...1c7ebfa. Read the comment docs.

@jessesuen jessesuen marked this pull request as ready for review September 27, 2019 21:48
Copy link
Member

@dthomson25 dthomson25 left a comment

Choose a reason for hiding this comment

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

I have a couple of questions, but I think it looks good!

analysis/analysis.go Show resolved Hide resolved
analysis/analysis.go Show resolved Hide resolved
analysis/analysis.go Show resolved Hide resolved
analysis/analysis.go Outdated Show resolved Hide resolved
// TODO(jessesuen): may need to tweak this logic
if metric.Count > 0 && result.Count >= metric.Count {
var status v1alpha1.AnalysisStatus
if result.Successful > result.Inconclusive {
Copy link
Member

Choose a reason for hiding this comment

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

I'm still a little worried that this is a little "magical" to users. I'm not sure users would expect this to be the behavior

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree this may not be expected. I'm open to changing this, thus the TODO.

analysis/analysis.go Outdated Show resolved Hide resolved
analysis/analysis.go Show resolved Hide resolved
analysis/analysis.go Outdated Show resolved Hide resolved
analysis/controller_test.go Outdated Show resolved Hide resolved
analysis/analysis.go Outdated Show resolved Hide resolved
@jessesuen
Copy link
Member Author

Addressed comments. PTAL. Will leave the TODOs open for improvement later.

Copy link
Member

@dthomson25 dthomson25 left a comment

Choose a reason for hiding this comment

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

LGTM

@jessesuen jessesuen merged commit ea4974c into argoproj:master Sep 28, 2019
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