Skip to content

Conversation

@aledbf
Copy link
Contributor

@aledbf aledbf commented Aug 28, 2023

Description

https://github.blog/2019-11-03-highlights-from-git-2-24/

Summary generated by Copilot

🤖 Generated by Copilot at 7fade32

Add git configuration options for performance optimization in large repositories. Modify git.go to set feature.manyFiles and fetch.writeCommitGraph in the workspace git repository.

How to test

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=workspace
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@roboquat roboquat merged commit 16c5278 into main Aug 30, 2023
@roboquat roboquat deleted the aledbf/git-performance branch August 30, 2023 09:28
kylos101 added a commit that referenced this pull request Dec 6, 2023
Related to #18612

w/o, we get errors like:
git config feature.manyFiles true failed (chdir /dst/<repo to clone>: no such file or directory)

We don't return as error, so it shouldn't block workspace start, but it also means we aren't getting the clone perf boost maybe.
roboquat pushed a commit that referenced this pull request Dec 13, 2023
* [content-service] do git config after we have a folder

Related to #18612

w/o, we get errors like:
git config feature.manyFiles true failed (chdir /dst/<repo to clone>: no such file or directory)

We don't return as error, so it shouldn't block workspace start, but it also means we aren't getting the clone perf boost maybe.

* the pwd is not a git folder, set the context explicitly

* Must use git client, before cloning, otherwise git isn't initialized

* Oops, clone is creating the location

Configure within clone, after creating the location

* Ah, folder must exist and be git init'd (from the clone)

* No need to specify location anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants