Skip to content
Snippets Groups Projects
  1. Jan 28, 2020
  2. Jan 21, 2020
  3. Jan 09, 2020
  4. Dec 20, 2019
  5. Nov 22, 2019
  6. Nov 19, 2019
  7. Oct 23, 2019
  8. Oct 22, 2019
  9. Oct 01, 2019
  10. Sep 20, 2019
  11. Sep 18, 2019
  12. Sep 17, 2019
  13. Sep 16, 2019
  14. Sep 13, 2019
  15. Sep 10, 2019
  16. Sep 09, 2019
  17. Sep 05, 2019
    • Fabio Pitino's avatar
      CE port for pipelines for external pull requests · ca6a1f33
      Fabio Pitino authored
      Detect if pipeline runs for a GitHub pull request
      
      When using a mirror for CI/CD only we register a pull_request
      webhook. When a pull_request webhook is received, if the
      source branch SHA matches the actual head of the branch in the
      repository we create immediately a new pipeline for the
      external pull request. Otherwise we store the
      pull request info for when the push webhook is received.
      
      When using "only/except: external_pull_requests" we can detect
      if the pipeline has a open pull request on GitHub and create or
      not the job based on that.
      ca6a1f33
  18. Aug 31, 2019
  19. Aug 30, 2019
  20. Aug 29, 2019
  21. Aug 28, 2019
    • Victor Zagorodny's avatar
      Update CE files for GSD projects filter · e4fbd94c
      Victor Zagorodny authored
      A new param with_security_reports was added to
      GET /groups/:id/projects API and the code to
      support this logic in GroupProjectsFinder and
      Project model. Also, a DB index was added to
      ci_job_artifacts table to speed up the search
      of security reports artifacts for projects
      e4fbd94c
  22. Aug 26, 2019
  23. Aug 21, 2019
    • George Koltsov's avatar
      Add SortingPreference concern · 8bcc47ac
      George Koltsov authored
      Sorting preference functionality has been extracted
      from `IssuableCollections` to a new `SortingPreference`
      concern in order to reuse this functionality in projects
      (and groups in the future).
      8bcc47ac
  24. Aug 15, 2019
  25. Aug 13, 2019
    • Stan Hu's avatar
      Reduce Gitaly calls in PostReceive · 4e2bb4e5
      Stan Hu authored
      This commit reduces I/O load and memory utilization during PostReceive
      for the common case when no project hooks or services are set up.
      
      We saw a Gitaly N+1 issue in `CommitDelta` when many tags or branches
      are pushed. We can reduce this overhead in the common case because we
      observe that most new projects do not have any Web hooks or services,
      especially when they are first created. Previously, `BaseHooksService`
      unconditionally iterated through the last 20 commits of each ref to
      build the `push_data` structure. The `push_data` structured was used in
      numerous places:
      
      1. Building the push payload in `EventCreateService`
      2. Creating a CI pipeline
      3. Executing project Web or system hooks
      4. Executing project services
      5. As the return value of `BaseHooksService#execute`
      6. `BranchHooksService#invalidated_file_types`
      
      We only need to generate the full `push_data` for items 3, 4, and 6.
      
      Item 1: `EventCreateService` only needs the last commit and doesn't
      actually need the commit deltas.
      
      Item 2: In addition, `Ci::CreatePipelineService` only needed a subset of
      the parameters.
      
      Item 5: The return value of `BaseHooksService#execute` also wasn't being
      used anywhere.
      
      Item 6: This is only used when pushing to the default branch, so if
      many tags are pushed we can save significant I/O here.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65878
      
      Fic
      4e2bb4e5
  26. Aug 08, 2019
  27. Aug 07, 2019
  28. Aug 06, 2019
  29. Aug 05, 2019
    • Nick Thomas's avatar
      Speed up loading and filtering deploy keys and their projects · d3a3db42
      Nick Thomas authored
      This commit changes how we eager-load projects, routes, and namespaces
      required by the deploy keys endpoint, getting a 10x improvement in my
      local testing.
      
      The endpoint still doesn't scale in-general, but going from ~13 seconds
      to dump a 63K result to generating the same thing in ~1.6 seconds seems
      like a good improvement to me.
      d3a3db42
  30. Jul 31, 2019
  31. Jul 25, 2019
  32. Jul 24, 2019
    • Kamil Trzcińśki's avatar
      Optimise import performance · 8d1e97fc
      Kamil Trzcińśki authored
      - Fix `O(n)` complexity of `append_or_update_attribute`,
        we append objects to an array and re-save project
      - Remove the usage of `keys.include?` as it performs `O(n)`
        search, instead use `.has_key?`
      - Remove the usage of `.keys.first` as it performs a copy
        of all keys, instead use `.first.first`
      8d1e97fc
Loading