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

Return clean on failure #922

Merged
merged 3 commits into from Jun 16, 2020
Merged

Return clean on failure #922

merged 3 commits into from Jun 16, 2020

Conversation

rberrelleza
Copy link
Member

If the "clean" command fails, we shouldn't try and get the watches configuration from the remote container.

Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
@codecov
Copy link

codecov bot commented Jun 15, 2020

Codecov Report

Merging #922 into master will decrease coverage by 0.03%.
The diff coverage is 11.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #922      +/-   ##
==========================================
- Coverage   34.68%   34.64%   -0.04%     
==========================================
  Files          67       67              
  Lines        5648     5654       +6     
==========================================
  Hits         1959     1959              
- Misses       3535     3540       +5     
- Partials      154      155       +1     
Impacted Files Coverage Δ
cmd/up.go 6.28% <0.00%> (-0.03%) ⬇️
pkg/k8s/pods/pod.go 12.74% <0.00%> (ø)
pkg/syncthing/syncthing.go 0.53% <0.00%> (-0.01%) ⬇️
cmd/utils/watches.go 33.33% <25.00%> (-4.77%) ⬇️

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 206bce7...36a83f1. Read the comment docs.

@@ -806,6 +806,8 @@ func (up *UpContext) cleanCommand() {

if err != nil {
log.Infof("failed to clean session: %s", err)
up.cleaned <- struct{}{}
Copy link
Member Author

Choose a reason for hiding this comment

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

@pchico83 do you think we should fail the sequence here instead?

@derek derek bot added the no-dco label Jun 16, 2020
@derek
Copy link

derek bot commented Jun 16, 2020

Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide.
Tip: if you only have one commit so far then run: git commit --amend --signoff and then git push --force.

@rberrelleza rberrelleza merged commit bd2d1b9 into master Jun 16, 2020
@rberrelleza rberrelleza deleted the return-clean-on-failure branch June 16, 2020 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants