Skip to content
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

Optimization on sync_versions to use ls-remote on Git VCS #6930

Merged
merged 4 commits into from Apr 30, 2020

Commits on Apr 20, 2020

  1. Optimization on sync_versions to use ls-remote on Git VCS

    When a webhook is received we synchronize the branches/tags to create new
    versions under Read the Docs. For this process we do a full clone of the
    repository and iterate over the branches/tags.
    
    As this process of cloning the repository just for updating versions could be
    expensive, this commit adds the ability to use `ls-remote` on Git VCS just to
    query the repository for its branches/tags without performing a full clone.
    humitos committed Apr 20, 2020
    Copy the full SHA
    b45787a View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2020

  1. Copy the full SHA
    9a58d72 View commit details
    Browse the repository at this point in the history
  2. Override SyncRepositoryMixin.sync_repo to use remote listing

    When SyncRepositoryTaskStep calls `sync_repo` we decide if we need a full clone
    of just listing the remote branches/tags to sync versions between Read the Docs
    and the repository.
    humitos committed Apr 28, 2020
    Copy the full SHA
    dc6a475 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    bf9f880 View commit details
    Browse the repository at this point in the history