summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Refactor PositionTracer to support different typesPatrick Bajao2019-07-055-186/+287
| | | | This is to prepare for supporing image type position tracing
* Update SAST.gitlab-ci.yml w/ FAIL_NEVER ENVLucas Charles2019-07-051-0/+1
| | | | https://gitlab.com/gitlab-org/gitlab-ee/issues/10564
* Merge branch 'if-6990-enforce_smartcard_session_for_git_and_api' into 'master'12-1-stable-prepare-rc1Bob Van Landuyt2019-07-051-5/+10
|\ | | | | | | | | CE port of "Require session with smartcard login for Git access" See merge request gitlab-org/gitlab-ce!30384
| * CE port of "Require session with smartcard login for Git access"Imre Farkas2019-07-051-5/+10
| |
* | Merge branch ↵Bob Van Landuyt2019-07-054-3/+59
|\ \ | |/ |/| | | | | | | | | | | | | '58409-increase-graphql-complexity-for-fields-that-make-gitaly-calls' into 'master' Increase GraphQL complexity for fields that make Gitaly Calls Closes #58409 See merge request gitlab-org/gitlab-ce!28814
| * Address reviewer comments58409-increase-graphql-complexity-for-fields-that-make-gitaly-callscharlieablett2019-07-052-5/+6
| | | | | | | | | | | | - Remove Gitaly call check for fields that have a constant complexity declared - Add associated test
| * Address reviewer commentscharlieablett2019-07-031-4/+12
| | | | | | | | | | | | - Add 1 for all fields that call Gitaly (with resolvers or without) - Clarify comment regarding Gitaly call alert - Expose predicate `calls_gitaly?` instead of ivar
| * Wrap proc properly in gitaly call countscharlieablett2019-07-032-10/+12
| | | | | | | | | | | | - Add `calls_gitaly: true` to some fields missing (hey, it works!) - Clarify proc wrapping - Add kwargs argument to `mount_mutation`
| * Alert if `calls_gitaly` declaration missingcharlieablett2019-07-033-1/+46
| | | | | | | | | | | | | | - Move `calls_gitaly_check` to public - Add instrumentation for flagging missing CallsGitaly declarations - Wrap resolver proc in before-and-after Gitaly counts to get the net Gitaly call count for the resolver.
* | DRY up conditions for files require DB reviewToon Claes2019-07-041-1/+5
| | | | | | | | | | | | | | | | Stop using two separate lists for the conditions which files require a database review. Related discussion: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/30156#note_187732053
* | Merge branch '54117-transactional-rebase' into 'master'Douglas Barbosa Alexandre2019-07-044-5/+10
|\ \ | | | | | | | | | | | | | | | | | | Allow asynchronous rebase operations to be monitored Closes #54117 See merge request gitlab-org/gitlab-ce!29940
| * | Allow asynchronous rebase operations to be monitoredNick Thomas2019-07-043-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | This MR introduces tracking of the `rebase_jid` for merge requests. As with `merge_ongoing?`, `rebase_in_progress?` will now return true if a rebase is proceeding in sidekiq. After one release, we should remove the Gitaly-based lookup of rebases. It is much better to track this kind of thing via the database.
| * | Clarify documentation of Gitlab::SidekiqStatusNick Thomas2019-07-041-3/+3
| | | | | | | | | | | | | | | The "running" state is ambiguous. Clarify that it covers both enqueued and actually running jobs.
* | | Change 'Todo' to 'To Do'Christie Lenneville2019-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we label items to be done as "Todo." This is grammatically incorrect and (therefore) confusing—especially to our Spanish-speaking users for whom "todo" has a specific and unrelated meaning. We should use "To Do" and always use it as singular (not "To Dos"). Updates to wording in a few places per MR (ee) discussion Updating locale/gitlab.pot Updates to wording in a few places per MR (ee) discussion Updating locale/gitlab.pot
* | | Fix process start timeRyan Cobb2019-07-042-13/+6
| | | | | | | | | | | | | | | Previously we were recording process start time as seconds from boot. This makes it so we record as epoch time.
* | | Backports for EE's "Allow adding groups to CODEOWNERS file"Igor2019-07-041-56/+0
|/ / | | | | | | | | Some general code has been added/removed in EE version which needs to be backported in CE
* | Merge branch 'sh-fix-issue-63349' into 'master'Rémy Coutable2019-07-041-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Make Housekeeping button do a full garbage collection Closes #63349 See merge request gitlab-org/gitlab-ce!30289
| * | Make Housekeeping button do a full garbage collectionsh-fix-issue-63349Stan Hu2019-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the Housekeeping button and API would use the counter of last pushes to determine whether to do a full garbage collection, or whether to do one of the less comprehensive tasks: a full repack, incremental pack, or ref pack. This was confusing behavior, since a project owner might have to click the button dozens of times before a full GC would be initiated. This commit forces a full GC each time this is initiated. Note that the `ExclusiveLease` in `HousekeepingService` prevents users from clicking on the button more than once a day. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63349
* | | Cache Flipper feature flags in L1 and L2 cachessh-cache-flipper-checks-in-memoryStan Hu2019-07-031-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In https://gitlab.com/gitlab-com/gl-infra/production/issues/928, we saw a significant amount of network traffic and CPU usage due to Redis checking feature flags via Flipper. Since these flags are hit with every request, the overhead becomes significant. To alleviate Redis overhead, we now cache the data in the following way: * L1: A thread-local memory store for 1 minute * L2: Redis for 1 hour
* | | Merge branch 'add-commit-signatures-feature-flag' into 'master'Felipe Artur2019-07-031-1/+6
|\ \ \ | | | | | | | | | | | | | | | | Add GetCommitSignatures feature flag See merge request gitlab-org/gitlab-ce!29288
| * | | Add GetCommitSignatures feature flagadd-commit-signatures-feature-flagFelipe Artur2019-06-281-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds feature flag for GetCommitSignatures which got ported to go. More info: https://gitlab.com/gitlab-org/gitaly/merge_requests/1283
* | | | Cache PerformanceBar.allowed_user_ids list locally and in RedisRémy Coutable2019-07-031-8/+20
| | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Add Grafana to Admin > Monitoring menu when enabledManeschi Romain2019-07-031-0/+2
| | | |
* | | | Only save Peek session in Redis when Peek is enabledRémy Coutable2019-07-031-0/+12
| | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Merge branch 'asciidoc-syntax-highlighting' into 'master'Douwe Maan2019-07-034-2/+19
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Enable AsciiDoc syntax highlighting (using Rouge) Closes #32635 See merge request gitlab-org/gitlab-ce!29835
| * | | Enable AsciiDoc syntax highlighting (using Rouge)Guillaume Grossetie2019-07-024-2/+19
| | | |
* | | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceMarin Jankovski2019-07-0344-925/+543
|\ \ \ \
| * \ \ \ Merge branch '44990-remove-old-i' into 'master'Nick Thomas2019-07-032-111/+0
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove old migration specs that violate FactoriesInMigrationSpecs See merge request gitlab-org/gitlab-ce!30280
| | * | | | Remove old migrations and specs44990-remove-old-iHeinrich Lee Yu2019-07-032-111/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes old migrations that violate the FactoriesinMigrationSpecs cop
| * | | | | Merge branch 'sh-improve-redis-peek' into 'master'Sean McGivern2019-07-031-0/+82
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Redis call details in Peek performance bar See merge request gitlab-org/gitlab-ce!30191
| | * | | | | Add Redis call details in Peek performance barsh-improve-redis-peekStan Hu2019-07-021-0/+82
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Redis timings appear to be increasing in production, this change makes it easier to see what exactly which queries are being called and where. This is done by prepending modules in peek-redis to store the call details. This commit redact values for all SET commands (e.g. HMSET, GETSET, etc.).
| * | | | | Show upcoming status for releasesJason Goodman2019-07-033-0/+5
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
| * | | | Add URL comments to Auto DevOps templateDylan Griffith2019-07-031-10/+10
| |/ / / | | | | | | | | | | | | | | | | This will make it more obvious to anyone looking to customize these files what the source code actually is.
| * | | LC_ALL=C.UTF-8Pat Myron2019-07-021-0/+1
| | | |
| * | | Merge branch 'sh-cache-flipper-names-memory-cache' into 'master'Rémy Coutable2019-07-021-1/+3
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Cache Flipper persisted names directly to local memory storage See merge request gitlab-org/gitlab-ce!30265
| | * | | Cache Flipper persisted names directly to local memory storagesh-cache-flipper-names-memory-cacheStan Hu2019-07-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that application settings are no longer dominating network traffic, we see that the Feature#persisted_names is using a significant amount of CPU and network bandwidth for Redis. Move this cache into the thread-local memory storage to reduce Redis overhead.
| * | | | Prefer offline install for yarnLukas Eipert2019-07-021-1/+1
| |/ / /
| * | | Merge branch '59177-squash-old-migrations' into 'master'harish-and-cindy-ssl-check-rake-taskharish-and-cindy-ldap-sync-rake-tasksDmitriy Zaporozhets2019-07-027-771/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squash old migrations Closes #59177 See merge request gitlab-org/gitlab-ce!30226
| | * | | Remove migrations from setup_postgresqlNick Thomas2019-07-021-14/+0
| | | | |
| | * | | Remove background migrations for old schemasNick Thomas2019-07-026-757/+0
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the assumption that a background migration whose specs need a schema older than 2018 is obsoleted by this migration squash, we can remove both specs and code for those that fail to run in CI as a result of the schema at that date no longer existing. This is true for all but the MigrateStageStatus background migration, which is also used from the MigrateBuildStage background migration.
| * | | Merge branch 'sh-add-thread-memory-cache' into 'master'Rémy Coutable2019-07-021-0/+15
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a memory cache local to the thread to reduce Redis load Closes #63977 See merge request gitlab-org/gitlab-ce!30233
| | * | | Add a memory cache local to the thread to reduce Redis loadStan Hu2019-07-011-0/+15
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loading `ApplicationSetting` from Redis was responsible for at least 50% of the CPU load of the Redis cluster on GitLab.com. Since these values generally don't change very much, we can load this from the database and cache it in memory, skipping Redis altogther. We use `ActiveSupport::Cache::MemoryStore` as a drop-in replacement for `RedisCacheStore` even though we probably don't need synchronized access within `Thread.current`. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63977
| * | | Merge branch '58808-fix-image-diff-on-text' into 'master'James Lopez2019-07-021-1/+1
| |\ \ \ | | |/ / | |/| | | | | | | | | | Don't show image diff note on text file See merge request gitlab-org/gitlab-ce!30221
| | * | Don't show image diff note on text file58808-fix-image-diff-on-textPatrick Bajao2019-07-011-1/+1
| | | |
| * | | Merge branch 'docs-fix-typo-in-docs' into 'master'Stan Hu2019-07-011-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Fix a typo in lib/gitlab/search/found_blob.rb See merge request gitlab-org/gitlab-ce!30219
| | * | | Fix a typo in lib/gitlab/search/found_blob.rbdocs-fix-typo-in-docsRémy Coutable2019-07-011-1/+1
| | |/ / | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | Merge branch '9491-graphql-view-design-board-at-version-ce' into 'master'Nick Thomas2019-07-011-0/+32
| |\ \ \ | | | | | | | | | | | | | | | | | | | | CE backport for "Show design boards at previous versions in GraphQL" See merge request gitlab-org/gitlab-ce!30151
| | * | | CE backport for changes in EE MR 142929491-graphql-view-design-board-at-version-ceLuke Duncalfe2019-06-281-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | EE MR https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14292 https://gitlab.com/gitlab-org/gitlab-ee/issues/9491
| * | | | Run do_master_restart callback on server startJan Provaznik2019-07-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to call master_restart callback on start too - this callback is used for cleaning up prometheus files. It has been added to Omnibus already: https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/3350 So make sure that Unicorn example configs are up-to-date and that the same callback is called for Puma too.
| * | | | Merge branch 'sh-fix-issue-63910' into 'master'Sean McGivern2019-07-011-3/+3
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | Fix attachments using the wrong URLs in e-mails Closes #63910 See merge request gitlab-org/gitlab-ce!30197