Skip to content

Slight performance changes to integrations/git_test.go #11227

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

Merged

Conversation

zeripath
Copy link
Contributor

  • Stop cloning the large repos in the push-to-create test - they unnecessarily slow for testing this feature which does not need them
  • Stop using crypto/rand for generating the data in the commits - pseudo random is sufficient - and stop creating 128Mb buffers in memory.

@zeripath zeripath added type/testing skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Apr 27, 2020
@zeripath zeripath added this to the 1.12.0 milestone Apr 27, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 27, 2020
@6543
Copy link
Member

6543 commented Apr 27, 2020

Gain around 3-5min (better than nothing)

@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 27, 2020
@lafriks lafriks merged commit d26aee3 into go-gitea:master Apr 27, 2020
@zeripath zeripath deleted the stop-cloning-for-push-to-create-test branch April 27, 2020 12:34
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* switch to use pseudorandom generator and stop cloning in pushcreate

Signed-off-by: Andrew Thornton <[email protected]>

* Add some logging of BranchProtectPRMerge

Signed-off-by: Andrew Thornton <[email protected]>

* Stop running prepareTestEnv so often for TestAPIGetBranch

Signed-off-by: Andrew Thornton <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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.

4 participants