Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-23Remove dead MySQL codeNick Thomas
None of this code can be reached any more, so it can all be removed
2019-07-18Merge branch 'webide-commit-use-correct-parent' into 'master'Nick Thomas
Use correct parent when committing in WebIDE See merge request gitlab-org/gitlab-ce!29598
2019-07-18Add start_sha to commits APIMarkus Koller
When passing start_branch on committing from the WebIDE, it's possible that the branch has changed since editing started, which results in the change being applied on top of the latest commit in the branch and overwriting the new changes. By passing the start_sha instead we can make sure that the change is applied on top of the commit which the user started editing from.
2019-07-16Wrap rugged calls with access disk blockJohn Cai
Whenever we use the rugged implementation, we are going straight to disk so we want to bypass the disk access check.
2019-07-15Fix Server Side Request Forgery mitigation bypassFrancisco Javier López
When we can't resolve the hostname or it is invalid, we shouldn't even perform the request. This fix also fixes the problem the SSRF rebinding attack. We can't stub feature flags outside example blocks. Nevertheless, there are some actions that calls the UrlBlocker, that are performed outside example blocks, ie: `set` instruction. That's why we have to use some signalign mechanism outside the scope of the specs.
2019-07-12Merge branch 'js-specs-transactions' into 'master'Andreas Brandl
Use transactions in JS feature specs Closes #60207 See merge request gitlab-org/gitlab-ce!27496
2019-07-12Gather memory usage data in testsAleksei Lipniagov
Log memory stats after running each spec file and compile the report.
2019-07-12Use transactions in JS feature specsHeinrich Lee Yu
Uses Rails transactional tests instead of DatabaseCleaner transaction strategy because that doesn't work with JS tests
2019-07-02Add a memory cache local to the thread to reduce Redis loadStan Hu
Loading `ApplicationSetting` from Redis was responsible for at least 50% of the CPU load of the Redis cluster on GitLab.com. Since these values generally don't change very much, we can load this from the database and cache it in memory, skipping Redis altogther. We use `ActiveSupport::Cache::MemoryStore` as a drop-in replacement for `RedisCacheStore` even though we probably don't need synchronized access within `Thread.current`. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63977
2019-06-26Disable Rails SQL query cache when applying service templatesStan Hu
When the SQL query cache is active, the SELECT query for finding projects to apply service templates returns the same values. This causes an infinite loop because even though bulk INSERT queries are made, the cached results never reflect that progress. To fix this, we call `Project.uncached` around the query to ensure new data is retrieved. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63595
2019-05-22Revert "Merge branch 'revert-04c3c6dd' into 'master'"Rémy Coutable
This reverts commit 744f1f2e7037f5c70c3168d9e2e89b1c327465d2, reversing changes made to c4d930e5f54e7da07c80cc028dfc0f5c08719146.
2019-05-22Revert "Merge branch 'reorganize-tests-jobs-by-level' into 'master'"Kamil Trzciński
This reverts merge request !27514
2019-05-20Reorganize test jobs by levelRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-05-10Fix unrelated errors when teardowning quanrantined specsRémy Coutable
Since we're skipping the example in a before hook, the @_subscribers instance variable that is normally set in the setup phase of the test by https://github.com/rails/rails-controller-testing/blob/21014e48be124dd8d0af250b79f682519d445015/lib/rails/controller/testing/template_assertions.rb#L21 isn't set but the teardown phase of the example still happens and tries to iterate over the array of subcribers: https://github.com/rails/rails-controller-testing/blob/21014e48be124dd8d0af250b79f682519d445015/lib/rails/controller/testing/template_assertions.rb#L54 Using an around hook allows the @_subscribers instance variable to be set. Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-05-03Show full Rspec backtrace only in CIHeinrich Lee Yu
2019-04-29Add full backtrace for RSpec outputStan Hu
Attempt to debug https://gitlab.com/gitlab-org/gitlab-ce/issues/60953
2019-04-18Introduce the wait_for helper for system testsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-04-10Double retries for rspec-retriesLin Jen-Shin
It was 2*4 => 8 times before, so 4 times is still half retries
2019-04-09Reduce number of rspec retriesSanad Liaquat
In both e2e QA tests and unit tests, reduce the number of retires to 2 (i.e., 1 initial and one retry)
2019-04-01Merge branch '6539-extract-ee-specific-code' into 'master'Rémy Coutable
Add no-op license helper to CE See merge request gitlab-org/gitlab-ce!26723
2019-03-28Add no-op license helper to CEAlexandru Croitor
Add no-op license helper to CE to make it compatible with EE codebase. Helper will be overwritten in EE to allow for CE specs to be run under EE codebase. https://gitlab.com/gitlab-org/gitlab-ee/issues/6539
2019-03-27Factorize policy helpers into PolicyHelpersRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-03-01Bring back Rugged implementation of find_commitStan Hu
This brings back some of the changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20339. For users using Gitaly on top of NFS, accessing the Git data directly via Rugged is more performant than Gitaly. This merge request introduces the feature flag `rugged_find_commit` to activate Rugged paths. There are also Rake tasks `gitlab:features:enable_rugged` and `gitlab:features:disable_rugged` to enable/disable these feature flags altogether. Part of four Rugged changes identified in https://gitlab.com/gitlab-org/gitlab-ce/issues/57317.
2019-01-29Revert the "What's new" featureBrandon Labuschagne
2019-01-15Add jobs to run quarantine testsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-15Allow to quarantine testsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-14Resolve "Add "What's new" menu item in top navigation"Brandon Labuschagne
2018-12-26Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
54953-error-500-viewing-merge-request-due-to-nil-commit_email_hostname * upstream/master: (115 commits) [CE] Speed up login page usage Add new line and comments Fix the seeder 24_forks.rb cannot find public project Milestones on community contribution issues Removed Gitlab Upgrader found in /lib/gitlab/upgrader.rb Fix and move specs into admin_disables_git_access_protocol_spec.rb Fix HTTP/SSH clone panel for mobile Add spec for HTTP/SSH clone panel Fix missing Git clone button when protocol restriction setting enabled Fix deprecation: Using positional arguments in integration tests Extend override check to also check arity Update tm cli version Bump Gitaly version to v1.12.0 Add @dbalexandre to CODEOWNERS Update verbiage for clarity Change group-cluster beta to regular note Change alpha states to use note instead of warning Update registry section. Update serverless.yaml formatting Clarify obtaining application URL Add @godfat to CODEOWNERS ...
2018-12-19Rename GroupHierarchy into ObjectHierarchyJarka Košanová
- we now use the hierarchy class also for epics - also rename supports_nested_groups? into supports_nested_objects? - move it to a concern
2018-12-19Make sure we clear the application settings afterLin Jen-Shin
migration tests.
2018-12-19Use fake application settings for migration testsLin Jen-Shin
2018-12-17Merge branch 'fix-rspec-offcense' into 'master'Rémy Coutable
Fix RSpec/HookArgument rubocop offense See merge request gitlab-org/gitlab-ce!23776
2018-12-14Remove rails 4 support in CI, Gemfiles, bin/ and config/Jasper Maes
2018-12-11Fix RSpec/HookArgument rubocop offenseSemyon Pupkov
2018-11-14Address specs failing in rails 4Jan Provaznik
We want to run CI with rails 4 for a short-term (until we are sure that we will ship with rails 5). The problem is that rails 4 can not handle rails 5 schema.rb properly - specifically `t.index` directive can not handle multiple indexes on the same column. Because combination of rails 4 + rails 5 schema will be used only in CI for a short-term, we can just ignore these incompatibility failures. This patch adds `rails5` helper for specs.
2018-10-05Require spec helpers loaded by other spec helpers firstAlejandro Rodríguez
2018-09-10Ensure in-memory application settings are cleared before each testRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-31Move fixture_path out of support/rspec file which is used by ↵Thong Kuah
fast_spec_helper, so that fast specs can be run on its own again. Move `fixture_path` config together with use_transactional_fixtures and use_instantiated_fixtures. These settings are all added by rspec-rails https://github.com/rspec/rspec-rails/blob/8c6c9590b94916199950dc8a91a9741d3be30c7c/lib/rspec/rails/configuration.rb#L65-L67
2018-08-16Refactor Rainbow usage in specsGabriel Mazetto
We don't test any specific string generated by it yet, so there is no point in keeping it enabled when we are disabling it everywhere we test its output.
2018-08-16Resolve "Enable Auto DevOps instance-wide on GitLab.com"Dylan Griffith
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-07-06Fix User role displayed on projects dashboardFrancisco Javier López
2018-06-21Implement `expect_next_instance_of` and use itLin Jen-Shin
We need this because `expect_any_instance_of` doesn't work on prepended models. Now we could use the same code between CE/EE
2018-06-14Port route helper from EE to CELin Jen-Shin
2018-06-12Find and mark more Git disk access locations, part 2Jacob Vosmaer
2018-06-05Fix Fog mockingKamil Trzciński
2018-05-10Support resetting of Prometheus metrics between test runsStan Hu
Adding the :prometheus tag to an rspec test will clear out memory-mapped files and reset the registry. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39968
2018-05-04Introduce Redis helpers. Rename BuildTraceChunkFlushToDbWorker to ↵Shinya Maeda
Ci::BuildTraceChunkFlushWorker.
2018-04-25Gitlab::Shell works on shard name, not pathZeger-Jan van de Weg
Direct disk access is done through Gitaly now, so the legacy path was deprecated. This path was used in Gitlab::Shell however. This required the refactoring in this commit. Added is the removal of direct path access on the project model, as that lookup wasn't needed anymore is most cases. Closes https://gitlab.com/gitlab-org/gitaly/issues/1111
2018-04-23Move spec helpers/matchers/shared examples/contexts to their relevant folderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>