Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 Pull mirroring failed .
上次成功更新
  1. 8月 30, 2023
    • Patrick Steinhardt's avatar
      gitaly-test-spawn: Ensure that the gitlab-shell secret exists · 469bcfd7
      Patrick Steinhardt 创作于
      Gitaly has recently enhanced its configuration checks to detect more
      invalid configurations. One of these checks asserts that the secret
      required to connect to Rails actually exists on disk -- if it doesn't,
      Gitaly will refuse to start.
      
      This has in fact broken the "gitlab:setup" CI job because we do not
      ensure that the secret actually exists. Let's fix that.
      
      Changelog: fixed
      469bcfd7
  2. 6月 27, 2023
    • Kamil Trzciński's avatar
      Add `gitlab-utils` gem · 5ca2cd36
      Kamil Trzciński 创作于
      The purpose of this Gem is to move all `Gitlab::Utils` code
      into the Gem, and use this for all common functions that
      are not monolith specific.
      5ca2cd36
  3. 6月 26, 2023
    • Kamil Trzciński's avatar
      Add `gitlab-utils` gem · 4278b190
      Kamil Trzciński 创作于
      The purpose of this Gem is to move all `Gitlab::Utils` code
      into the Gem, and use this for all common functions that
      are not monolith specific.
      4278b190
  4. 4月 17, 2023
  5. 5月 06, 2022
    • Toon Claes's avatar
      CI: Run tests with Praefect using DB · 8323c0ef
      Toon Claes 创作于
      Next to the regular tests where Praefect uses the in-memory election
      strategy, this changes adds tests where Praefect uses a PostgreSQL
      database for a proper, production-like, election strategy.
      
      At the moment these test fail in CI, so we set them to allow to fail and
      only run them when the ~"pipeline:run-praefect-with-db" label is applied
      to the MR.
      8323c0ef
  6. 1月 18, 2022
    • Toon Claes's avatar
      workhorse: Use scripts/gitaly-test-spawn in test · 7289fa07
      Toon Claes 创作于
      The workhorse integration tests for Gitaly need to have a Gitaly process
      running. It uses scripts/setup-test-env to build Gitaly, but it used a
      home-grown solution to start the process.
      
      This change switches to the "standard way" of starting Gitaly in test
      for workhorse, so it has the same environment variables when set up and
      started. This has an added benefit as now the Gitaly socket is tested
      before the workhorse tests start.
      7289fa07
    • Toon Claes's avatar
      test: Move spawning of Gitaly to GitalySetup · 901d0947
      Toon Claes 创作于
      GitalySetup was shelling out to scripts/gitaly-test-spawn to spawn
      Gitaly processes, which was quite complicated to understand.
      
      This change simplifies the back-and-forth between the script and the
      Ruby file. It avoids writing the PID of the Gitaly processes to file, to
      pass them back to the test environment.
      
      With the previous changes included, now scripts/gitaly-test-build &
      scripts/gitaly-test-spawn are *only* used in CI. When running tests in a
      local GDK, the Ruby code to build and spawn Gitaly in test is directly
      called from TestEnv.init.
      901d0947
    • Toon Claes's avatar
      test: Configure Gitaly's bundler with env vars · fee4f8cc
      Toon Claes 创作于
      Setting up and spawning Gitaly in tests needs to have some Bundler
      settings configured. Until now this was done by writing to the local
      config file in the ruby directory inside the gitaly dir used in test.
      
      This method didn't seem to be robust for all our user and
      use-cases (i.e. CI), because this configuration _could_ be done from
      different places.
      
      To make the situation more predictable, this change injects all Bundler
      configuration through environment variables instead.
      fee4f8cc
  7. 1月 11, 2022
  8. 1月 07, 2022
    • Toon Claes's avatar
      test: Move spawning of Gitaly to GitalySetup · f67778c0
      Toon Claes 创作于
      GitalySetup was shelling out to scripts/gitaly-test-spawn to spawn
      Gitaly processes, which was quite complicated to understand.
      
      This change simplifies the back-and-forth between the script and the
      Ruby file. It avoids writing the PID of the Gitaly processes to file, to
      pass them back to the test environment.
      
      With the previous changes included, now scripts/gitaly-test-build &
      scripts/gitaly-test-spawn are *only* used in CI. When running tests in a
      local GDK, the Ruby code to build and spawn Gitaly in test is directly
      called from TestEnv.init.
      f67778c0
    • Toon Claes's avatar
      test: Configure Gitaly's bundler with env vars · 15c406cc
      Toon Claes 创作于
      Setting up and spawning Gitaly in tests needs to have some Bundler
      settings configured. Until now this was done by writing to the local
      config file in the ruby directory inside the gitaly dir used in test.
      
      This method didn't seem to be robust for all our user and
      use-cases (i.e. CI), because this configuration _could_ be done from
      different places.
      
      To make the situation more predictable, this change injects all Bundler
      configuration through environment variables instead.
      15c406cc
  9. 10月 28, 2021
  10. 10月 22, 2021
    • Toon Claes's avatar
      test: Inject bundler config in environment · e94f41c9
      Toon Claes 创作于
      Setting up and spawning Gitaly in tests needs to have some Bundler
      settings configured. Until now this was done by writing to the local
      config file in the ruby directory inside the gitaly dir used in test.
      
      This method didn't seem to be robust for all our user and
      use-cases (i.e. CI), because this configuration _could_ be done from
      different places.
      
      To make the situation more predictable, this change injects all Bundler
      configuration through environment variables instead. It sets
      BUNDLE_IGNORE_CONFIG to make sure any existing configuration written to
      file is ignored, this includes the .bundle/config inside the project and
      possibly in the user's $HOME directory.
      e94f41c9
  11. 4月 21, 2021
  12. 4月 01, 2021
  13. 2月 12, 2021
  14. 12月 17, 2020
  15. 12月 16, 2020
  16. 3月 26, 2020
    • John Cai's avatar
      Add praefect as a socket for tests · be578468
      John Cai 创作于
      Praefect functions as a proxy, but there are a few RPCs that are only in
      praefect and do not get proxied to gitaly. To test functionality that
      hits these RPCs, we need a way to hit a praefect instance that talks to
      a gitaly instance.
      
      This MR sets up praefect in front of the existing gitaly that is used in
      tests.
      be578468
  17. 5月 14, 2018
  18. 12月 19, 2017
    • Lin Jen-Shin's avatar
      Preserve gem path so that we use the same gems · 873bc3a6
      Lin Jen-Shin 创作于
      Without this patch, I would end up with:
      
      ```
      An error occurred in a `before(:suite)` hook.
      Failure/Error: raise "could not connect to gitaly at #{socket.inspect} after #{sleep_time} seconds"
      
      RuntimeError:
        could not connect to gitaly at "tmp/tests/gitaly/gitaly.socket" after 10 seconds
      ```
      
      Digging into it, it's because `scripts/gitaly-test-spawn` could not
      spawn the process, because it cannot find the installed gems.
      
      I personally installed all my gems under $HOME, namely with:
      
      * `gem install rake --user-install` or:
      * `bundle install --path ~/.gem`
      
      The gems would be installed to `~/.gem/ruby/2.4.0/gems`, where
      the version is Ruby ABI version.
      
      Now we're changing $HOME, making RubyGems think that the gems
      would be installed to `tmp/tests/ruby/2.4.0/gems` which is
      apparently not the case.
      
      In order to workaround this, we could preserve $GEM_PATH
      populated by RubyGems, ignoring the default path based on $HOME.
      873bc3a6
  19. 11月 30, 2017
  20. 8月 02, 2017
  21. 8月 01, 2017
加载中