summaryrefslogtreecommitdiff
path: root/.gitlab/ci
Commit message (Collapse)AuthorAgeFilesLines
* Centralize config for markdownlintMarkus Koller2019-07-091-3/+1
| | | | | | | | The configuration is currently only specified in CI, by moving it into `.mdlrc` we get immediate feedback locally in supported editors. To ensure `mdl` is available it's also added to the `Gemfile`, though CI will still use the version installed in the `gitlab-docs-lint` image.
* Add lint rule that headings must increment one level at a timeEvan Read2019-07-081-1/+1
| | | | Also fixes instances in Markdown that broke the rule.
* Revert "Merge branch '63825-increase-rspec-parallelism' into 'master'"revert-01c917e3Nick Thomas2019-07-051-2/+2
| | | This reverts merge request !30130
* Retry review-deploy only onceRémy Coutable2019-07-041-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'use-pg-9.6.11-on-ci' into 'master'Stan Hu2019-07-022-2/+2
|\ | | | | | | | | Use PostgreSQL 9.6.11 in CI tests See merge request gitlab-org/gitlab-ce!30270
| * Use PostgreSQL 9.6.11 in CI testsTakuya Noguchi2019-07-032-2/+2
| | | | | | | | | | | | Specify the minor version of postgresql for CI Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* | Prefer offline install for yarnLukas Eipert2019-07-022-4/+4
| |
* | Merge branch '59177-squash-old-migrations' into 'master'harish-and-cindy-ssl-check-rake-taskharish-and-cindy-ldap-sync-rake-tasksDmitriy Zaporozhets2019-07-021-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Squash old migrations Closes #59177 See merge request gitlab-org/gitlab-ce!30226
| * | Run the db:rollback-pg CI job from 2018Nick Thomas2019-07-021-1/+1
| | |
* | | Disable juint reports tmpdisable-junit-reportsSteve Azzopardi2019-07-022-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The junit reports are creating 90mb files inside of redis for `gitlab-ce/ee` project. There is an ongoing production incident https://gitlab.com/gitlab-com/gl-infra/production/issues/928 that is because of high CPU uitlaization on the redis nodes. GitLab-ce/ee are the highest consumers of memory becuase of these junit reports. This is a bandage until we can scale redis properly.
* | | Fix most bare URLs in projectEvan Read2019-07-021-2/+2
|/ / | | | | | | | | | | Linting rule not enabled for now because tooling produces false positives.
* | Merge branch '62722-boot-app-in-ci-and-check-memory-ce' into 'master'Kamil Trzciński2019-07-011-0/+23
|\ \ | | | | | | | | | | | | | | | | | | Get memory data after booting app in production Closes #62722 See merge request gitlab-org/gitlab-ce!30185
| * | Get memory data after booting app in production62722-boot-app-in-ci-and-check-memory-ceAleksei Lipniagov2019-06-281-0/+23
| |/ | | | | | | | | | | Preload the app in `production` env, hit it with a single request, and gather total gem memory consumption data using `derailed exec perf:mem` from `derailed_benchmarks`. Present the result as MR metrics.
* | Refactor except codePhilippe Lafoucrière2019-07-016-55/+61
| | | | | | | | | | We repeat the same code in many places. With the support of multiple extends, we can clean up several jobs.
* | Enforce consistent prefix for bullet listsMarcel Amirault2019-07-011-1/+1
| | | | | | | | Adjusts asterisks to hyphens in assorted docs to allow lint rule to pass
* | Merge branch 'master' into 'check-min-schema-migrate'DJ Mountney2019-06-281-2/+2
|\ \ | |/ | | | | # Conflicts: # lib/gitlab/database.rb
| * Revert "Merge branch '62722-boot-app-in-ci-and-check-memory' into 'master'"Rémy Coutable2019-06-281-23/+0
| | | | | | This reverts merge request !30031
| * Get memory data after booting app in production62722-boot-app-in-ci-and-check-memoryAleksei Lipniagov2019-06-281-0/+23
| | | | | | | | | | | | Preload the app in `production` env, hit it with a single request, and gather total gem memory consumption data using `derailed exec perf:mem` from `derailed_benchmarks`. Present the result as MR metrics.
| * Attempt to fix migration spec failures by increasing parallelism63825-increase-rspec-parallelismNick Thomas2019-06-271-2/+2
| |
* | Add an flag for skipping the schema version checkDJ Mountney2019-06-251-1/+1
|/ | | | | | If you chose to use the rollback migration feature on your current version for example, you should still have a way to migrate, being that you are still on a supported migration path.
* Merge branch 'improve-review-apps-cleanup-when-previous-deployment-failed' ↵Lin Jen-Shin2019-06-251-6/+11
|\ | | | | | | | | | | | | | | | | into 'master' Improve Review Apps cleanup when previous deployment failed by only issuing an `helm delete` command Closes #63639 and #62161 See merge request gitlab-org/gitlab-ce!28661
| * Let Helm handle the cleanup and print logs when deployment failsRémy Coutable2019-06-251-6/+9
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Retry review-deploy and review-qa-* jobs twiceRémy Coutable2019-06-251-0/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch '62722-add-gem-size-data-to-metrics-report' into 'master'Kamil Trzciński2019-06-251-6/+6
|\ \ | |/ |/| | | | | Add gem size information to metrics.txt in memory CI artifacts See merge request gitlab-org/gitlab-ce!29827
| * Generate gem size metrics in memory CI62722-add-gem-size-data-to-metrics-reportQingyu Zhao2019-06-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes several changes: - Rename memory-static to generate-gems-size-metrics-static - Rename memory-static-objects to generate-gems-memory-metrics-static - Change generate-gems-size-metrics-static interface. The script now expect `bundle exec derailed bundle:mem` output as its input. The script output to stdout, or stderr for error message. - Change generate-gems-memory-metrics-static interface. The script now expect `bundle exec derailed bundle:objects` output as its input. The script output to stdout, or stderr for error message. - Generate gem size metrics. Script generate-gems-size-metrics-static extract each gem size from `bundle exec derailed bundle:mem` output. Save output to metrics file in format: 'gem_size_mb{name="zip"} 0.5'
* | Fix reports jobs timing out because of cachePhilippe Lafoucrière2019-06-252-82/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: This commit relies on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26801 which brings support to multiple extends. While `cache: {}` can disable a cache being set globally, it doesn't work with extends, which will perform a reverse deep merge based on the keys. The cache defined in the base `.default-cache` job won't be disabled in the report jobs. As a side effect, the `code_quality`, `sast`, and `dependency_scanning` jobs are running on a larger code base than expected, leading to timeouts. fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/11303 fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/60879 fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/12021
* | Exclude docs-only branches from jobEvan Read2019-06-251-0/+1
| |
* | Add Markdown lintingEvan Read2019-06-251-0/+4
|/ | | | | Also adds and one linting rule and makes project conform to it.
* Merge branch '52442-minimal-remove-mysql-support' into 'master'Robert Speicher2019-06-191-69/+0
|\ | | | | | | | | Only support postgresql (minimal version) See merge request gitlab-org/gitlab-ce!29790
| * Only support postgresqlNick Thomas2019-06-191-69/+0
| | | | | | | | MySQL support has been removed
* | Run static benchmarks from 'derailed_benchmarks'62722-include-derailed-benchmarks-data-to-ci-reportAleksei Lipniagov2019-06-191-0/+19
|/ | | | | | | | Two static memory benchmarks will be included in our CI pipeline. It will load gems from the Gemfile and check the amount of RAM consumed as well as the number of objects allocated and retained. Aggregated values will be included as 'metrics' into MRs while full reports will be downloadable as job artifacts.
* Merge branch 'remove-node-modules-from-artifacts' into 'master'Rémy Coutable2019-06-182-6/+40
|\ | | | | | | | | Only push to assets-compile-cache when in master See merge request gitlab-org/gitlab-ce!28854
| * Only push to assets-compile-cache in masterremove-node-modules-from-artifactsHeinrich Lee Yu2019-06-172-5/+39
| | | | | | | | Also update dependencies to match updated job names
| * Bump assets-compile-cache to cleanup old filesHeinrich Lee Yu2019-06-171-1/+1
| |
* | Run CI migrations since 11.11.0Yorick Peterse2019-06-171-1/+1
|/ | | | | | | | | | One can not upgrade straigt from 9.3 to 12.0, due to the schema changes being backported. Instead, one must first upgrade to 11.11.X. Omnibus already enforces this, and our online upgrade guidelines also cover this. By changing the CI config we don't have to adjust the backport migration to handle a migration path that one can not take.
* Update to node@12leipert-node-12Lukas Eipert2019-06-143-4/+4
| | | | | | | | This updates our build images to use node@12. We are also adding a sentence to the from-source installation that while we require a minimum version of node@8, we also recommend node@12. Last but not least, we change the version of node in the .nvmrc so that developers using nvm can automatically use node@12 with the project
* Merge branch 'qa-allow-review-jobs-to-fail' into 'master'Rémy Coutable2019-06-051-2/+2
|\ | | | | | | | | Allow the review-deploy and review-qa-* jobs to fail for now See merge request gitlab-org/gitlab-ce!29208
| * Allow the review-deploy and review-qa-* jobs to fail for nowRémy Coutable2019-06-051-2/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch '10403-harden-against-gitlab-assets-compile-transient-failures' ↵Stan Hu2019-06-051-4/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Harden gitlab:assets:compile against transient network failures Closes gitlab-ee#10403 See merge request gitlab-org/gitlab-ce!29211
| * | Harden gitlab:assets:compile against transient network failuresNick Thomas2019-06-051-4/+4
| |/
* | Add yaml lintKamil Trzciński2019-06-056-15/+23
|/ | | | | | | This commit adds CI job that validates all `*.yml` with `yamllint`. This commit fixes all offenses present in repository.
* Generate knapsack report for review-qa-allMark Lapierre2019-06-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | Add knapsack qa report and use it to run tests in parallel Use the RSpec runner with knapsack The way the Knapsack runner uses exec to start rspec seems incompatible with the way we expect it to work. Plus, it requires specifying KNAPSACK_TEST_DIR. Instead, we use knapsacks AllocatorBuilder to select the spec files to run, and then start rspec as normal, via RSpec::Core::Runner.run This also means we can incorporate tags. Let the job run automatically Include KNAPSACK_TEST_FILE_PATTERN in vars Check all defined knapsack env vars before requiring knapsack
* Remove Google apt source from gitlab:assets:compile stepStan Hu2019-05-301-0/+1
| | | | | Chrome is already installed in this image, and the apt-get update is only used to install jq.
* Fix MySQL CI jobsRémy Coutable2019-05-221-2/+24
| | | | | | [run mysql] Signed-off-by: Rémy Coutable <remy@rymai.me>
* Revert "Merge branch 'revert-04c3c6dd' into 'master'"Rémy Coutable2019-05-222-15/+49
| | | | | This reverts commit 744f1f2e7037f5c70c3168d9e2e89b1c327465d2, reversing changes made to c4d930e5f54e7da07c80cc028dfc0f5c08719146.
* Move package-and-qa to review stage from qa stagemove-qa-and-package-to-reviewLin Jen-Shin2019-05-221-1/+1
| | | | This way even if review-deploy failed we can still run it.
* Disallow the review-deploy and review-qa-smoke jobs to faildisallow-review-deploy-to-failRémy Coutable2019-05-151-3/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Upgrade Ruby version to 2.6.3sh-upgrade-ruby-2.6.3-ceStan Hu2019-05-087-10/+11
| | | | | | | Ruby 2.6 offers better performance and memory usage: https://www.rubyguides.com/2018/11/ruby-2-6-new-features/ Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/57323
* Move the build-qa-image to the test stageRémy Coutable2019-05-061-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use PostgreSQL 10.7use-pg-10.7Balasankar "Balu" C2019-05-021-1/+1
| | | | Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>