Skip to content
Snippets Groups Projects
  1. Sep 04, 2019
  2. Aug 28, 2019
    • Sean McGivern's avatar
      Make performance bar enabled checks consistent · f9c456bd
      Sean McGivern authored
      Previously, we called the `peek_enabled?` method like so:
      
          prepend_before_action :set_peek_request_id, if: :peek_enabled?
      
      Now we don't have a `set_peek_request_id` method, so we don't need that
      line. However, the `peek_enabled?` part had a side-effect: it would also
      populate the request store cache for whether the performance bar was
      enabled for the current request or not.
      
      This commit makes that side-effect explicit, and replaces all uses of
      `peek_enabled?` with the more explicit
      `Gitlab::PerformanceBar.enabled_for_request?`. There is one spec that
      still sets `SafeRequestStore[:peek_enabled]` directly, because it is
      contrasting behaviour with and without a request store enabled.
      
      The upshot is:
      
      1. We still set the value in one place. We make it more explicit that
         that's what we're doing.
      2. Reading that value uses a consistent method so it's easier to find in
         future.
      f9c456bd
  3. Jul 24, 2019
    • Stan Hu's avatar
      Add Rugged calls to performance bar · 291df05e
      Stan Hu authored
      This will help diagnose the source of excessive I/O from Rugged
      calls. To implement this, we need to obtain the full list of arguments
      sent to each request method.
      291df05e
  4. Jul 17, 2019
  5. Jul 16, 2019
  6. Jul 09, 2019
  7. Jul 05, 2019
  8. Jun 25, 2019
  9. Jun 05, 2019
  10. May 30, 2019
  11. May 20, 2019
  12. May 06, 2019
  13. May 03, 2019
  14. Apr 30, 2019
    • John Cai's avatar
      Add client methods for FetchIntoObjectPool RPC · 5ee78765
      John Cai authored
      Gitaly's FetchIntoObjectPool RPC will idempotently fetch objects into an
      object pool. If the pool doesn't exist, it will create an empty pool
      before attempting the fetch. This change adds client code as well as
      specs to cover this behavior.
      5ee78765
  15. Apr 29, 2019
  16. Apr 25, 2019
    • Winnie Hellmann's avatar
      Fix typo in blob_spec.rb · 79f17ee7
      Winnie Hellmann authored
      79f17ee7
    • Francisco Javier López's avatar
      Added list_pages method to avoid loading all wiki pages content · dde69bfb
      Francisco Javier López authored
      Inside a wiki, when we show the sidebar or browse to the `pages`,
      all page contents are retrieved from Gitaly and that is a waste
      of resources, since no content from that pages are going to be
      showed.
      
      This MR introduces the method `ProjectWiki#list_pages`,
      which uses new wiki_list_pages RPC call to retrieve
      pages without content
      
      Also in the `WikisController` we're using the method to show
      pages in the sidebar and also on the `pages` page.
      dde69bfb
  17. Apr 19, 2019
  18. Apr 17, 2019
  19. Apr 16, 2019
  20. Apr 11, 2019
  21. Apr 10, 2019
  22. Apr 05, 2019
  23. Apr 02, 2019
    • Patrick Bajao's avatar
      Download a folder from repository · 6766a0a1
      Patrick Bajao authored
      Add `GetArchiveRequest` to git-archive params.
      
      Modifies `Git::Repository#archive_metadata` to append `path`
      to `ArchivePrefix` so it'll not hit the cache of repository archive
      when it already exists.
      6766a0a1
  24. Apr 01, 2019
  25. Mar 26, 2019
  26. Mar 21, 2019
    • Luke Duncalfe's avatar
      Enrich commits with full data in CommitCollection · 38bf176c
      Luke Duncalfe authored
      Allow incomplete commit records to load their full data from gitaly.
      
      Commits can be based on a Hash of data retrieved from PostgreSQL, and
      this data can be intentionally incomplete in order to save space.
      
      A new method #gitaly? has been added to Gitlab::Git::Commit, which
      returns true if the underlying data source of the Commit is a
      Gitaly::GitCommit.
      
      CommitCollection now has a method #enrich which replaces non-gitaly
      commits in place with commits from gitaly.
      
      CommitCollection#without_merge_commits has been updated to call this
      method, as in order to determine a merge commit we need to have parent
      data.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58805
      38bf176c
    • Sean McGivern's avatar
      Revert "Merge branch... · a97ec84f
      Sean McGivern authored
      Revert "Merge branch '58805-allow-incomplete-commit-data-to-be-fetched-from-collection' into 'master'"
      
      This reverts merge request !26144
      a97ec84f
  27. Mar 19, 2019
    • Stan Hu's avatar
      Bump Rugged to 0.28.0 · 30caec32
      Stan Hu authored
      This version bump makes things consistent between Gitaly and
      fixes a significant number of bugs:
      https://github.com/libgit2/libgit2/releases
      
      This also decreases disk space of Omnibus builds by ~30 MB.
      
      There is also a workaround for
      https://github.com/libgit2/rugged/issues/785. If Gitaly or another
      process changes .gitconfig while Rugged has the file loaded,
      Rugged::Repository#each_key will report stale values unless a lookup is
      done first.
      
      This bug only manifests in a spec because we are using both Gitaly and
      Rugged at the same time there, and we normally don't use Rugged in the
      CE/EE code in this way.
      30caec32
  28. Mar 18, 2019
    • Luke Duncalfe's avatar
      Enrich commits with full data in CommitCollection · 8ef0a9d5
      Luke Duncalfe authored
      Allow incomplete commit records to load their full data from gitaly.
      
      Commits can be based on a Hash of data retrieved from PostgreSQL, and
      this data can be intentionally incomplete in order to save space.
      
      A new method #gitaly? has been added to Gitlab::Git::Commit, which
      returns true if the underlying data source of the Commit is a
      Gitaly::GitCommit.
      
      CommitCollection now has a method #enrich which replaces non-gitaly
      commits in place with commits from gitaly.
      
      CommitCollection#without_merge_commits has been updated to call this
      method, as in order to determine a merge commit we need to have parent
      data.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/58805
      8ef0a9d5
  29. Mar 13, 2019
  30. Mar 07, 2019
  31. Mar 01, 2019
  32. Feb 27, 2019
Loading