Skip to content

(PUP-9136) Ensure state is preserved between runs#72

Merged
kris-bosland merged 1 commit into
puppetlabs:masterfrom
melissa:ticket/master/save-state
Oct 25, 2018
Merged

(PUP-9136) Ensure state is preserved between runs#72
kris-bosland merged 1 commit into
puppetlabs:masterfrom
melissa:ticket/master/save-state

Conversation

@melissa
Copy link
Copy Markdown
Contributor

@melissa melissa commented Sep 26, 2018

We need to be able to preserve the state of the hosts that is set up
during the pre-suite runs. We previously were relying on beaker to
initiate this on every invocation, but that behavior was removed in
beaker 4. This commit takes advantage of a new flag that will cause
invocations of beaker exec to save the host state. We really only want
to do this when we're running pre-suites.

@melissa
Copy link
Copy Markdown
Contributor Author

melissa commented Sep 26, 2018

This depends on voxpupuli/beaker#1544, and may need a beaker bump once that change is merged

@melissa
Copy link
Copy Markdown
Contributor Author

melissa commented Oct 11, 2018

We'll want to bump the beaker dependency in this PR as well, to ensure we use a version of beaker that supports this new flag.

Copy link
Copy Markdown
Contributor

@kris-bosland kris-bosland left a comment

Choose a reason for hiding this comment

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

👍 LGTM.

@melissa
Copy link
Copy Markdown
Contributor Author

melissa commented Oct 24, 2018

For those playing along, the PR Tests are currently failing with

12:42:59 Bundler could not find compatible versions for gem "beaker":
12:42:59   In Gemfile:
12:42:59     beaker (~> 4.0)
12:42:59 
12:42:59     beaker-puppet was resolved to 1.6.0, which depends on
12:42:59       beaker (>= 4.0.1, ~> 4.0)
12:42:59 
12:42:59 Could not find gem 'beaker (>= 4.0.1, ~> 4.0)', which is required by gem

which is perfect, since beaker 4.0.1 should be released tomorrow!! I'll be sure to re-kick these tests once that's available.

We need to be able to preserve the state of the hosts that is set up
during the pre-suite runs. We previously were relying on beaker to
initiate this on every invocation, but that behavior was removed in
beaker 4. This commit takes advantage of a new flag that will cause
invocations of `beaker exec` to save the host state. We really only want
to do this when we're running pre-suites.

The `--preserve-state` flag was introduced in beaker 4.1.0. If we try to
run these tasks with a lower version of beaker, we'll get a failure
because of an unknown option.
@melissa melissa force-pushed the ticket/master/save-state branch from 73bebf9 to ba30fd5 Compare October 25, 2018 21:02
@melissa
Copy link
Copy Markdown
Contributor Author

melissa commented Oct 25, 2018

jenkins please test this

@melissa
Copy link
Copy Markdown
Contributor Author

melissa commented Oct 25, 2018

jenkins retest this please

@melissa
Copy link
Copy Markdown
Contributor Author

melissa commented Oct 25, 2018

@kevpl @ekinanp @joshcooper @jhelwig @kris-bosland the beaker 4.1.0 release having just happened, we can officially merge this. We should also cut a beaker-puppet release asap

@kris-bosland kris-bosland merged commit 3afa730 into puppetlabs:master Oct 25, 2018
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