Commit Graph

621 Commits

Author SHA1 Message Date
Zeger-Jan van de Weg 77f0906e4c
Change Gitlab::Shell#add_namespace to #create_namespace
Prior to this change, this method was called add_namespace, which broke
the CRUD convention and made it harder to grep for what I was looking
for. Given the change was a find and replace kind of fix, this was
changed without opening an issue and on another feature branch.

If more dynamic calls are made to add_namespace, these could've been
missed which might lead to incorrect bahaviour. However, going through
the commit log it seems thats not the case.
2018-03-14 09:56:22 +01:00
Gabriel Mazetto 9b5e4ecc55 Add rake task to cleanup any existing exclusive lease 2018-03-09 13:32:18 +00:00
Nick Thomas 4419d7ea1f
Implement foreground verification of CI artifacts 2018-03-07 17:28:15 +00:00
Shinya Maeda 335bc0fec0 Integrate two workers into one ArchiveTraceWorker with pipeline_background queue. This queue takes loqer precedence than pipeline_default. 2018-03-06 21:44:15 +09:00
Shinya Maeda 824af79d64 Fix rake task to use corrrect SQL 2018-03-06 21:43:19 +09:00
Shinya Maeda c645d40a56 Use find_in_batches for rake task 2018-03-06 21:43:19 +09:00
Shinya Maeda 32c1501d69 Add rake task. Adopt the latest fix. Drop CreateTraceArtifactService 2018-03-06 21:43:19 +09:00
Nick Thomas 6f945f20b4
Foreground verification of uploads and LFS objects 2018-03-02 14:16:17 +00:00
Horatiu Eugen Vlad 1ad5df49b1 Moved o_auth/saml/ldap modules under gitlab/auth 2018-02-28 16:53:02 +01:00
Ken c5e385bd5a 36847 - update toml-rb to 1.0.0
36847 - add changelog
2018-02-21 22:09:15 +10:30
Robert Speicher 1f309b69df Merge branch '41972-make-sure-no-warnings' into 'master'
Fail static-analysis if there's output to stderr

Closes #41972

See merge request gitlab-org/gitlab-ce!16648
2018-01-29 21:09:09 +00:00
Lin Jen-Shin ac3d56e0ff Pass BUNDLE_PATH to install to the same path for test 2018-01-26 21:24:57 +08:00
Lin Jen-Shin 8e87ecbf30 Eliminate the warnings from task helpers 2018-01-26 19:42:48 +08:00
Jacob Vosmaer 6d6f7536bd Look for rugged with static analysis 2018-01-25 14:05:11 +01:00
Ben Bodenmiller cd54479406 typo fix 2018-01-18 09:26:03 +00:00
Douwe Maan b7ce0ac241 Merge branch '38540-ssh-env-file' into 'master'
Resolve "rake gitlab🐚install creates ~git/.ssh/environment which gitlab:check complains about"

Closes #38540

See merge request gitlab-org/gitlab-ce!16114
2018-01-15 15:37:31 +00:00
🙈 jacopo beschi 🙉 729f05f0e3 Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
Douglas Barbosa Alexandre 80b8fe24a1 Fix small typos 2018-01-09 18:48:36 -02:00
Douglas Barbosa Alexandre b1378f05a1 Add rake task to check integrity of uploaded files 2018-01-08 19:25:31 -02:00
Jacob Vosmaer (GitLab) c5e2c0665f Allow local tests to use a modified Gitaly 2018-01-05 11:31:12 +00:00
James Lopez de36a8e279 refactor spec, add docs 2018-01-04 11:22:43 +01:00
James Lopez 6ee122c04e deprecate check integrity task 2018-01-04 11:22:43 +01:00
James Lopez f8e1b44dc5 add locks chek 2018-01-04 11:22:43 +01:00
James Lopez bc46c822fc remove max-depth flag so it works with subgroups 2018-01-04 11:22:43 +01:00
James Lopez 260935868a add new git fsck rake task and spec 2018-01-04 11:22:43 +01:00
Ricketts, M (Mike) 87a36a74ff Remove .ssh/environment file that now breaks the gitlab:check rake task 2017-12-22 13:52:09 +00:00
Lin Jen-Shin 59ac184fcf Merge remote-tracking branch 'upstream/master' into no-ivar-in-modules
* upstream/master: (671 commits)
  Make rubocop happy
  Use guard clause
  Improve language
  Prettify
  Use temp branch
  Pass info about who started the job and which job triggered it
  Docs: add indexes for monitoring and performance monitoring
  clearer-documentation-on-inline-diffs
  Add docs for commit diff discussion in merge requests
  sorting for tags api
  Clear BatchLoader after each spec to prevent holding onto records longer than necessary
  Include project in BatchLoader key to prevent returning blobs for the wrong project
  moved lfs_blob_ids method into ExtractsPath module
  Converted JS modules into exported modules
  spec fixes
  Bump gitlab-shell version to 5.10.3
  Clear caches before updating MR diffs
  Use new Ruby version 2.4 in GitLab QA images
  moved lfs blob fetch from extractspath file
  Update GitLab QA dependencies
  ...
2017-12-15 17:14:26 +08:00
Nick Thomas ab4fa64308
Add a gitlab:tcp_check rake task
This allows us to avoid relying on telnet / netcat being installed
2017-12-13 15:53:32 +00:00
Lin Jen-Shin 85be6d83be Merge remote-tracking branch 'upstream/master' into no-ivar-in-modules
* upstream/master: (170 commits)
  support ordering of project notes in notes api
  Redirect to an already forked project if it exists
  Reschedule the migration to populate fork networks
  Create fork networks for forks for which the source was deleted.
  Fix item name and namespace text overflow in Projects dropdown
  Minor backport from EE
  fix link that was linking to `html` instead of `md`
  Backport epic tasklist
  Add timeouts for Gitaly calls
  SSHUploadPack over Gitaly is now OptOut
  fix icon colors in commit list
  Fix star icon color/stroke
  Backport border inline edit
  Add checkboxes to automatically run AutoDevops pipeline
  BE for automatic pipeline when enabling Auto DevOps
  I am certainly weary of debugging sidekiq but I don't think that's what was meant
  Ensure MRs always use branch refs for comparison
  Fix issue comment submit button disabled on GFM paste
  Lock seed-fu at the correct version in Gemfile.lock
  Improve indexes on merge_request_diffs
  ...
2017-11-30 15:20:00 +08:00
Nick Thomas 0185d7800b Merge branch 'hashed-storage-attachments-migration-path' into 'master'
Hashed storage attachments migration path

See merge request gitlab-org/gitlab-ce!15352
2017-11-28 12:46:39 +00:00
digitalMoksha 30a9fc33f3 static-analysis fix 2017-11-25 15:20:24 +01:00
digitalMoksha 3bb103f282 refactored the hashed repository name 2017-11-25 14:23:41 +01:00
digitalMoksha 17069a9547 ignore hashed repositories when doing rake gitlab:cleanup:dirs 2017-11-24 19:29:25 +01:00
Gabriel Mazetto d0a08ab888 Improve storage migration rake task 2017-11-23 14:19:36 +01:00
Jacob Vosmaer (GitLab) 571f1dda17 Add FetchSourceBranch Gitaly call 2017-11-22 10:19:42 +00:00
Lin Jen-Shin 663593e87e Merge remote-tracking branch 'upstream/master' into no-ivar-in-modules
* upstream/master: (126 commits)
  Update VERSION to 10.3.0-pre
  Update CHANGELOG.md for 10.2.0
  default fill color for SVGs
  ignore hashed repos (for now) when using `rake gitlab:cleanup:repos`
  Use Redis cache for branch existence checks
  Update CONTRIBUTING.md: Link definition of done to criteria
  Use `make install` for Gitaly setups in non-test environments
  FileUploader should check for hashed_storage?(:attachments) to use disk_path
  Set the default gitlab-shell timeout to 3 hours
  Update composite pipelines index to include "id"
  Use arrays in Pipeline#latest_builds_with_artifacts
  Fix blank states using old css
  Skip confirmation user api
  Custom issue tracker
  Revert "check for `read_only?` first before seeing if request is disallowed"
  add `#with_metadata` scope to remove a N+1 from the notes' API
  Fix promoting milestone updating all issuables without milestone
  Batchload blobs for diff generation
  check for `read_only?` first before seeing if request is disallowed
  use `Gitlab::Routing.url_helpers` instead of `Rails.application.routes.url_helpers`
  ...
