Commit Graph

115 Commits

Author SHA1 Message Date
Luke "Jared" Bennett ef7001c9c6 Merge branch 'master' into 'balsalmiq-support'
# Conflicts:
#   spec/features/projects/commit/cherry_pick_spec.rb
#   spec/features/projects/environments/environment_spec.rb
2017-05-02 09:11:55 +00:00
Sam Rose 9f3985c613 Move PDFLab into GitLab 2017-04-28 12:52:36 -04:00
Luke "Jared" Bennett c3633db617 Merge branch 'master' into 'balsalmiq-support'
# Conflicts:
#   config/webpack.config.js
2017-04-26 11:26:10 +00:00
Rémy Coutable a9a1f7a61a Merge branch 'gitaly-testing-toml' into 'master'
Gitaly testing toml

Closes gitaly#182

See merge request !10605
2017-04-25 08:21:06 +00:00
Alejandro Rodríguez 476037b05b Configure Gitaly through settings file instead of ENV vars 2017-04-18 22:43:41 -03:00
Phil Hughes 2c643a552e Merge branch 'master' into notebooklab-in-repo 2017-04-13 08:01:55 +01:00
Phil Hughes bf5248ac28 Pull in fixture files from the repo 2017-04-11 21:25:10 +01:00
Alejandro Rodríguez d6cc8feb6c Setup and run a Gitaly server for testing if GitalyClient is enabled 2017-04-11 16:00:44 -03:00
Luke "Jared" Bennett cf67894504
Finished feature specs 2017-04-11 13:06:45 +01:00
Bob Van Landuyt bf64582f67 Fix warning when cloning repo that already exists
fixes the warning:

fatal: destination path '~/gitlab-ce/gitlab/tmp/tests/gitlab-test-fork_bare' already exists and is not an empty directory.
2017-04-02 12:03:28 +02:00
Stan Hu c0564c549d Fix Spinach and Capybara dependencies
Closes #30347
2017-04-01 22:49:22 -07:00
Rémy Coutable 2fa5607448
Properly eagerly-load the Capybara server for JS feature specs only
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-31 14:43:36 +02:00
Rémy Coutable f659c406ab Eager-load the Capybara server to prevent timeouts
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-31 11:43:17 +02:00
Rémy Coutable e559283cc0 Increase Capybara's timeout
Also disabled assets warming for Capybara/RSpec and remove a check to
skip assets warming when ./tmp/cache/assets/test exists because assets
are now served by webpack-dev-server.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-31 11:43:17 +02:00
Nick Thomas 8a0753a55a Don't clean up the gitlab-test-fork_bare repo 2017-03-30 17:21:19 +01:00
Rémy Coutable 60c0c0f3d0 Merge branch '29843-project-subgroup-transfer' into 'security'
Use full path for moving directories when changing namespace path

See merge request !2078
2017-03-29 19:16:50 -07:00
Sanster 4d6e377cd9 fix new MR form erroneously selects tag as source when branch of same name exists #23237 2017-03-24 06:28:21 +08:00
Alejandro Rodríguez 0b9d56f960 Update storage settings to allow extra values per shard
This will be necessary when adding gitaly settings. This version
doesn't make any functional changes, but allows us to include this
breaking change in 9.0 and add the needed extra settings in the future
with backwards compatibility
2017-03-03 12:13:30 -03:00
Douwe Maan ad640bc5f9 Use Namespace#full_path instead of #path where appropriate 2017-02-23 17:55:01 -06:00
Douwe Maan 1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan 206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan b7d8df503c Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
Sean McGivern 7550f60dde Backport changes from EE squash
Backport changes from the EE-only squash implementation, which would
otherwise conflict when merge CE into EE.

<https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1024>
2017-02-03 09:46:03 +00:00
jurre e59623e738
Mark MR as WIP when pushing WIP commits 2017-01-19 12:30:34 +01:00
Stan Hu 0f61bb2dc5
Fix Error 500 when creating a merge request that contains an image that was deleted and added
Steps to reproduce:

1. Start with a repo with an image
2. Add a commit to delete the image
3. Add another commit to replace the image with another image

In a diff comparison, we really just compare about what the image was before the diff, not
the direct parent of the last commit. This MR fixes that.

