Compulsory submission results in abnormal warehouse size #7669

Closed
opened 2025-11-02 07:32:59 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @inkss on GitHub (Aug 8, 2021).

  • Gitea version (or commit ref): 1.14.6 built with GNU Make 4.1, go1.16.7 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.27.0
  • Operating system: command-line
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

Hello, I use Github Action to deploy the Hexo blog, and use hexo-delpoy-git to deploy to the Gitea server through Token. Since Github Action is a new environment each time it is deployed, the temporary files generated are empty. A submission is equivalent to a mandatory submission.

The actual effect is that after deployment, the warehouse only keeps two submission records, and the previous submission information disappears. However, I found that the size of the warehouse has indeed increased over time, and the same deployment content, pushed to Github, can maintain a normal size. So this should be a bug, right?

The warehouse address 29.7M corresponding to Gihub: inkss.github.io
The warehouse address 1.0GB corresponding to Gitea: Blog

...

Screenshots

Gitea

Github

Originally created by @inkss on GitHub (Aug 8, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.6 built with GNU Make 4.1, go1.16.7 : bindata, sqlite, sqlite_unlock_notify - Git version: 2.27.0 - Operating system: command-line <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description <!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services. --> Hello, I use Github Action to deploy the Hexo blog, and use hexo-delpoy-git to deploy to the Gitea server through Token. Since Github Action is a new environment each time it is deployed, the temporary files generated are empty. A submission is equivalent to a mandatory submission. The actual effect is that after deployment, the warehouse only keeps two submission records, and the previous submission information disappears. However, I found that the size of the warehouse has indeed increased over time, and the same deployment content, pushed to Github, can maintain a normal size. So this should be a bug, right? The warehouse address 29.7M corresponding to Gihub: [inkss.github.io](https://github.com/inkss/inkss.github.io) The warehouse address 1.0GB corresponding to Gitea: [Blog](https://gitea.szyink.com/szyink/Blog) ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![Gitea](https://user-images.githubusercontent.com/31947043/128636427-8274329e-8d30-4ac7-b019-4a4af9e80dbd.png) ![Github](https://user-images.githubusercontent.com/31947043/128636434-65ce82db-0c62-4696-a1d0-2bbf4d5ea9d5.png)
GiteaMirror added the type/question label 2025-11-02 07:32:59 -06:00
Author
Owner

@inkss commented on GitHub (Aug 8, 2021):

To summarize: it seems that all submissions are stored in the system, even if the corresponding submission has been permanently deleted in the submission history

@inkss commented on GitHub (Aug 8, 2021): To summarize: it seems that all submissions are stored in the system, even if the corresponding submission has been permanently deleted in the submission history
Author
Owner

@delvh commented on GitHub (Aug 8, 2021):

If I understand your problem correctly, that's not a bug of Gitea, that's just how git works.
Any file you once added in a commit stays stored inside your repo, even if it is removed in a later commit.
git gc might help, although I do not know how you can manually start garbage collection of your remote repo, unless you are a server administrator.
I suppose that Gitea simply hasn't run the garbage collector yet.
I hope that one of the core-maintainers can help you more than I with my amateur opinion.

@delvh commented on GitHub (Aug 8, 2021): If I understand your problem correctly, that's not a bug of Gitea, that's just how git works. Any file you once added in a commit stays stored inside your repo, even if it is removed in a later commit. `git gc` might help, although I do not know how you can manually start garbage collection of your remote repo, unless you are a server administrator. I suppose that Gitea simply hasn't run the garbage collector yet. I hope that one of the core-maintainers can help you more than I with my amateur opinion.
Author
Owner

@techknowlogick commented on GitHub (Aug 8, 2021):

Yes, that is correct. There are git commits that are not referenced anywhere but still exist on disk. git gc would clean them up.

@techknowlogick commented on GitHub (Aug 8, 2021): Yes, that is correct. There are git commits that are not referenced anywhere but still exist on disk. `git gc` would clean them up.
Author
Owner

@inkss commented on GitHub (Aug 9, 2021):

Snipaste_2021-08-09_08-07-29
So because I didn't set it to scheduled tasks here? I only found four relevant information in System Notices.

@inkss commented on GitHub (Aug 9, 2021): ![Snipaste_2021-08-09_08-07-29](https://user-images.githubusercontent.com/31947043/128649748-edfed39c-7b08-4577-acff-6fa3c0449ce1.png) So because I didn't set it to scheduled tasks here? I only found four relevant information in System Notices.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7669