1. 08 12月, 2018 1 次提交
    • Z
      Allow public forks to be deduplicated · 896c0bdb
      Zeger-Jan van de Weg 提交于
      When a project is forked, the new repository used to be a deep copy of everything
      stored on disk by leveraging `git clone`. This works well, and makes isolation
      between repository easy. However, the clone is at the start 100% the same as the
      origin repository. And in the case of the objects in the object directory, this
      is almost always going to be a lot of duplication.
      
      Object Pools are a way to create a third repository that essentially only exists
      for its 'objects' subdirectory. This third repository's object directory will be
      set as alternate location for objects. This means that in the case an object is
      missing in the local repository, git will look in another location. This other
      location is the object pool repository.
      
      When Git performs garbage collection, it's smart enough to check the
      alternate location. When objects are duplicated, it will allow git to
      throw one copy away. This copy is on the local repository, where to pool
      remains as is.
      
      These pools have an origin location, which for now will always be a
      repository that itself is not a fork. When the root of a fork network is
      forked by a user, the fork still clones the full repository. Async, the
      pool repository will be created.
      
      Either one of these processes can be done earlier than the other. To
      handle this race condition, the Join ObjectPool operation is
      idempotent. Given its idempotent, we can schedule it twice, with the
      same effect.
      
      To accommodate the holding of state two migrations have been added.
      1. Added a state column to the pool_repositories column. This column is
      managed by the state machine, allowing for hooks on transitions.
      2. pool_repositories now has a source_project_id. This column in
      convenient to have for multiple reasons: it has a unique index allowing
      the database to handle race conditions when creating a new record. Also,
      it's nice to know who the host is. As that's a short link to the fork
      networks root.
      
      Object pools are only available for public project, which use hashed
      storage and when forking from the root of the fork network. (That is,
      the project being forked from itself isn't a fork)
      
      In this commit message I use both ObjectPool and Pool repositories,
      which are alike, but different from each other. ObjectPool refers to
      whatever is on the disk stored and managed by Gitaly. PoolRepository is
      the record in the database.
      896c0bdb
  2. 26 11月, 2018 2 次提交
  3. 22 11月, 2018 1 次提交
  4. 20 11月, 2018 2 次提交
  5. 16 11月, 2018 1 次提交
  6. 15 11月, 2018 1 次提交
  7. 14 11月, 2018 1 次提交
    • G
      Enable even more frozen string in lib/gitlab · ebf98f27
      gfyoung 提交于
      Enables frozen string for the following:
      
      * lib/gitlab/fogbugz_import/**/*.rb
      * lib/gitlab/gfm/**/*.rb
      * lib/gitlab/git/**/*.rb
      * lib/gitlab/gitaly_client/**/*.rb
      * lib/gitlab/gitlab_import/**/*.rb
      * lib/gitlab/google_code_import/**/*.rb
      * lib/gitlab/gpg/**/*.rb
      * lib/gitlab/grape_logging/**/*.rb
      * lib/gitlab/graphql/**/*.rb
      * lib/gitlab/graphs/**/*.rb
      * lib/gitlab/hashed_storage/**/*.rb
      * lib/gitlab/health_checks/**/*.rb
      
      Partially address gitlab-org/gitlab-ce#47424.
      ebf98f27
  8. 07 11月, 2018 1 次提交
    • F
      Add submodule update API endpoint · 28cbb2ac
      Francisco Javier López 提交于
      This new endpoint allow users to update a submodule's reference.
      
      The MR involves adding a new operation RPC operation in gitaly-proto
      (see gitlab-org/gitaly-proto!233) and change Gitaly to use this
      new version (see gitlab-org/gitaly!936).
      
      See gitlab-org/gitlab-ce!20949
      28cbb2ac
  9. 06 11月, 2018 1 次提交
  10. 30 10月, 2018 1 次提交
  11. 12 10月, 2018 1 次提交
  12. 10 10月, 2018 1 次提交
    • Z
      Remove Git circuit breaker · 30b4ce94
      Zeger-Jan van de Weg 提交于
      Was introduced in the time that GitLab still used NFS, which is not
      required anymore in most cases. By removing this, the API it calls will
      return empty responses. This interface has to be removed in the next
      major release, expected to be 12.0.
      30b4ce94
  13. 03 10月, 2018 1 次提交
    • A
      Remove Gitlab::Git::Repository#rugged and Gollum code · a99bf447
      Alejandro Rodríguez 提交于
      Cleanup code, and refactor tests that still use Rugged. After this, there should
      be no Rugged code that access the instance's repositories on non-test
      environments. There is still some rugged code for other tasks like the
      repository import task, but since it doesn't access any repository storage path
      it can stay.
      a99bf447
  14. 01 10月, 2018 1 次提交
  15. 19 9月, 2018 1 次提交
  16. 17 9月, 2018 2 次提交
  17. 12 9月, 2018 1 次提交
  18. 07 9月, 2018 1 次提交
  19. 16 8月, 2018 1 次提交
  20. 14 8月, 2018 1 次提交
  21. 09 8月, 2018 1 次提交
  22. 07 8月, 2018 1 次提交
  23. 01 8月, 2018 1 次提交
  24. 27 7月, 2018 1 次提交
  25. 24 7月, 2018 2 次提交
  26. 21 7月, 2018 1 次提交
  27. 20 7月, 2018 1 次提交
  28. 19 7月, 2018 1 次提交
  29. 18 7月, 2018 2 次提交
  30. 17 7月, 2018 1 次提交
  31. 16 7月, 2018 1 次提交
  32. 13 7月, 2018 1 次提交
  33. 12 7月, 2018 2 次提交
  34. 10 7月, 2018 1 次提交