Closes #3893, gitlab-org/gitlab-ee#678

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-14 15:57:01 +01:00
Adam Niedzielski 3fa265d195 Fix expanding a collapsed diff when converting a symlink to a regular file
In this case comparing old_path and new_path is not enough because there
are two entires that match.
2016-11-10 18:24:12 +01:00
Nick Thomas 29668aec46 Use `git update-ref --stdin -z` to speed up TestEnv.set_repo_refs
Previously, we were calling `git update-ref <ref> <sha>` about 30 times per
test using `create(:project)` or similar.
2016-11-07 11:24:06 +00:00
Alfredo Sumaran a975e4cb34 Merge branch 'master' into merge-conflicts-editor-2 2016-10-17 12:17:12 -05:00
Valery Sizov 7762d8f5a3 Fix Test Env (proper error handling when gitlab-shell is not clonned) 2016-10-17 14:41:29 +03:00
Sean McGivern 86dcb79be3 Merge branch 'master' into merge-conflicts-editor-2 2016-10-17 10:56:55 +01:00
Stan Hu 5a8738a7b4 Fix Spinach merge request diff failures
gitlab-git-test `master` was updated in ff076d88, and this caused
the merge request diffs to change in a way that broke assumptions in the
Spinach tests.

Partial fix to #23378
2016-10-15 15:28:30 -07:00
Sean McGivern 241cca011f Fix specs 2016-10-13 14:16:34 -05:00
tiagonbotelho ff076d88df writes tests to verify the issue is solved and fixes breaking issues. 2016-10-09 23:20:45 +01:00
Sean McGivern 1bda1e62de Fix resolving conflicts on forks
Forks may not be up-to-date with the target project, and so might not
contain one of the parent refs in their repo. Fetch this if it isn't
present.
2016-08-30 11:56:11 +01:00
Sean McGivern 44eb3197a9 Handle non-UTF-8 conflicts gracefully
These can't be resolved in the UI because if they aren't in a UTF-8
compatible encoding, they can't be rendered as JSON. Even if they could,
we would be implicitly changing the file encoding anyway, which seems
like a bad idea.
2016-08-25 08:27:08 +01:00
Sean McGivern ce7eb4e492 Add more tests for conflicts 2016-08-12 23:24:48 +03:00
Sean McGivern df2ed097b7 Add backend for merge conflicts reading 2016-08-12 23:24:43 +03:00
winniehell ae9f0ca818 Add failing test for #20462 2016-08-02 03:32:28 +02:00
Stan Hu 3fe18525dd Trim extra displayed carriage returns in diffs and files with CRLFs
Closes #20440
2016-08-01 13:24:06 +02:00
Rémy Coutable 939436480c Ensure relative paths for video are rewritten as we do for images
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-26 10:22:17 +02:00
Paco Guzman a404ab380d Collapsed diffs lines/size don't accumulate to overflow diffs. 2016-07-18 14:43:28 -06:00
Sean McGivern 93ab686079 Fix feature specs on CI
MySQL's text column isn't big enough for the diffs in the
expand-collapse-diffs branch.
2016-07-11 12:02:13 +01:00
Sean McGivern 5266ae87c4 Support renames in diff_for_path actions 2016-07-11 09:31:34 +01:00
Timothy Andrew eb16e1e3c2 Improve the error message displayed when branch creation fails.
Note: This feature was developed independently on master while this was
in review. I've removed the conflicting bits and left the relevant
additions, mainly a test for `Gitlab::Git::Hook`. The original commit
message follows:

1. `gitlab-shell` outputs errors to `stderr`, but we weren't using this
   information, prior to this commit. Now we capture the `stderr`, and
   display it in the flash message when branch creation fails.

2. This can be used to display better errors for other git operation
   failures with small tweaks.

3. The return value of `Gitlab::Git::Hook#trigger` is changed from a
   simple `true`/`false` to a tuple of `[status, errors]`. All usages
   and tests have been updated to reflect this change.

4. This is only relevant to branch creation _from the Web UI_, since SSH
   and HTTP pushes access `gitlab-shell` either directly or through
   `gitlab-workhorse`.

5. A few minor changes need to be made on the `gitlab-shell` end. Right
   now, the `stderr` message it outputs is prefixed by "GitLab: ", which
   shows up in our flash message. This is better removed.
2016-07-05 11:05:16 +05:30
Alejandro Rodríguez e8a8b0b818 Remove hardcoded gitlab-shell version in test env now that the required tag is published 2016-06-30 11:52:38 -04:00
Alejandro Rodríguez 86359ec854 Refactor repository paths handling to allow multiple git mount points 2016-06-29 22:30:31 -04:00
http://jneen.net/ 66b37149eb support cgi style options, such as erb?parent=json 2016-06-27 14:17:49 -07:00
http://jneen.net/ cd9bea770b fix the spec, using project.change_head 2016-06-27 14:17:49 -07:00
http://jneen.net/ 8d24ca157d Revert "bump the master sha for gitlab-test!9"
This reverts commit b435d7405364d28ec364072f4437512da2876762.
2016-06-27 14:17:49 -07:00
http://jneen.net/ d76a89bf7f bump the master sha for gitlab-test!9 2016-06-27 14:17:49 -07:00