skilld-labs / plasmactl-bump

Launchrctl plugin to update the version of Ansible roles which were updated in last commit
Apache License 2.0
0 stars 1 forks source link

Fine-grained commit-level propagation based on git packages history #43

Open davidferlay opened 1 week ago

davidferlay commented 1 week ago

Current

Expected

packages should bring full git history

when we discover list of resources to propagate, need to crawl
- 1. platform source code
- 2. packages
to define which versions are prioritized (using git history of bumps))

and it will be mandatory for package to have git inside
unless we fallback to default behavior, to support both cases.
If we can't determine when version was added -> fallback to current bump --sync behavior
davidferlay commented 1 week ago

Also implementing git history parsing will fix a possible issue with propagation of variables value changes:

Example:

for variables change, rule is the same as for resources, but variables hash prevails over parents, meaning that in that case, resource will revert to same version as earlier, which will tell system to use existing image mamtching earlier version:

To fix that case it makes sense to follow the "parsing git history" to do propagation successively

iignatevich commented 1 week ago

for compose, need to add the way to identify from which place packaged was taken and store it. So next command, like bump --sync will have access to it and can properly propagate versions.