Page MenuHomePhabricator

Remove app pycache files from git
Open, In Progress, Needs TriagePublic

Description

Currently the gitignore does not contain app/__pycache__ which causes the files to be tracked. The application however needs to ignore the files in this directory.

Details

Event Timeline

Eugene233 renamed this task from remove app pycache files from git to Remove app pycache files from git.Mar 29 2025, 3:41 AM
Eugene233 added a subscriber: Bovimacoco.

Change #1132124 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):

[labs/tools/wdaudiolex-be@main] T390368 and T386329

https://gerrit.wikimedia.org/r/1132124

Change #1132125 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):

[labs/tools/wdaudiolex-be@main] T386329 and this T390368

https://gerrit.wikimedia.org/r/1132125

Change #1132126 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):

[labs/tools/wdaudiolex-be@main] T386329 and T390368 and T386326

https://gerrit.wikimedia.org/r/1132126

Bovimacoco changed the task status from Open to In Progress.Mar 30 2025, 12:18 PM

Change #1132161 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):

[labs/tools/wdaudiolex-be@main] Task=T386329 Rearranging the Readme files

https://gerrit.wikimedia.org/r/1132161

Change #1132165 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):

[labs/tools/wdaudiolex-be@main] T386329 = Remove app pycache files from git

https://gerrit.wikimedia.org/r/1132165

Change #1133587 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):

[labs/tools/wdaudiolex-be@main] T386329 = Remove app pycache files from git bug: T386329

https://gerrit.wikimedia.org/r/1133587

Thanks for reporting this.

The existing *__pycache__/ rule already ensures that any new files generated when running the Flask script are ignored. However, the issue is that app/__pycache__ was already tracked before this rule was applied.

The best solution would be to delete this directory entirely, so it's removed from Git history. This way, when the folder is created again locally, Git won't track it.

Adding app/__pycache__ to .gitignore won’t change anything since the general rule is already in place.

Change #1132124 abandoned by Aklapper:

[labs/tools/wdaudiolex-be@main] T390368 and T386329

Reason:

Superseded by 1132125, then 1132126

https://gerrit.wikimedia.org/r/1132124

Change #1132125 abandoned by Aklapper:

[labs/tools/wdaudiolex-be@main] T386329 and this T390368

Reason:

Superseded by 1132126

https://gerrit.wikimedia.org/r/1132125

Change #1133587 had a related patch set uploaded (by Aklapper; author: Bovimacoco):

[labs/tools/wdaudiolex-be@main] Remove app pycache files from git

https://gerrit.wikimedia.org/r/1133587

Change #1132126 abandoned by Aklapper:

[labs/tools/wdaudiolex-be@main] T386329 and T390368 and T386326

Reason:

See 1132164, 1133572, 1132161, 1132165 instead

https://gerrit.wikimedia.org/r/1132126

Change #1132161 abandoned by Wandji collins:

[labs/tools/wdaudiolex-be@main] T386329:Rearranging the Readme files

Reason:

Duplicate implementation

https://gerrit.wikimedia.org/r/1132161

Change #1132165 merged by Wandji collins:

[labs/tools/wdaudiolex-be@main] T386329: Remove app pycache files from git

https://gerrit.wikimedia.org/r/1132165

Change #1133587 abandoned by Wandji collins:

[labs/tools/wdaudiolex-be@main] Remove app pycache files from git

Reason:

This is duplicate change

https://gerrit.wikimedia.org/r/1133587