Skip to content
Snippets Groups Projects
  1. Mar 28, 2018
    • Stan Hu's avatar
      Clean the test path after each spec run · d7dc9ad1
      Stan Hu authored and Toon Claes's avatar Toon Claes committed
      FactoryBot's build_stubbed ignores the current database sequence of the
      projects table and starts at ID 1000. If more than 1000 projects are created
      during a test run, leftover repositories can cause spec failures. For example,
      a spec that expects an empty repository may fail since there may be existing
      content.
      
      Closes #5461
      d7dc9ad1
  2. Mar 22, 2018
  3. Mar 01, 2018
  4. Feb 22, 2018
  5. Feb 16, 2018
  6. Jan 19, 2018
  7. Jan 15, 2018
  8. Dec 14, 2017
  9. Dec 08, 2017
    • Bob Van Landuyt's avatar
      Move the circuitbreaker check out in a separate process · f1ae1e39
      Bob Van Landuyt authored
      Moving the check out of the general requests, makes sure we don't have
      any slowdown in the regular requests.
      
      To keep the process performing this checks small, the check is still
      performed inside a unicorn. But that is called from a process running
      on the same server.
      
      Because the checks are now done outside normal request, we can have a
      simpler failure strategy:
      
      The check is now performed in the background every
      `circuitbreaker_check_interval`. Failures are logged in redis. The
      failures are reset when the check succeeds. Per check we will try
      `circuitbreaker_access_retries` times within
      `circuitbreaker_storage_timeout` seconds.
      
      When the number of failures exceeds
      `circuitbreaker_failure_count_threshold`, we will block access to the
      storage.
      
      After `failure_reset_time` of no checks, we will clear the stored
      failures. This could happen when the process that performs the checks
      is not running.
      f1ae1e39
  10. Nov 30, 2017
  11. Nov 21, 2017
  12. Nov 02, 2017
  13. Oct 16, 2017
  14. Oct 04, 2017
  15. Oct 03, 2017
  16. Sep 22, 2017
  17. Sep 14, 2017
  18. Aug 22, 2017
  19. Aug 17, 2017
    • Grzegorz Bizon's avatar
      Migrate down before each migration unit test · 56d24bcf
      Grzegorz Bizon authored
      `migrate!` helper triggers a migration that is under the test, so we
      need to revert it before each subsequent example. This means that we
      need to place it in `before(:each, :migration)` hook.
      
      We still want to migrate everything up *after* each *context*, so in
      otherwords we need to place migrate up helper in `before(:context,
      :migration)`.
      56d24bcf
  20. Aug 16, 2017
  21. Aug 11, 2017
  22. Aug 07, 2017
    • Lin Jen-Shin's avatar
      Reset only migration models · 4d7c072d
      Lin Jen-Shin authored
      So that we could make sure migration tests could run even if
      geo is not setup in EE.
      
      This is because we have a model like this:
      
      ``` ruby
      class Geo::BaseRegistry < ActiveRecord::Base
        def self.connection
          raise 'Geo secondary database is not configured' unless Gitlab::Geo.geo_database_configured?
      
          super
        end
      end
      ```
      4d7c072d
  23. Aug 02, 2017
  24. Jul 31, 2017
  25. Jul 28, 2017
  26. Jul 27, 2017
  27. Jul 24, 2017
  28. Jul 19, 2017
  29. Jul 13, 2017
    • Bob Van Landuyt's avatar
      Enable all feature flags by default in specs · 3ee48e42
      Bob Van Landuyt authored
      Otherwise some features would go untested in non-specific contexts
      
      I did need to disable the
      `gitlab_git_diff_size_limit_increase`-feature in some specs since we
      depend on diffs being expandable while the file we are testing on is
      smaller than the increased limit.
      3ee48e42
  30. Jul 12, 2017
  31. Jul 11, 2017
  32. Jul 07, 2017
  33. Jul 05, 2017
  34. Jun 19, 2017
Loading