Fix the series selection logic for deploying local charms. #7285

Merged
merged 1 commit into from Apr 27, 2017

Conversation

Projects
None yet
3 participants
Owner

howbazaar commented Apr 27, 2017

Description of change

There was incorrect logic around old style local charms and the series that should be used by default.
The seriesSelector object now holds all that logic. Precedence is as follows:

  • series specified on the command line
  • series determined through charm URL
  • model default series
  • errors if none of those are specified

QA steps

This will fix our CI test failures where they are deploying an old style charm with no series specified in the metadata.

cmd/juju/application/series_selector.go
+//
+// This type should really have a Validate method, as the force flag
+// is really only valid if the seriesFlag is specified.
+// There is code and tests that allow the force flag when series isn't
@wallyworld

wallyworld Apr 27, 2017

Owner

Can we make this a TODO.
Bonus points for a tech-debt bug.

Owner

howbazaar commented Apr 27, 2017

$$merge$$

Contributor

jujubot commented Apr 27, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Apr 27, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10767

Owner

howbazaar commented Apr 27, 2017

$$try-again$$

Contributor

jujubot commented Apr 27, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Apr 27, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10771

Owner

howbazaar commented Apr 27, 2017

$$intermittent$$

Contributor

jujubot commented Apr 27, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Apr 27, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10781

Owner

howbazaar commented Apr 27, 2017

$$merge$$

Contributor

jujubot commented Apr 27, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 95afb29 into juju:develop Apr 27, 2017

1 check failed

github-check-merge-juju Built PR, ran unit tests, and tested LXD deploy. Use !!.*!! to request another build. IE, !!build!!, !!retry!!
Details

@howbazaar howbazaar deleted the howbazaar:fix-series-selector branch Apr 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment