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

Test Verification for ProvisionerTask Worker Stoppage After Error #11146

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

manadart
Copy link
Member

@manadart manadart commented Jan 23, 2020

Checklist

  • Checked if it requires a pylibjuju change?
  • Added integration tests for the PR?
  • Added or updated doc.go related to packages changed?
  • Do comments answer the question of why design decisions were made?

Description of change

This patch simply adds a unit test to verify the change made in #11141.

It should be a golden rule that where we fix a bug from the field for functionality without test coverage, that coverage gap is closed.

QA steps

Unit tests fail sans #11141, but pass with it applied.

Documentation changes

None.

Bug reference

N/A

@manadart
Copy link
Member Author


res := make(chan error)
go func() {
res <- task.Wait()
Copy link
Contributor

Choose a reason for hiding this comment

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

DirtyKill always makes Wait return right?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's the same as CleanKill (will time-out with an error if wait does not return), but ignores the error.
Actually this means it can be done in simpler fashion; stand by.

Copy link
Contributor

@achilleasa achilleasa left a comment

Choose a reason for hiding this comment

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

LGTM. Just have a small question.

@manadart manadart force-pushed the 2.7-provisioner-worker-test branch from 39e9bf7 to ead1d6f Compare January 23, 2020 09:30
stoppage when an error is returned by populateAvailabilityZoneMachines.

Always add a test for in-theatre bugs previously uncovered.
@manadart manadart force-pushed the 2.7-provisioner-worker-test branch from ead1d6f to c45955f Compare January 23, 2020 09:37
@manadart
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit a659955 into juju:2.7 Jan 23, 2020
@manadart manadart deleted the 2.7-provisioner-worker-test branch January 23, 2020 10:17
@babbageclunk babbageclunk mentioned this pull request Jan 26, 2020
4 tasks
jujubot added a commit that referenced this pull request Jan 26, 2020
#11151

### Checklist

 - [x] Checked if it requires a [pylibjuju](https://github.com/juju/python-libjuju) change?
 - [x] Added [integration tests](https://github.com/juju/juju/tree/develop/tests) for the PR?
 - [x] Added or updated [doc.go](https://discourse.jujucharms.com/t/readme-in-packages/451) related to packages changed?
 - [x] Do comments answer the question of why design decisions were made?

----

## Description of change

This pulls the latest changes in the 2.7 branch into develop.
Brings in:
- #11139 from jameinel/2.7-detach-volume-state-changing-1860542
- #11141 from howbazaar/2.7-fix-provisioner-leak
- #11144 from babbageclunk/2.7-fix-destroy-test
- #11137 from ycliuhw/feature/vSphere-disk-resizing
- #11146 from manadart/2.7-provisioner-worker-test
- #11147 from manadart/relocate-systemd-files
- #11150 from manadart/2.7-controller-integration-test
- #11149 from manadart/2.7-systemd-upgrades

(No conflicts when merging.)
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.

3 participants