Commit Graph

774 Commits

Author SHA1 Message Date
Rémy Coutable 24fadd7c3d Merge branch 'patch-29' into 'master'
Add in the Oxford comma

See merge request gitlab-org/gitlab-ce!15602
2017-11-27 14:47:56 +00:00
David Muckle 73397a3e6c Add in the Oxford comma 2017-11-25 02:18:27 +00:00
Christiaan Van den Poel 308f2ecd1d removed 'only once' from the docs 2017-11-25 00:03:48 +01:00
Achilleas Pipinellis 0b22169fc3
Cross link default branch docs to issue closing pattern docs 2017-11-22 17:45:30 +01:00
Phil Hughes d7527d73b1 Merge branch 'feature_add_mermaid' into 'master'
Add support of Mermaid

Closes #3711

See merge request gitlab-org/gitlab-ce!15107
2017-11-22 11:00:12 +00:00
Vitaliy @blackst0ne Klachkov 131e74d10d Add support of Mermaid 2017-11-22 14:12:04 +11:00
Victor Wu 129036b2cf Custom issue tracker 2017-11-21 15:21:50 +00:00
Rémy Coutable 22caa23bb1 Merge branch 'docs/gb/update-pipeline-badge-docs' into 'master'
Update pipeline status badge details docs

Closes #40316

See merge request gitlab-org/gitlab-ce!15483
2017-11-20 12:21:47 +00:00
Sean McGivern 6b3e81b467 Merge branch 'patch-9' into 'master'
doc: schedules.md: fix only-and-except anchor link

See merge request gitlab-org/gitlab-ce!15473
2017-11-20 11:32:50 +00:00
Grzegorz Bizon 236feb08bc Update pipeline status badge details docs 2017-11-20 12:29:11 +01:00
Rémy Coutable 71c4f75d88
Fix a wrong anchor to job permissions doc
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-11-20 09:48:14 +01:00
Elan Ruusamäe e0bb6985d1 schedules.md: fix only-and-except anchor link 2017-11-19 11:25:28 +00:00
Stan Hu 5cf5832096 Remove executable bit from images for docs lint
This was causing a docs lint failure in https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/40901316.
2017-11-17 20:30:59 -08:00
Achilleas Pipinellis bacf671a33
Move installation of apps higher 2017-11-16 18:17:27 +01:00
Achilleas Pipinellis 3b9773fc3d
Change to Google Kubernetes Cluster and add internal links 2017-11-16 18:12:35 +01:00
Achilleas Pipinellis ee7ecc815e
Add Ingress description from official docs 2017-11-16 18:12:34 +01:00
Achilleas Pipinellis b7a01e08b2
Add info on creating your own k8s cluster from the cluster page 2017-11-16 18:12:34 +01:00
Achilleas Pipinellis 644a2941c0
Add info about the installed apps in the Cluster docs 2017-11-16 18:12:34 +01:00
James Ramsay 4a6ec1e034 Add readme only default project view preference
The option to choose readme only as a users default project view was
restored in !14900
2017-11-15 21:00:52 -05:00
Sean McGivern 7b34d828f7 Merge branch 'fix-typo' into 'master'
fix typo

See merge request gitlab-org/gitlab-ce!15374
2017-11-15 15:17:08 +00:00
Tim Zallmann 96764f2649 Merge branch 'update-metrics-for-k8s-1.7' into 'master'
Update queries to remove duplicate entries (CE version)

See merge request gitlab-org/gitlab-ce!15254
2017-11-14 17:48:46 +00:00
Chế Tiệp Chân Khoa 2ea9c914ee Update getting_started_part_one.md 2017-11-14 14:35:02 +00:00
Kamil Trzciński 6b01821b0d Merge branch 'fix/sm/31771-do-not-allow-jobs-to-be-erased-new' into 'master'
Do not allow jobs to be erased

Closes #31771

See merge request gitlab-org/gitlab-ce!15216
2017-11-14 10:54:30 +00:00
Joshua Lambert 33fa4ef62f Uodate docs 2017-11-12 12:27:25 -05:00
Mark Fletcher 9fffb6e3b8 Fix permissions link for project member docs 2017-11-10 17:32:18 +00:00
Douwe Maan 92249f1ac8 Merge branch 'github-importer-refactor' into 'master'
Rewrite the GitHub importer to perform work in parallel and greatly improve performance

Closes #33135, #38621, and #39361

See merge request gitlab-org/gitlab-ce!14731
2017-11-08 11:52:39 +00:00
Yorick Peterse 4dfe26cd8b
Rewrite the GitHub importer from scratch
Prior to this MR there were two GitHub related importers:

* Github::Import: the main importer used for GitHub projects
* Gitlab::GithubImport: importer that's somewhat confusingly used for
  importing Gitea projects (apparently they have a compatible API)

This MR renames the Gitea importer to Gitlab::LegacyGithubImport and
introduces a new GitHub importer in the Gitlab::GithubImport namespace.
This new GitHub importer uses Sidekiq for importing multiple resources
in parallel, though it also has the ability to import data sequentially
should this be necessary.

The new code is spread across the following directories:

* lib/gitlab/github_import: this directory contains most of the importer
  code such as the classes used for importing resources.
* app/workers/gitlab/github_import: this directory contains the Sidekiq
  workers, most of which simply use the code from the directory above.
* app/workers/concerns/gitlab/github_import: this directory provides a
  few modules that are included in every GitHub importer worker.

== Stages

The import work is divided into separate stages, with each stage
importing a specific set of data. Stages will schedule the work that
needs to be performed, followed by scheduling a job for the
"AdvanceStageWorker" worker. This worker will periodically check if all
work is completed and schedule the next stage if this is the case. If
work is not yet completed this worker will reschedule itself.

Using this approach we don't have to block threads by calling `sleep()`,
as doing so for large projects could block the thread from doing any
work for many hours.

== Retrying Work

Workers will reschedule themselves whenever necessary. For example,
hitting the GitHub API's rate limit will result in jobs rescheduling
themselves. These jobs are not processed until the rate limit has been
reset.

== User Lookups

Part of the importing process involves looking up user details in the
GitHub API so we can map them to GitLab users. The old importer used
an in-memory cache, but this obviously doesn't work when the work is
spread across different threads.

The new importer uses a Redis cache and makes sure we only perform
API/database calls if absolutely necessary.  Frequently used keys are
refreshed, and lookup misses are also cached; removing the need for
performing API/database calls if we know we don't have the data we're
looking for.

== Performance & Models

The new importer in various places uses raw INSERT statements (as
generated by `Gitlab::Database.bulk_insert`) instead of using Rails
models. This allows us to bypass any validations and callbacks,
drastically reducing the number of SQL queries and Gitaly RPC calls
necessary to import projects.

To ensure the code produces valid data the corresponding tests check if
the produced rows are valid according to the model validation rules.
2017-11-07 23:24:59 +01:00
Chenjerai Katanda b67d72958f Add note on registry restrictions on GitLab.com 2017-11-07 22:03:06 +00:00
Shinya Maeda 4fac95a64d Merge branch 'master' into 38464-k8s-apps 2017-11-08 01:46:53 +09:00
Victor Wu 7731eb0c99 issue ordering docs 2017-11-07 15:43:59 +00:00
Shinya Maeda d89c18901b Merge branch 'master' into fix/sm/31771-do-not-allow-jobs-to-be-erased-new 2017-11-07 22:12:19 +09:00
Shinya Maeda bbdb0cf051 Merge branch 'master' into 38464-k8s-apps 2017-11-07 21:23:54 +09:00
Victor Wu 12dbf55553 Label priority and Priority sort orders 2017-11-07 09:12:14 +00:00
Eric Eastwood 1788cc8e45 Update Cluster applications screenshot with updated description 2017-11-06 14:32:57 -06:00
Shinya Maeda afef385337 Add doc. Fix spec. Add erase_build in protected_ref rule 2017-11-07 02:47:05 +09:00
Eric Eastwood 797e758beb Add applications section to GKE clusters page 2017-11-03 11:28:57 -05:00
Grzegorz Bizon 70c808d296 Merge branch 'clarify-docs-about-external-artifacts-and-gitlab-pages' into 'master'
Document GitLab pages prerequisite with external HTML artifacts

See merge request gitlab-org/gitlab-ce!15153
2017-11-02 15:39:08 +00:00
Sean McGivern 56dccc2e10 Merge branch 'dm-remove-private-token' into 'master'
Remove Private Tokens

Closes #38595 and #38447

See merge request gitlab-org/gitlab-ce!14838
2017-11-02 15:25:42 +00:00
Eric Eastwood 749ffbdb72 Clarify external artifacts only working when GitLab pages is enabled
Prompted to add this note from
https://gitlab.com/gitlab-org/gitlab-ce/issues/34102#note_45522526
2017-11-02 09:35:01 -05:00
Douwe Maan d0af6047bc Update documentation 2017-11-02 12:53:26 +01:00
Douwe Maan 4b93429a4e Remove Private Token from User Settings > Account 2017-11-02 11:39:01 +01:00
Alexander Randa e7a0e7f40a Fix webhook recent deliveries elapsed time field 2017-11-02 11:07:28 +03:00
Cindy Pallares 🦉 d57ab8b00d Add extra webhook troubleshooting steps
Add information on duplicate or multiple triggers caused by a slow response time.
2017-11-01 13:16:26 +00:00
Rémy Coutable a479362d51 Merge branch '31454-missing-project-id-pipeline-hook-data' into 'master'
Adds project_id to pipeline hook data

Closes #31454

See merge request gitlab-org/gitlab-ce!15044
2017-10-31 15:36:15 +00:00
Felipe Artur 2f8577d45e Allow promoting project milestones to group milestones 2017-10-31 15:03:52 +00:00
Kamil Trzciński e829d5a084 Merge branch 'add-packagist-project-service' into 'master'
Add Packagist project service

See merge request gitlab-org/gitlab-ce!14493
2017-10-31 11:54:49 +00:00
Jacopo 2cad283018 Adds project_id to pipeline hook data
Pipeline hook data now includes the project_id
2017-10-30 22:02:33 +01:00
Nick Brown be73ede362 Semi-linear history merge is now available in CE.
Already mentioned in the list above this one.
2017-10-27 08:50:51 +00:00
Lyle Kozloff f667f74968 Changing the smallest of typos 2017-10-24 05:58:38 +00:00
Connor Shea 0011d8740f Simple docs fixes 2017-10-23 14:11:51 +00:00