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

Avoid duplicate deployments for customized needed_services #371

Merged
merged 1 commit into from Apr 17, 2019

Conversation

thomas-riccardi
Copy link
Contributor

Closes #353

Since (#344 and) #338 we re-use the needed_services dependency tree
to order the deployments steps.

This had an unexpected consequence: "duplicated" services via
customization via needed_services also duplicated their deployment.

Customized needed_services make in fact only sense for local execution
as a dependency during dmake shell/test/run: it should not create
new deployments.

PR #334 + #338 changed the semantic of dmake deploy: deployment is
now recursive. We still want that.

This commit resolves all this by following on #338:

  • recurse at the deployment level
  • but strip service customization in recursion

Closes #353

Since (#344 and) #338 we re-use the `needed_services` dependency tree
to order the deployments steps.

This had an unexpected consequence: "duplicated" services via
customization via `needed_services` also duplicated their deployment.

Customized needed_services make in fact only sense for local execution
as a dependency during `dmake shell/test/run`: it should *not* create
new deployments.

PR #334 + #338 changed the semantic of `dmake deploy`: deployment is
now recursive. We still want that.

This commit resolves all this by following on #338:
- recurse at the deployment level
- but strip service customization in recursion
@thomas-riccardi thomas-riccardi merged commit d8c2069 into master Apr 17, 2019
@thomas-riccardi thomas-riccardi deleted the dev-353-fix_duplicate_deployments branch April 17, 2019 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dmake deploy '*' deploys services multiple times because of customized needed_services
2 participants