ci(checkers): Fix autoloader (re)generation for extraneous apps#37476
ci(checkers): Fix autoloader (re)generation for extraneous apps#37476
Conversation
come-nc
left a comment
There was a problem hiding this comment.
Any chance to make it stop creating a huge diff when there are no change in files?
Composer files are not designed to be commited to git. I can't think of a way to disable any diffs for the generated autoloader code. If we remove the autoloaders from git and generate them at dev and release time we circumvent the problem. |
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
10a07c6 to
b2c9a57
Compare
| $COMPOSER_COMMAND dump-autoload -d $REPODIR | ||
|
|
||
| for app in ${REPODIR}/apps/*; do | ||
| if git check-ignore ${app} -q ; then |
There was a problem hiding this comment.
Should it be the other way arround? git check-ignore returns 0 if the file is ignored. This will only non ignored files will be skipped like this.
There was a problem hiding this comment.
if git check-ignore apps/mail -q ; then echo "mail should be skipped"; fi -> goes into the conditional branch. This is what we want here. If the file is ignored we want to continue the loop.
|
Btw this could also replace my local patch for diff --git a/build/image-optimization.sh b/build/image-optimization.sh
index e559d8552f6..99ac9048e1a 100755
--- a/build/image-optimization.sh
+++ b/build/image-optimization.sh
@@ -33,6 +33,22 @@ function recursive_optimize_images() {
return
elif [[ "$DIR_NAME" == "tests" ]]; then
return
+ elif [[ "$DIR_NAME" == "appsmine" ]]; then
+ return
+ elif [[ "$DIR_NAME" == "appscommunity" ]]; then
+ return
+ elif [[ "$DIR_NAME" == "appsmarketing" ]]; then
+ return
+ elif [[ "$DIR_NAME" == "appspackaged" ]]; then
+ return
+ elif [[ "$DIR_NAME" == "appssubscriptions" ]]; then
+ return
+ elif [[ "$DIR_NAME" == "appssupported" ]]; then
+ return
+ elif [[ "$DIR_NAME" == "appszips" ]]; then
+ return
+ elif [[ "$DIR_NAME" == "apps-action-templates" ]]; then
+ return
fi
# Optimize all PNGsBut I guess you don't want to add that here, do you? |
|
Sounds like a neat topic for another PR :) |
Summary
Running
./build/autoloaderchecker.shshould only touch apps that are part of this repo.TODO
Checklist