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

feat(pipeline): add target config dependsonchange #1782

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

mcwarman
Copy link
Member

dependsonchange enables the mechanism to check if the dependant target(s) have made a change. If the dependant target(s) have not made a change the target will be skipped.

Test

To test this pull request, you can run the following commands:

go build -o ./bin/updatecli && ./bin/updatecli diff --config e2e/updatecli.d/success.d/command.yaml

Additional Information

Tradeoff

Only e2e tests

Potential improvement

There's no unit tests of RunTargets, I might have a look at getting some in but wanted to get this up for review.

- dependsonchange enables the mechanism to check if the dependant target(s) have made a change. If the dependant target(s) have not made a change the target will be skipped.
Copy link
Member

@olblak olblak left a comment

Choose a reason for hiding this comment

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

Thanks for the pullrequest. It's great and I see some usecase in some pipeline generated by autodiscovery.

While testing, I spot an unrelated minor issue which I'll fix in a follow pr

@olblak olblak added the enhancement New feature or request label Nov 27, 2023
@olblak olblak merged commit c1dbe85 into updatecli:main Nov 27, 2023
6 checks passed
@mcwarman mcwarman deleted the feature/dependsonchange branch November 27, 2023 13:51
@olblak olblak changed the title feat(pipeline): add taget config dependsonchange feat(pipeline): add target config dependsonchange Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants