Commit Graph

158 Commits

Author SHA1 Message Date
Rémy Coutable 0c977d1725 Merge branch 'dz-no-ee-check' into 'master'
Add check for top-level ee directory in CE repo

Closes #46239

See merge request gitlab-org/gitlab-ce!19062
2018-05-22 16:26:30 +00:00
Dmitriy Zaporozhets fba580e37f
Update no-ee-check with rubocop recommendation.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-05-22 18:35:51 +03:00
Dmitriy Zaporozhets 470f55351b
Add check for top-level ee directory in CE repo
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-05-21 14:52:45 +03:00
Grzegorz Bizon 3834040aa8 Merge branch 'rc/improve-single-script-jobs-ci-config' into 'master'
Improve the single-script jobs CI config

See merge request gitlab-org/gitlab-ce!19040
2018-05-21 11:03:17 +00:00
Rémy Coutable bc57a62a5c
Improve the single-script jobs CI config
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-21 11:30:44 +02:00
DJ Mountney 0bc78d0800 Build cloud native images on tags
When on a tag, trigger a multi-project pipeline in the CNG repostiory.

Opting for a trigger rather than an addition to our release-tools
project for a few reasons:

- The Dockerfiles in the CNG image repo change infrequently, and as a result
I don't feel the need/overhead for stable branches in that repo at this time
- My intent with the CNG repo, is that once stable, the Dockerfiles
would actualy move to their component projects, to be versioned with the
code they are building
- It is likely that we will want to followup with a manually triggered package
for branches for devs, and possibly review apps, so it made sense to
build the CNG ci jobs to accept this sort of pipeline.
2018-05-17 15:17:53 -07:00
Lin Jen-Shin 0ab6469187 Grant privileges after database is created
Never drop the database when granting privileges
2018-05-16 21:52:08 +08:00
Lin Jen-Shin cdcde75bb7 Only setup db in the first checkout! 2018-05-16 21:52:08 +08: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
Rémy Coutable d8a58f62bf
Fix scripts/prune-old-flaky-specs requires Bundler to run
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-11 23:07:05 +02:00
Rémy Coutable bcb7a99575
Use RspecFlaky::Report in scripts/prune-old-flaky-specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-10 15:38:41 +02:00
Rémy Coutable 9bb97abf04
Introduce scripts/prune-old-flaky-specs to prune outdated flaky specs from the report
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-10 15:38:40 +02:00
Olivier Gonzalez 81aba67e54 Use standard codequality job 2018-04-04 10:01:52 +00:00
Grzegorz Bizon f50d0e4eee Correctly check whether package-and-qa runs for EE 2018-04-03 09:59:47 +02:00
Achilleas Pipinellis c8205203a1
Add test for new README.md in docs
Prefer index.md instead since they provide clean URLs in the docs site
2018-03-26 15:11:38 +02:00
Lukas Eipert d023244aa5 Make use of the prettier ignore file during our save script 2018-03-26 07:39:14 +00:00
Mike Greiling 569b06cf20
update eslintignore for node scripts 2018-03-23 11:53:12 -05:00
Mike Greiling 9238c5d5ca
prettify all node scripts 2018-03-23 11:52:54 -05:00
Tim Zallmann 51e454f3b1 Prettier Phase 1: Prettier Configuration, Prettifying of files and documentation 2018-03-14 19:32:36 +00:00
Achilleas Pipinellis 471728f8fb
Wait for the pipeline to start before canceling it 2018-03-08 14:22:59 +01:00
Achilleas Pipinellis fe7d45f26a
Fix race condition when previewing docs
Cancel the pipeline that gets created the first time the remote
branch is created in order not to overwrite the one we trigger
afterwards.

Closes https://gitlab.com/gitlab-com/gitlab-docs/issues/154
2018-03-06 10:02:21 +01:00
Robert Speicher a04ff31e40 Set security harness hook to executable after creation 2018-02-28 09:47:34 -06:00
Rémy Coutable a0ef01c872
Optimize and improve the inline documentation for the codequality job
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-21 16:25:28 +01:00
Grzegorz Bizon 5ccd3bec95 Merge branch 'improve-codequality-job' into 'master'
Simplify the codequality job

See merge request gitlab-org/gitlab-ee!4602
2018-02-21 15:21:05 +01:00
Rémy Coutable 2f0d2ab55b
Run lint:all tasks in forks
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-14 17:34:34 +01:00
Rémy Coutable e4990b66df Combine all rake tasks in the static-analysis job
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-14 15:18:59 +01:00
Robert Speicher ebdebae4ea Add a security harness script
This script toggles a Git pre-push hook that will prevent pushing to
remotes other than dev when the harness is enabled.
2018-02-13 13:09:57 -06:00
Jacob Vosmaer 4aedec1192 Ban Rugged from Repository 2018-02-01 15:44:36 +01:00
Jacob Vosmaer (GitLab) 5c2fe2d3d7 Decouple more of Repository from Rugged 2018-01-30 16:21:55 +00:00
Rémy Coutable 33ed96229b
Don't run scripts/lint-changelog-yaml in scripts/static-analysis but only in the 'docs lint' job
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-30 11:08:32 +01:00
Lin Jen-Shin a2618310ae Use Process::Status rather than an integer
However keep backward compatibility
2018-01-26 19:42:48 +08:00
Lin Jen-Shin df2c47b9ff Don't print stdout in case we're just printing warnings
Otherwise it could be confusing
2018-01-26 19:42:48 +08:00
Lin Jen-Shin 54ca8d0d6c Fail static-analysis if there's output to stderr
TODO: fix offenders
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
Rémy Coutable fca2a75266 Ensure Gitaly Ruby gems are installed using the correct Gemfile and at the correct location
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-23 15:29:20 +01:00
Tim Zallmann d7eb369218 Merge branch 'revert-c8ddf067' into 'master'
Revert "Merge branch 'pre-commit-prettier' into 'master'"

See merge request gitlab-org/gitlab-ce!16217
2018-01-17 13:31:16 +00:00
Lin Jen-Shin cfd75101d1 Merge remote-tracking branch 'upstream/master' into 1819-override-ce
* upstream/master: (621 commits)
  Add a note about GitLab QA page objects validator to docs
  Refactor dispatcher projects blame and blob path
  Update export message to mention we can download the file from the UI
  Fix Ctrl+Enter keyboard shortcut saving comment/note edit
  fix case where tooltip messes up :last-child selector
  Add reason to keep postgresql 9.2 for CI
  Remove warning noise in ProjectImportOptions
  Add changelog entry
  Add RedirectRoute factory
  Update Ingress extra cost note to be more generic
  Fix Rubocop offense
  Refactor dispatcher project branches path
  Revert "Revert "Fix Route validation for unchanged path""
  Document that we need rsync for backing up
  Docs: move article "Laravel and Envoy w/ CI/CD"
  Recommend against the use of EFS
  Adds Rubocop rule for line break around conditionals
  Update CHANGELOG.md for 10.1.6
  Filter out build traces from logged parameters
  Refactored project:n* imports in dispatcher.js
  ...
2018-01-12 19:43:38 +08:00
Filipa Lacerda ecf6f1f872 Revert "Merge branch 'pre-commit-prettier' into 'master'"
This reverts merge request !16061
2018-01-04 09:13:26 +00:00
Robert Speicher c8ddf067ed Merge branch 'pre-commit-prettier' into 'master'
Pre commit prettier

See merge request gitlab-org/gitlab-ce!16061
2018-01-03 19:52:26 +00:00
Jacob Schatz 2abf63899d Add check if run from gitlab development kit root directory. 2018-01-02 16:01:45 -05:00
Jacob Schatz f6e5772dfc Check for symlink instead of file before install. 2018-01-02 15:57:45 -05:00
Jacob Schatz 981aac02f5 Update script to work only when run in the gitlab directory. 2018-01-02 15:49:39 -05:00
Stan Hu ad88e3f88d Fix `rake db:seed_fu` not doing anything in CI
The default behavior of seed_fu is to load the fixtures using the RAILS_ENV
environment.  In CI, since we set RAILS_ENV=test, nothing is ever
loaded. Instead of `rake db:seed_fu`, use `rake gitlab:setup`, which sets up
MySQL properly with limits.

Closes #41517
2018-01-02 12:44:51 -08:00
Lin Jen-Shin 8139895b43 Use `Gitlab::Utils::Override` over defined?(super) 2017-12-26 17:18:10 +08:00
Rémy Coutable 7fdb77625e Merge branch 'dz-add-sast' into 'master'
Remove security checks from static analysis and add sast job

See merge request gitlab-org/gitlab-ce!16113
2017-12-23 14:19:51 +00:00
Dmitriy Zaporozhets ef82cbef90 Remove security checks from static analysis and add sast job 2017-12-23 14:18:39 +00:00
blackst0ne f20581773a Return exception messages in scripts/lint-changelog-yaml 2017-12-23 12:53:13 +11:00
Jacob Schatz 060bceeacb Remove `-f` to not ruin other people's existing pre-commit files. 2017-12-20 15:54:21 -05:00
Jacob Schatz b3b7d12496 Add changelog and newlines 2017-12-20 15:48:45 -05:00
Jacob Schatz 6f45cbd197 Add script to enable code formatters 2017-12-20 15:29:27 -05:00