Skip to content
Snippets Groups Projects
  1. Sep 04, 2019
  2. Aug 28, 2019
  3. Aug 20, 2019
  4. Aug 13, 2019
    • Bob Van Landuyt :neckbeard:'s avatar
      Rework retry strategy for remote mirrors · 452bc36d
      Bob Van Landuyt :neckbeard: authored and Douwe Maan's avatar Douwe Maan committed
      **Prevention of running 2 simultaneous updates**
      
      Instead of using `RemoteMirror#update_status` and raise an error if
      it's already running to prevent the same mirror being updated at the
      same time we now use `Gitlab::ExclusiveLease` for that.
      
      When we fail to obtain a lease in 3 tries, 30 seconds apart, we bail
      and reschedule. We'll reschedule faster for the protected branches.
      
      If the mirror already ran since it was scheduled, the job will be
      skipped.
      
      **Error handling: Remote side**
      
      When an update fails because of a `Gitlab::Git::CommandError`, we
      won't track this error in sentry, this could be on the remote side:
      for example when branches have diverged.
      
      In this case, we'll try 3 times scheduled 1 or 5 minutes apart.
      
      In between, the mirror is marked as "to_retry", the error would be
      visible to the user when they visit the settings page.
      
      After 3 tries we'll mark the mirror as failed and notify the user.
      
      We won't track this error in sentry, as it's not likely we can help
      it.
      
      The next event that would trigger a new refresh.
      
      **Error handling: our side**
      
      If an unexpected error occurs, we mark the mirror as failed, but we'd
      still retry the job based on the regular sidekiq retries with
      backoff. Same as we used to
      
      The error would be reported in sentry, since its likely we need to do
      something about it.
      452bc36d
  5. Aug 09, 2019
  6. Aug 07, 2019
  7. Aug 05, 2019
  8. Aug 01, 2019
  9. Jul 31, 2019
  10. Jul 29, 2019
  11. Jul 27, 2019
  12. Jul 26, 2019
    • Patrick Derichs's avatar
      Use NotesFinder in module IssuableActions · 355a2df5
      Patrick Derichs authored
      Add spec for concern IssuableActions
      
      Add shared samples for discussions endpoint
      
      Add schema validations for discussions
      
      Fix rubocop style issue
      
      Make target assignable
      
      Use new possibility to provide target
      355a2df5
  13. Jul 25, 2019
  14. Jul 22, 2019
  15. Jul 05, 2019
  16. Jul 04, 2019
  17. Jul 03, 2019
  18. Jun 28, 2019
  19. Jun 26, 2019
  20. Jun 24, 2019
  21. Jun 21, 2019
  22. Jun 19, 2019
    • Patrick Derichs's avatar
      Remove unneeded parentheses · 9079085f
      Patrick Derichs authored
      9079085f
    • Patrick Derichs's avatar
      b5b56588
    • Patrick Derichs's avatar
      Use NotesFinder to fetch notes on API and Controllers · 932a9a0c
      Patrick Derichs authored
      Fix missing iid query on NotesFinder
      
      Changed parameters of find_noteable, 
      so changes across a few files were needed.
      MergeRequest also requires iid instead of id query
      
      Make NotesFinder fail with RecordNotFound again
      
      Add specs for target_iid
      
      Using RSpec tablesyntax for target_iid specs
      
      Revert "Using RSpec tablesyntax for target_iid specs"
      
      This reverts commit ba45c7f569a.
      
      Allow find_by! here
      
      Fix variable name
      
      Add readable check
      
      Revert "Add readable check"
      
      This reverts commit 9e3a1a7aa39.
      
      Remove unnecessary assignment
      
      Add required changes for EE
      
      Fix parameter count
      
      Reduce code duplication by extracting a noteable module method
      
      The call to find_noteable was redundant so
      multiple files and lines have changed in that
      commit to use the newly introduced module
      method `noteable`.
      
      Replace casecmp with include check
      
      Add parent_type parameter
      
      
      Revert "Reduce code duplication by extracting
      a noteable module method"
      
      This reverts commit 8c0923babff16.
      
      Method is no longer needed
      
      Check whether noteable can be read by user
      932a9a0c
Loading