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
Updater doesn't delete some files automatically #18435
Comments
@tsteur We are actually ignoring all files starting with |
@tsteur regarding the other part of this issue. I wouldn't start trying to sync/remove other parts. Guess we had a good reason not to do that. To circumvent we have similar issues in the future we could create a github action, that automatically checks the changes in a PR. And if a file is deleted, that wouldn't be caught by the updater we could add a comment on the PR to check if an update script is provided to remove those files. |
Would that action run on the archive repository? As we might delete a file from root directory in the script that builds the release? And it would run in this repository? could maybe also a regular test run the above command so it runs as part of the tests? |
No, that action would run in this repository for all pull request. |
👍 OK. I was hoping we could just run |
A user noticed this issue: |
Seen eg in #18411 (comment) and #18415 #18418
At least some of these files (I'm thinking
node_modules/iframe-resizer/.eslintrc
andnode_modules/ng-dialog/.eslintrc
, andvendor/php-di/php-di/.gitstats.yml
andvendor/php-di/php-di/.phpstorm.meta.php
) we would have expected to be deleted automatically eg in https://github.com/matomo-org/matomo/blob/4.6.1/plugins/CoreUpdater/Model.php#L26-L36 Unless there's a different problem that these files shouldn't have been in the manifest file or so.Also maybe we can check if we can delete some files in the Matomo root directory which we haven't done in the past. This can be tricky though as some files like a
.htaccess
we wouldn't want to delete. As part of this issue we investigate if we can delete some of these files automatically, or whether tests can help us make aware that we need to delete certain files manually if they are gone in the release (might be tricky as it's done in the build script I assume). If we can't delete them automatically, and can't test for it, then we need to make sure that when we make changes to the package script that we are made aware in any way to not forget to change this.Maybe even a test could otherwise fetch the build script and parse for
rm -rf
calls etc.The text was updated successfully, but these errors were encountered: