-
-
Notifications
You must be signed in to change notification settings - Fork 840
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
Improve deleted.files Workflow #4217
Comments
Further improvementsIMHO there may be room for further improvements to the workflow.
Deleting old entriesDeleting old entries when file is re-introduced i.e. remove any lines that point to files that exist in current master to comply with the original request. Newest entries to the top of the listAny additions of deleted files should be made to the top of the list, I presume. But this is not the case. Obviously, the current workflow only adds newly deleted files to the end of the This looks like an oversimplified action, unfortunately. The relevant shell script line is:
This could become quite cumbersome to the devs in merging and could produce a quite misleading list of deleted files. The current data/deleted.files holds the deleted files from latest (i.e. 2022-06-26) to oldest (i.e. 2006-03-09) change in a reasonable chronological order. Any addition to the end of this file would produce a quite misleading information as this should be the oldest entries and not the newest. Proof of exampleAn abbreviated form of the a.m. file looks like:
Testing the workflow on my fork by deleting just the The respective Update deleted files commit looks like:
This is not optimal. Any additions should be made to the top of the list, I presume. |
Tested on my lokal fork with ref data/deleted.files by deleting two exemplary files
and pushing to master branch after establishing the new workflow definition. In the result the respective Update deleted files commit contains a new list as requested like:
NOTE: Naturally, both README files shall remain in the original master branch for the time being. Voila. |
Tested on my local fork ref data/deleted.files by re-introducing exemplary files.
Again pushing to master branch after establishing the newly improved workflow definition. In the result the respective Update deleted files commit contains a newly cleaned list as requested like:
Obviously, the re-introduced files have their entries deleted as requested. NOTE: Naturally, all the files shall remain unchanged in the original master branch for the time being. Voila. |
The improved approach overcomes limitations of #4254 |
Updated #4256 for adding the current ISO date. An example of the outcome after deleting and re-introducing some files is given below: I would hope this helps. Voila. |
The current workflow only adds newly deleted files to data/deleted.files. It does not ensure that the file does not contain any files that exist (again). This lead to #4214
The action should remove any lines that point to files that exist in current master.
The text was updated successfully, but these errors were encountered: