-
-
Notifications
You must be signed in to change notification settings - Fork 51
fix(#551): fix issue with file deletion #596
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
Conversation
Signed-off-by: Andy Augustin <[email protected]>
59c3248 to
a439e73
Compare
|
Was the happy and unhappy path tested ? |
Hi @aairey did you reveal any issue? |
|
No, we are about to test ourselves but was wondering if testing already took place before the merge - as this is fixing a bug :). |
|
Hi @aairey did you run tests on your side? Did you reveal any issues? |
|
I tried using the delete feature of template sync with the following git remote pull parameters options, but I didn't achieve the expected result. Please find the respective logs for each of the git remote pull parameters options below. git_remote_pull_params: --allow-unrelated-histories --strategy=recursive -X theirs ::warn::files to delete: .github/workflows/build-and-release.yml #It picks almost all the files from the destination repo instead on template sync repo. Not sure where it syncs from. git_remote_pull_params: --allow-unrelated-histories --squash --strategy=recursive -X theirs ::warn::files to delete: #No files were detected. git_remote_pull_params: --allow-unrelated-histories --strategy=recursive --no-edit ::warn::files to delete: #No files were detected. git_remote_pull_params: --allow-unrelated-histories --squash --strategy=recursive -X theirs --no-edit --no-rebase ::warn::files to delete: #No files were detected. Kindly help me with the exact git remote pull params command to achieve the result. |
|
Hi @brajeev5 thanks for your comment please try Currently implemented without caching the last remote hash but I guess this need to be changed. |
|
Thank you @AndreasAugustin for your response. I have shared the results of |
|
Maybe it is wrongfully comparing with |
theoretically no because the HEAD at this point in time is the hash from the remote (at least it should be and I tested that some time ago within https://github.com/AndreasAugustin/actions-template-sync/pull/435/files). Algorithm idea This will also fix possible issues with squashes and other history related changes on the target. Currently I think an easy way doing that is using Because of the need of a permission change this will possibly be a major release. |
|
It is an approach and probably achieves some extra goals, yet it is adding some complexity and some other edge cases may arise. Let me re-iterate it for clarity: Just my 2 cents. The |
I totally understand and second that the idea is bringing some extra complexity. Nevertheless I do not find a easy solution which is working it seems. But if you have an idea. I totally looking forward to a PR from your side or just adding your ideas as comment 👍 😃 |
Description
Close #551
Fix issue with force deletion of files.
Checking #401 https://github.com/AndreasAugustin/actions-template-sync/pull/435/files the issue lies in some refactorings and race conditions. With the current implementation it checked the deleted files for an interval between the same hash what does not make any sense
Remark
For automation please see closing-issues-using-keywords