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: using our own pod template hashing #1809

Merged

Conversation

perenesenko
Copy link
Member

@perenesenko perenesenko commented Jan 26, 2022

Fix for #1356

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, (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.

Copy link
Member

@huikang huikang left a comment

Choose a reason for hiding this comment

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

Looks great, except for some failed unit test.

utils/hash/hash.go Outdated Show resolved Hide resolved
Signed-off-by: Andrii Perenesenko <[email protected]>
# Conflicts:
#	rollout/controller_test.go
#	utils/conditions/rollouts_test.go
#	utils/experiment/experiment_test.go
Signed-off-by: Andrii Perenesenko <[email protected]>
@codecov
Copy link

codecov bot commented Jan 27, 2022

Codecov Report

Merging #1809 (0a6342b) into master (f388937) will decrease coverage by 0.06%.
The diff coverage is 83.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1809      +/-   ##
==========================================
- Coverage   82.33%   82.26%   -0.07%     
==========================================
  Files         116      117       +1     
  Lines       16393    16419      +26     
==========================================
+ Hits        13497    13507      +10     
- Misses       2217     2231      +14     
- Partials      679      681       +2     
Impacted Files Coverage Δ
utils/hash/hash.go 60.00% <60.00%> (ø)
utils/replicaset/replicaset.go 88.27% <95.23%> (-1.78%) ⬇️
experiments/replicaset.go 85.25% <100.00%> (ø)
rollout/controller.go 75.38% <100.00%> (ø)
rollout/experiment.go 84.13% <100.00%> (ø)
rollout/sync.go 79.68% <100.00%> (ø)
utils/experiment/experiment.go 93.10% <100.00%> (+0.04%) ⬆️
utils/replicaset/canary.go 89.26% <0.00%> (-0.23%) ⬇️

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 f388937...0a6342b. Read the comment docs.

…meter to the FindOldReplicaSets as it using only right after the FindNewReplicaSet

Signed-off-by: Andrii Perenesenko <[email protected]>
Signed-off-by: Andrii Perenesenko <[email protected]>
# Conflicts:
#	rollout/experiment_test.go
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 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 1 Code Smell

No Coverage information No Coverage information
4.6% 4.6% Duplication

Copy link
Member

@huikang huikang left a comment

Choose a reason for hiding this comment

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

LGTM

@perenesenko perenesenko merged commit e79296a into argoproj:master Feb 2, 2022
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.

Incorrect pod template change detection after upgrade from v0.10 to v1.0
2 participants