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

Allow for plans to be partially successful #4709

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shkamensky
Copy link

When automerge is true, if any plan fails, all plans get deleted

This is true even when running from a github comment. When dealing with many projects, there is a high likelihood that one plan can fail.

This allows us to keep apply some plans and reiterate so we don't lose all progress.

what

Allow for plans to be saved when automerge is true by passing a flag.

why

Because the all-or-nothing nature of saving plans can make it very difficult to apply across many projects. For example, if 1 failed because of a DNS issue and 150 others plans succeeded, we want to apply the plans that succeeded and deal with the 1 plan manually.

tests

references

#3002

When automerge is true, if any plan fails, all plans get deleted

This is true even when running from a github comment.
When dealing with many projects, there is a high likelihood that one
plan can fail.

This allows us to keep apply some plans and reiterate so we don't lose
all progress.
@shkamensky shkamensky requested review from a team as code owners June 27, 2024 14:06
@shkamensky shkamensky requested review from chenrui333, lukemassa and nitrocode and removed request for a team June 27, 2024 14:06
@github-actions github-actions bot added the go Pull requests that update Go code label Jun 27, 2024
@jamengual
Copy link
Contributor

hi @shkamensky this will require some reviews that will take some time , in the meantime please add docs and tests. Thanks

@GenPage GenPage added feature New functionality/enhancement waiting-on-response Waiting for a response from the user needs tests Change requires tests needs docs labels Jun 27, 2024
Copy link

github-actions bot commented Aug 4, 2024

This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.

@github-actions github-actions bot added the Stale label Aug 4, 2024
@LukasdeBoer
Copy link

It would be a shame if this PR would go to waste because of staleness.

@jamengual jamengual removed the Stale label Aug 19, 2024
Copy link

This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.

@github-actions github-actions bot added the Stale label Sep 20, 2024
@LukasdeBoer
Copy link

@shkamensky are you willing to add the things that @jamengual is asking for? This PR would be a life saver!

@shkamensky
Copy link
Author

@LukasdeBoer , I really want to pursue this! This is for work and I need to make time to work on this. Once I get clearance I will continue this PR (and maybe others). Sorry for the delay. We desperately need this as well :-).

@github-actions github-actions bot removed the Stale label Sep 21, 2024
Copy link

This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.

@github-actions github-actions bot added the Stale label Oct 22, 2024
@LukasdeBoer
Copy link

bamp

@shkamensky
Copy link
Author

@LukasdeBoer good news, I will be able to work on this next week or the week after!

Are there any conventions for tests/docs, or a nice example PR I can model after?

@jamengual
Copy link
Contributor

any PR that was merge from @lukemassa or @GenPage could be a good example

@github-actions github-actions bot removed the Stale label Oct 23, 2024
Copy link

This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.

@github-actions github-actions bot added the Stale label Nov 23, 2024
@jamengual jamengual removed the Stale label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement go Pull requests that update Go code needs docs needs tests Change requires tests waiting-on-response Waiting for a response from the user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants