Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@josephsawaya
Copy link

This commit reworks the way fetchit gets changes
and applies them.

The point of this commit is to simplify the fetchit
process in order to make it more clear and extensible.

This commit reduces the previous process for applying
the initial state and following changes to just getting
the current state, getting the latest state, then applying
a method to the difference of those two states. In the case
of an initial apply, the current state is empty. Otherwise
the current state is marked by a git tag on the commit
corresponding to the current state.

This commit also fixes a bug where the scheduler was only
scheduling the first method in the queue to run immediately
rather than all of them.

This commit also removes all calls to the update method
of the fetchit config, since fetchit is using pointers to
manipulate target objects instead of making copies of them.

Signed-off-by: Joseph Sawaya [email protected]

This commit reworks the way fetchit gets changes
and applies them.

The point of this commit is to simplify the fetchit
process in order to make it more clear and extensible.

This commit reduces the previous process for applying
the initial state and following changes to just getting
the current state, getting the latest state, then applying
a method to the difference of those two states. In the case
of an initial apply, the current state is empty. Otherwise
the current state is marked by a git tag on the commit
corresponding to the current state.

This commit also fixes a bug where the scheduler was only
scheduling the first method in the queue to run immediately
rather than all of them.

This commit also removes all calls to the update method
of the fetchit config, since fetchit is using pointers to
manipulate target objects instead of making copies of them.

This commit also adds trailing slashes to all target paths
specifying direcotries, in the configs in the examples
directory.

Signed-off-by: Joseph Sawaya <[email protected]>
@sallyom
Copy link
Collaborator

sallyom commented Jun 2, 2022

This PR is looking great, it's a huge improvement.
Once this merges, don't forget (like me) to submit a follow-up to update the examples to containers/fetchit
error msgs/logging can be improved (overall, not from this PR specifically), they are noisy (good for now for debugging).
@cooktheryan I'm good w/ this if you are!

/lgtm

@josephsawaya josephsawaya changed the title [WIP] Rework git and application processes Rework git and application processes Jun 3, 2022
@cooktheryan cooktheryan merged commit 4e2f21a into containers:main Jun 3, 2022
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