Commit Graph

16 Commits

Author SHA1 Message Date
GitLab Bot df8c8224ed Add latest changes from gitlab-org/gitlab@master 2022-05-12 00:09:17 +00:00
GitLab Bot b53f926609 Add latest changes from gitlab-org/gitlab@master 2022-01-18 18:11:20 +00:00
GitLab Bot f31ef3fd55 Add latest changes from gitlab-org/gitlab@master 2022-01-11 06:10:58 +00:00
GitLab Bot 8bac8f55ba Add latest changes from gitlab-org/gitlab@master 2022-01-07 18:16:06 +00:00
GitLab Bot 0c4afb9f56 Add latest changes from gitlab-org/gitlab@master 2021-10-28 00:10:09 +00:00
GitLab Bot 4c5b7f992f Add latest changes from gitlab-org/gitlab@master 2021-10-27 18:13:16 +00:00
GitLab Bot d89b82481b Add latest changes from gitlab-org/gitlab@master 2021-04-21 09:09:15 +00:00
GitLab Bot 50d66f5ece Add latest changes from gitlab-org/gitlab@master 2021-04-01 12:08:56 +00:00
GitLab Bot 49d26b2348 Add latest changes from gitlab-org/gitlab@master 2021-02-12 12:09:02 +00:00
GitLab Bot f2c27c6f97 Add latest changes from gitlab-org/gitlab@master 2021-01-06 12:10:58 +00:00
GitLab Bot 6c46be4823 Add latest changes from gitlab-org/gitlab@master 2020-12-17 03:10:36 +00:00
GitLab Bot 5d75b2b9a9 Add latest changes from gitlab-org/gitlab@master 2020-03-25 18:08:10 +00:00
Jacob Vosmaer (out of office May 10-14) d291f69fd9 Fix gitaly-ruby bundle poisoning in CI 2018-05-14 08:10:29 +00:00
Lin Jen-Shin 873bc3a685 Preserve gem path so that we use the same gems
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.
2017-12-19 17:41:59 +08:00
Jacob Vosmaer (GitLab) a14bd24a02 Set an artificial $HOME for gitaly in test 2017-11-30 12:58:51 +00:00
Jacob Vosmaer e99564568b CI fixes for gitaly-ruby 2017-08-01 10:48:46 +02:00