Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

(maint) Add global cleanup option for mock stubs #67

Merged
merged 1 commit into from
May 15, 2014
Merged

(maint) Add global cleanup option for mock stubs #67

merged 1 commit into from
May 15, 2014

Conversation

mckern
Copy link
Contributor

@mckern mckern commented May 12, 2014

Toggling the cleanup_on_failure option in our mock stubs will make it
easier to diagnose problems with builds by leaving failed builds
staged in their initialized mocks. By default, both options are true
(which is consistent with the defaults as shipped in mock).

Toggling the cleanup_on_failure option in our mock stubs will make it
easier to diagnose problems with builds by leaving failed builds
staged in their initialized mocks. By default, both options are true
(which is consistent with the defaults as shipped in mock).
@haus
Copy link
Contributor

haus commented May 13, 2014

👍

@MosesMendoza
Copy link
Contributor

Is the intended use case to set some nodes to permanently not clean up in various cases? If not, is the workflow that in order to adjust whether we want the cleanup to occur we have to edit the node definition, commit, PR, merge, for that builder to specify no cleanup? It seems like a lot of work to me.

@MosesMendoza
Copy link
Contributor

Is this intended for PE usage or FOSS or both? This will impact builders that the packaging repo uses, which has its own clean up - https://github.com/puppetlabs/packaging/blob/master/tasks/mock.rake#L209-L211

@mckern
Copy link
Contributor Author

mckern commented May 14, 2014

This only impacts whether or not the contents of the mock build are purged if the build fails. Cleaning up old mocks is still a good idea, but this will leave artifacts like config.log around if a mock dies (or continue to purge the mock build pieces if a build succeeds). PE & FOSS builds don't really matter in this context, just the ability to chroot into a mock and figure out why something fails.

@MosesMendoza
Copy link
Contributor

I see. I was missing the context that we would, after this change, update applications of this module to false for cleanup on failure. 👍

@mckern
Copy link
Contributor Author

mckern commented May 15, 2014

borat

Two thumbs up? I merge!

mckern added a commit that referenced this pull request May 15, 2014
(maint) Add global cleanup option for mock stubs
@mckern mckern merged commit 04f1a1c into puppetlabs-toy-chest:master May 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants