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-08-20Auto-DevOps pipeline skipped bannerauto_devops_detectJames Fargher
Small banner to show the user why their pipeline was skipped
2019-08-20Initial detection of Auto-DevOps buildable projectsJames Fargher
Contains a large list of files we expect to find for an Auto-DevOps project.
2019-08-16Expire project caches once per push instead of once per refStan Hu
Previously `ProjectCacheWorker` would be scheduled once per ref, which would generate unnecessary I/O and load on Sidekiq, especially if many tags or branches were pushed at once. `ProjectCacheWorker` would expire three items: 1. Repository size: This only needs to be updated once per push. 2. Commit count: This only needs to be updated if the default branch is updated. 3. Project method caches: This only needs to be updated if the default branch changes, but only if certain files change (e.g. README, CHANGELOG, etc.). Because the third item requires looking at the actual changes in the commit deltas, we schedule one `ProjectCacheWorker` to handle the first two cases, and schedule a separate `ProjectCacheWorker` for the third case if it is needed. As a result, this brings down the number of `ProjectCacheWorker` jobs from N to 2. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52046
2019-08-16Merge branch 'sh-fix-arel-deprecation-join' into 'master'Mayra Cabrera
Fix Arel deprecation warning in clusters_hierarchy See merge request gitlab-org/gitlab-ce!31916
2019-08-16Fix Arel deprecation warning in clusters_hierarchyStan Hu
As mentioned in https://github.com/rails/rails/pull/29619, this removes this warning message: ``` Delegating join_sources to arel is deprecated and will be removed in Rails 6.0. (called from project_clusters_base_query at app/models/clusters/clusters_hierarchy.rb:62) ``` Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/61451
2019-08-16Merge branch 'mc/feature/pipeline-tracking-config-ce' into 'master'Kamil Trzciński
Add `needs:` CI config option CE Closes gitlab-ee#12334 See merge request gitlab-org/gitlab-ce!31346
2019-08-16Merge branch ↵Grzegorz Bizon
'47003-user-onboarding-replace-current-email-confirmation-flow-with-a-soft-email-confirmation-flow' into 'master' Soft email confirmation flow Closes #47003 See merge request gitlab-org/gitlab-ce!31245
2019-08-16Merge branch 'enable-dag-support-by-default' into 'master'Kamil Trzciński
Enable DAG support by default Closes #65457 See merge request gitlab-org/gitlab-ce!31814
2019-08-15Migrations for Cycle Analytics backendAdam Hegyi
This change lays the foundation for customizable cycle analytics stages. The main reason for the change is to extract the event definitions to separate objects (start_event, end_event) so that it could be easily customized later on.
2019-08-15Only read rebase status from the modelNick Thomas
Prior to 12.1, rebase status was looked up directly from Gitaly. In https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14417 , a DB column was added to track the status instead. However, we couldn't stop looking at the gitaly status immediately, since some rebases may been running across the upgrade. Now that we're in 12.3, it is safe to remove the direct-to-gitaly lookup. This also happens to fix a 500 error that is seen when viewing an MR for a fork where the source project has been removed. We still look at the Gitaly status in the service, just in case Gitaly and Sidekiq get out of sync - I assume this is possible, and it's a relatively cheap check. Since we atomically check and set `merge_requests.rebase_jid`, we should never enqueue two `RebaseWorker` jobs in parallel.
2019-08-15Allow disabling group/project email notificationsBrett Walker
- Adds UI to configure in group and project settings - Removes notification configuration for users when disabled at group or project level
2019-08-14Make use of Gitlab::KubernetesJoão Cunha
- refactor Knative and Prometheus
2019-08-14Migrates Snowplow backend from EE to CEJeremy Jackson
This introduces several changes, but these are all just ported from the EE project.
2019-08-14Merge remote-tracking branch ↵John T Skarbek
'dev/security-2873-restrict-slash-commands-to-users-who-can-log-in'
2019-08-14Revert "Merge branch '64341-data-and-privacy-agreement-for-gitlab-users' ↵Kushal Pandya
into 'master'" This reverts merge request !30808
2019-08-14Merge branch 'sh-optimize-commit-deltas-post-receive' into 'master'Nick Thomas
Reduce Gitaly calls in PostReceive Closes #65878 See merge request gitlab-org/gitlab-ce!31741
2019-08-14Enable DAG support by defaultKamil Trzciński
This toggles the ci_dag_support flag to be on by default. This relies on ci_dag_limit_needs to be present to reduce amount of inter-dependencies between jobs
2019-08-14Merge branch 'optimise-dag-processing' into 'master'Grzegorz Bizon
Optimise dag processing See merge request gitlab-org/gitlab-ce!31768
2019-08-14Add notification for updated privacy policyDennis Tang
This adds a notification to let users know of our updated privacy policy. Users can dismiss the notification either by following the link or closing the notification via an "x" icon.
2019-08-14Optimise DAG processingKamil Trzciński
2019-08-14Merge branch '66008-fix-project-image-in-slack-notifications' into 'master'Robert Speicher
Fix project avatar image in Slack pipeline notifications Closes #66008 See merge request gitlab-org/gitlab-ce!31788
2019-08-14Merge branch 'expand-variables-only-when-needed' into 'master'Stan Hu
Expand variables only when needed See merge request gitlab-org/gitlab-ce!31772
2019-08-13Rework retry strategy for remote mirrorsBob Van Landuyt
**Prevention of running 2 simultaneous updates** Instead of using `RemoteMirror#update_status` and raise an error if it's already running to prevent the same mirror being updated at the same time we now use `Gitlab::ExclusiveLease` for that. When we fail to obtain a lease in 3 tries, 30 seconds apart, we bail and reschedule. We'll reschedule faster for the protected branches. If the mirror already ran since it was scheduled, the job will be skipped. **Error handling: Remote side** When an update fails because of a `Gitlab::Git::CommandError`, we won't track this error in sentry, this could be on the remote side: for example when branches have diverged. In this case, we'll try 3 times scheduled 1 or 5 minutes apart. In between, the mirror is marked as "to_retry", the error would be visible to the user when they visit the settings page. After 3 tries we'll mark the mirror as failed and notify the user. We won't track this error in sentry, as it's not likely we can help it. The next event that would trigger a new refresh. **Error handling: our side** If an unexpected error occurs, we mark the mirror as failed, but we'd still retry the job based on the regular sidekiq retries with backoff. Same as we used to The error would be reported in sentry, since its likely we need to do something about it.
2019-08-13Expand variables only when neededKamil Trzciński
This makes us to expand variables only when needed, instead of requesting all variables each time. This specifically helps in situation when explicit name of `environment: production` is used.
2019-08-13Fix project image in Slack pipeline notificationsNathan Friend
This commit fixes the project avatar images that are rendered in the footer of Slack pipeline notifications. Previously, the image URLs provided to Slack were relative URLs; now they are absolute.
2019-08-13Only expire tag cache once per pushStan Hu
Previously each tag in a push would invoke the Gitaly `FindAllTags` RPC since the tag cache would be invalidated with every tag. We can eliminate those extraneous calls by expiring the tag cache once in `PostReceive` and taking advantage of the cached tags. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/65795
2019-08-13Merge branch '65803-invalidate-branches-cache-on-refresh' into 'master'Bob Van Landuyt
Only expire branch cache once per push See merge request gitlab-org/gitlab-ce!31653
2019-08-13Reduce Gitaly calls in PostReceiveStan Hu
This commit reduces I/O load and memory utilization during PostReceive for the common case when no project hooks or services are set up. We saw a Gitaly N+1 issue in `CommitDelta` when many tags or branches are pushed. We can reduce this overhead in the common case because we observe that most new projects do not have any Web hooks or services, especially when they are first created. Previously, `BaseHooksService` unconditionally iterated through the last 20 commits of each ref to build the `push_data` structure. The `push_data` structured was used in numerous places: 1. Building the push payload in `EventCreateService` 2. Creating a CI pipeline 3. Executing project Web or system hooks 4. Executing project services 5. As the return value of `BaseHooksService#execute` 6. `BranchHooksService#invalidated_file_types` We only need to generate the full `push_data` for items 3, 4, and 6. Item 1: `EventCreateService` only needs the last commit and doesn't actually need the commit deltas. Item 2: In addition, `Ci::CreatePipelineService` only needed a subset of the parameters. Item 5: The return value of `BaseHooksService#execute` also wasn't being used anywhere. Item 6: This is only used when pushing to the default branch, so if many tags are pushed we can save significant I/O here. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65878 Fic
2019-08-13Fix performance issue in Helm#can_uninstall?Dylan Griffith
Calling #present? was causing a DB query to happen each time around the loop. We only wanted to check for nil as it's nil in the first loop around so there is no need for #present?
2019-08-13Improve quick action error messagesHeinrich Lee Yu
Standardize punctuation and format
2019-08-12Fix deprecation warning for dangerous order usageMarkus Koller
2019-08-12Merge branch 'sh-break-out-invited-group-members' into 'master'Ash McKenzie
Make it easier to find invited group members Closes #61948 See merge request gitlab-org/gitlab-ce!28436
2019-08-10Split MR widget into cached and non-cached serializersIgor
Splits auto-refreshing of MR widget into 2 requests: - the one which uses etag-caching and invalidates the fields on change - the one without caching The idea is to gradually move all the fields to etag-cached endpoint
2019-08-09Merge branch 'master' into sh-break-out-invited-group-membersStan Hu
2019-08-09Invalidate branches cache on PostReceivePatrick Bajao
Whenever `PostReceive` is enqueued, `UpdateMergeRequestsWorker` is enqueued and `MergeRequests::RefreshService` is called, it'll check if the source branch of each MR asssociated to the push exists or not via `MergeRequest#source_branch_exists?`. The said method will call `Repository#branch_exists?` which is cached in `Rails.cache`. When the cache contains outdated data and the source branch actually exists, the `MergeRequests#RefreshService` job will close associated MRs which is not correct. The fix is to expire the branches cache of the project so we have updated data during the post receive hook which will help in the accuracy of the check if we need to close associated MRs or not.
2019-08-09Revert "Merge branch ↵Winnie Hellmann
'4221-board-milestone-should-persist-any-none-properly-ce' into 'master'" This reverts merge request !30613
2019-08-09Rename search_invited to search_invite_emailStan Hu
2019-08-09Merge branch '39217-remove-kubernetes-service-integration' into 'master'James Lopez
Remove KubernetesService integration See merge request gitlab-org/gitlab-ce!31365
2019-08-08Bring scoped environment variables to coreHordur Freyr Yngvason
As decided in https://gitlab.com/gitlab-org/gitlab-ce/issues/53593
2019-08-08Set Devise's allow_unconfirmed_access_forAlex Buijs
to 30 days
2019-08-08CE port for bulk updating group labelsEugenia Grieff
- Original EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14827
2019-08-08Final removal of KubernetesServiceTiger
Creating new records has been disabled, and all existing records been migrated to clusters as of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28534
2019-08-07Fix public/private starrers counts in special casesCamil Staps
2019-08-07Handle reviewer comments on !24690Camil Staps
2019-08-07Make users.private_profile default false (previously had no default value)Camil Staps
2019-08-07Remove postgres-specific SQL from UsersStarProjectCamil Staps
2019-08-07Expose time since starring on project/:id/starrers API endpoint; exclude ↵Camil Staps
private profiles here as well
2019-08-07Remove private profiles from starrers view of projectsCamil Staps
2019-08-07Change sorting options for starrers: name (asc/desc), most/least recent starCamil Staps
2019-08-07Add /starrers view for projectsCamil Staps