Skip to content

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Apr 6, 2021

There are several places where we are quite inefficient in test_git resulting in storing potentially large diffs and other things.

This PR stops this.

zeripath added 2 commits April 6, 2021 11:55
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added type/testing skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Apr 6, 2021
@zeripath zeripath added this to the 1.15.0 milestone Apr 6, 2021
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 6, 2021
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 6, 2021
@6543
Copy link
Member

6543 commented Apr 6, 2021

🚀

@6543 6543 merged commit 8be2cc4 into go-gitea:master Apr 6, 2021
6543 pushed a commit to 6543-forks/gitea that referenced this pull request Apr 6, 2021
* reduce memory use in rawtest

* just use hashsum for diffs

Signed-off-by: Andrew Thornton <art27@cantab.net>
@6543 6543 added the backport/done All backports for this PR have been created label Apr 6, 2021
@zeripath zeripath deleted the reduce-memory-usage-in-testgit branch April 6, 2021 19:45
lunny pushed a commit that referenced this pull request Apr 7, 2021
* reduce memory use in rawtest

* just use hashsum for diffs

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@silverwind
Copy link
Member

Did this change make the test flaky? I see a lot of EnsureDiffNoChange failures lately, like https://drone.gitea.io/go-gitea/gitea/38213/2/14:

image

image

image

@zeripath
Copy link
Contributor Author

zeripath commented Apr 8, 2021

nope they've been there for a while.

@zeripath
Copy link
Contributor Author

zeripath commented Apr 8, 2021

the problem appears to be in the results of the first diff which I think are incorrect somehow but yet do not return an error in the first place.

@zeripath
Copy link
Contributor Author

zeripath commented Apr 8, 2021

the main thing is that we can now see it.

@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants