Commit Graph

194 Commits

Author SHA1 Message Date
Rémy Coutable 6a189c1fcd
Allow to override the gitlab-qa ref for the downstream trigger
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-11-06 16:17:01 +01:00
Ian Baum ce4aae2379
Use CI_COMMIT_REF_SLUG when building assets image
* Using CI_COMMIT_REF_NAME fails when the branch or tag contains special
characters
2018-11-01 14:26:51 -05:00
Achilleas Pipinellis 7f47e13218 Merge branch 'gt-update-typos-in-comments-and-specs' into 'master'
Fix typos in comments and specs

See merge request gitlab-org/gitlab-ce!22683
2018-11-01 10:34:23 +00:00
George Tsiolis 733ae94921 Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
Filipa Lacerda 59d4a6d81c Merge branch 'prettify-all-remaining-things' into 'master'
Prettify remaining files with differences in CE and EE

See merge request gitlab-org/gitlab-ce!22702
2018-10-31 22:42:22 +00:00
Mike Greiling 31f26a9382
Add prettier to static-analysis job 2018-10-31 14:34:42 -05:00
Ian Baum 70ee4e1b3e Build a docker container storing only the frontent assets
* Run as part of gitlab:assets:compile job

* Will be used by omnibus-gitlab and the CNG images to avoid
compiling multiple times

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22235
2018-10-31 11:21:14 -05:00
Ian Baum 41994c2adf Add omitted indentation fix 2018-10-23 10:05:57 -05:00
Ian Baum 58690a63fa Add review app to gitlab-ce
* Uses the same supporting code as used in EE
* Includes automated cleanup
* Install external-dns helm chart to review apps cluster if it isn't
already
* Adds variables REVIEW_APPS_AWS_SECRET_KEY and
REVIEW_APPS_AWS_ACCESS_key
* review-apps-ce uses a different cipher
2018-10-23 10:05:57 -05:00
Mike Greiling a32511692f Fix/update prettier script 2018-10-22 17:47:03 +00:00
Rémy Coutable 25d8c8d1f0
Improve automated Review Apps cleanup
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-22 09:57:50 +02:00
Rémy Coutable 4d7c6a61d7
Improve the variables passed in trigger-build
Make the variable names consistent by following the
`TOP_UPSTREAM_SOURCE_*` pattern.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-10 12:10:04 +02:00
Rémy Coutable 02b456dbe8
Pass 'TOP_UPSTREAM_SOURCE_SHA' in trigger-build
This is needed because `GITLAB_VERSION` has a special meaning in
`omnibus-gitlab` triggers: this is the GitLab version to build.

The problem is that `omnibus-gitlab` also has triggers to run QA for an
`omnibus-gitlab` commit, and if we use `GITLAB_VERSION` in that case,
the comment would be posted on the GitLab CE/EE commit (stored in
`GITLAB_VERSION`), whci hwouldn't make any sense.
Thus we need `TOP_UPSTREAM_SOURCE_SHA` to represent the commit on
which we want to leave a comment.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-10 12:10:04 +02:00
Rémy Coutable 1922ca0e67
Improve downstream pipeine trigger class
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-08 14:23:58 +02:00
Alejandro Rodríguez a99bf447a2 Remove Gitlab::Git::Repository#rugged and Gollum code
Cleanup code, and refactor tests that still use Rugged. After this, there should
be no Rugged code that access the instance's repositories on non-test
environments. There is still some rugged code for other tasks like the
repository import task, but since it doesn't access any repository storage path
it can stay.
2018-10-02 16:34:28 -03:00
Rémy Coutable 159b650d74
Cleanup review apps more rapidly
- Stop review app's environment after 2 days
- Delete review app's environment after 3 days
- Delete Helm release after 4 days

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-01 14:08:40 +02:00
Rémy Coutable 3299680cdd
[CE] Port review apps file to CE
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-25 16:41:27 +02:00
Rémy Coutable 45d8c213fd
Refactor scripts/trigger-build and post a commit note with the downstream pipeline URL for omnibus triggers
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-24 18:24:13 +02:00
Achilleas Pipinellis 8cb39fa8da Merge branch 'docs-port-ee-community-contributions' into 'master'
Docs port ee community contributions

See merge request gitlab-org/gitlab-ce!21311
2018-09-03 10:18:42 +00:00
Jasper Maes 8f51727d95 Backport schema_changed.sh from EE which prints the diff if the schema is different 2018-08-30 08:29:08 +02:00
John Eismeier 2c06a13854
Update scripts/lint-doc.sh
Originally submitted at
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3056.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-29 17:35:41 +02:00
gfyoung 8a3d565c8e Don't use arguments keyword in gettext script
Causing SAST build to fail unnecessarily.

Follow-up to !19378.
2018-08-19 01:05:50 -07:00
🌴🇿🇦 Lukas Eipert (OOO until Summit) 8f9442fcdf Frontend: Proper gettext extraction with gettext-extractor 2018-08-16 19:03:57 +00:00
Ahmad Hassan 8ea9c81593 Use rugged to validate ref name 2018-07-19 12:23:46 +02:00
Winnie Hellmann d42cd343ca Removed return statements from prettier script 2018-07-09 09:53:23 +00:00
Achilleas Pipinellis 72fa064000
Simplify downstream branch name 2018-07-05 11:02:38 +02:00
Mike Greiling 70bf08073d Resolve "100% CPU for webpack-dev-server running in GDK" 2018-06-25 19:30:37 +00:00
Achilleas Pipinellis 82012d4608
Always run review app for docs-only branches 2018-06-25 15:21:15 +02:00
Rémy Coutable 67f310e41f
Ignore GitLab API hiccups in scripts/trigger-build
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-06-20 17:17:29 +02:00
Tim Zallmann e04dfff858
Fixed the searching on the whole disk :-P 2018-06-15 12:43:04 +02:00
Tim Zallmann 930baeb92a
Added possibility to run prettier against one specific directory to make our conversion easier 2018-06-15 12:43:03 +02:00
Tim Zallmann 5f3a219e14
Fixed Prettier Config Applying + Updated Prettier to newest version 2018-06-15 12:43:03 +02:00
Marin Jankovski dd72134eba
Move the trigger-build script into one location to serve both omnibus and cloud-native triggers. 2018-06-14 16:31:32 +02:00
blackst0ne e23fb005cf Add CI job to check Gemfile.rails5.lock 2018-06-12 11:23:58 +00:00
Lin Jen-Shin 7083b355a6 Follow Rubocop for scripts/prune-old-flaky-specs 2018-06-01 14:30:10 +08:00
Lin Jen-Shin 39b6f31c66 Eliminate constants warnings by:
* Replace `require` or `require_relative` with `require_dependency`
* Remove unneeded `autoload`
2018-06-01 13:46:46 +08:00
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