2017-11-22 17:07:01 +08:00
Brett Walker 5e861a0525 ignore hashed repos (for now) when using `rake gitlab:cleanup:repos` 2017-11-21 20:26:53 +00:00
Alejandro Rodríguez c33ca9d807 Use `make install` for Gitaly setups in non-test environments 2017-11-21 17:45:36 +00:00
Jacob Vosmaer (GitLab) 6f1e9f7ef7 Fix slow gitaly dev test bundle 2017-11-21 12:28:02 +00:00
digitalMoksha d8dee231bf remove the rake task `gitlab:sidekiq:drop_post_receive`
This task is no longer being used and is not documented.
2017-11-20 17:23:12 +01:00
Lin Jen-Shin 9ac0c76b78 Use StrongMemoize and enable/disable cops properly 2017-11-18 01:01:53 +08:00
Lin Jen-Shin 0af35d7e30 Merge remote-tracking branch 'upstream/master' into no-ivar-in-modules
* upstream/master: (507 commits)
  Add dropdowns documentation
  Convert migration to populate latest merge request ID into a background migration
  Set 0.69.0 instead of latest for codeclimate image
  De-duplicate background migration matchers defined in spec/support/migrations_helpers.rb
  Update database_debugging.md
  Update database_debugging.md
  Move installation of apps higher
  Change to Google Kubernetes Cluster and add internal links
  Add Ingress description from official docs
  Add info on creating your own k8s cluster from the cluster page
  Add info about the installed apps in the Cluster docs
  Resolve "lock/confidential issuable sidebar custom svg icons iteration"
  Update HA README.md to clarify GitLab support does not troubleshoot DRBD.
  Update license_finder to 3.1.1
  Make sure NotesActions#noteable returns a Noteable in the update action
  Cache the number of user SSH keys
  Adjust openid_connect_spec to use `raise_error`
  Resolve "Clicking on GPG verification badge jumps to top of the page"
  Add changelog for container repository path update
  Update container repository path reference
  ...
2017-11-17 19:19:06 +08:00
Jacopo 181cd299f9 Adds Rubocop rule for line break after guard clause
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
James Lopez 1c8af321dd Improve GitLab Import rake task to work with Hashed Storage and Subgroups 2017-11-07 19:11:42 +00:00
digitalMoksha 734fab8a6b show better message when deciding not to continue 2017-11-07 16:10:57 +01:00
digitalMoksha 52bacf96b1 Make warning message more explicit 2017-11-07 15:29:04 +01:00
Lin Jen-Shin fc6aad0b44 Merge remote-tracking branch 'upstream/master' into no-ivar-in-modules
* upstream/master: (1723 commits)
  Resolve "Editor icons"
  Refactor issuable destroy action
  Ignore routes matching legacy_*_redirect in route specs
  Gitlab::Git::RevList and LfsChanges use lazy popen
  Gitlab::Git::Popen can lazily hand output to a block
  Merge branch 'master-i18n' into 'master'
  Remove unique validation from external_url in Environment
  Expose `duration` in Job API entity
  Add TimeCop freeze for DST and Regular time
  Harcode project visibility
  update a changelog
  Put a condition to old migration that adds fast_forward column to MRs
  Expose project visibility as CI variable
  fix flaky tests by removing unneeded clicks and focus actions
  fix flaky test in gfm_autocomplete_spec.rb
  Use Gitlab::Git operations for repository mirroring
  Encapsulate git operations for mirroring in Gitlab::Git
  Create a Wiki Repository's raw_repository properly
  Add `Gitlab::Git::Repository#fetch` command
  Fix Gitlab::Metrics::System#real_time and #monotonic_time doc
  ...
2017-11-06 21:44:57 +08:00
Douwe Maan cd3b4ba4ab Remove gitlab:users:clear_all_authentication_tokens rake task 2017-11-02 11:39:02 +01:00
Rémy Coutable b2373e3d6c
Ensure the ee-compat-check uses the correct patch URL for forks
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-31 17:44:07 +01:00
Rémy Coutable a5cc1c2613 Improve the gitlab:dev:ee_compat_check task to pass a repo URL without credentials
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-18 15:10:31 +02:00