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
2016-02-19Merge branch 'rs-sentry-release-tracking' into 'master' Douwe Maan
Add release tracking for Sentry See merge request !2863
2016-02-09Change default smpt port to 465 (default smtps port)Artem V. Navrotskiy
2016-02-01Instrument various Rugged constantsYorick Peterse
2016-02-01Instrument all Gitlab::Git instance methodsYorick Peterse
2016-01-28Revert "Revert "Remove the `:coffee` and `:coffeescript` Haml filters""Robert Speicher
This reverts commit b0145d765b94d2cef86b10b6dd22895779cfef33.
2016-01-26Update ExternalIssue regex for JIRA integrationBlake Hitchcock
The pattern in the `::reference_pattern` class method in the ExternalIssue model does not match all valid forms of JIRA project names. I have updated the regex to match JIRA project names with numbers and underscores. More information on valid JIRA project names can be found here: https://confluence.atlassian.com/jira/changing-the-project-key-format-192534.html * The first character must be a letter, * All letters used in the project key must be from the Modern Roman Alphabet and upper case, and * Only letters, numbers or the underscore character can be used.
2016-01-25monkey patch for mysql 5.7Valery Sizov
2016-01-21Instrument Gitlab::Git::RepositoryYorick Peterse
This adds instrumentation for the instance methods of Gitlab::Git::Repository.
2016-01-20Use sentry in env production onlyJeroen Nijhof
2016-01-20Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Jeroen Nijhof
sentry-integration Conflicts: db/schema.rb
2016-01-18Add sentry integrationJeroen Nijhof
2016-01-18Ensure Gravatar host looks like an actual hostRémy Coutable
2016-01-18Added metrics instrumentation for all findersYorick Peterse
2016-01-13Merge branch 'fix/reference_filter_uri_decode_error_for_master' into 'master' Douwe Maan
Fix #9963 reference_filter "Encoding::CompatibilityError" bug with some complex URL; https://github.com/gitlabhq/gitlabhq/pull/9964 @DouweM See merge request !2383
2016-01-13Revert "Remove the `:coffee` and `:coffeescript` Haml filters"Robert Speicher
This reverts commit ae7de2f8510d6d4b69120f168122e26d69dda256.
2016-01-12Use CGI.escape instead of URI.escape, because URI is obsoleted.Jason Lee
ref: https://github.com/ruby/ruby/commit/238b979f1789f95262a267d8df6239806f2859cc
2016-01-12Remove the `:coffee` and `:coffeescript` Haml filtersRobert Speicher
See https://git.io/vztMu and http://stackoverflow.com/a/17571242/223897
2016-01-11Optimize LDAP and add a search timeoutDrew Blessing
2016-01-08Add two custom Date/Time conversion formatsRobert Speicher
2016-01-04Track total query/view timings in transactionsYorick Peterse
2015-12-31Removed tracking of hostnames for metricsYorick Peterse
This isn't hugely useful and mostly wastes InfluxDB space. We can re-add this whenever needed (but only once we really need it).
2015-12-31Removed tracking of raw SQL queriesYorick Peterse
This particular setup had 3 problems: 1. Storing SQL queries as tags is very inefficient as InfluxDB ends up indexing every query (and they can get pretty large). Storing these as values instead means we can't always display the SQL as easily. 2. We already instrument ActiveRecord query methods, thus we already have timing information about database queries. 3. SQL obfuscation is difficult to get right and I'd rather not expose sensitive data by accident.
2015-12-30Added additional config environmental variables to help Debian packagingGabriel Mazetto
* GITLAB_EMAIL_FROM * GITLAB_EMAIL_DISPLAY_NAME * GITLAB_EMAIL_REPLY_TO
2015-12-28reCAPTCHA is configurable through Admin Settings, no reload needed.Gabriel Mazetto
2015-12-28Move InfluxDB settings to ApplicationSettingYorick Peterse
2015-12-28Merge branch 'influxdb' into 'master' Dmitriy Zaporozhets
Storing of application metrics in InfluxDB This adds support for tracking metrics in InfluxDB, which in turn can be visualized using Grafana. For more information see #2936. See merge request !2042
2015-12-28Merge branch 'environment-variables-in-the-app' into 'master' Dmitriy Zaporozhets
Environment variables in the app Fixes #3717 and #3519 ## Why environment variables? We need environmental variables, they are an expected way to configure apps https://medium.com/@kelseyhightower/12-fractured-apps-1080c73d481c#.ntrdiyu4c This causes many tools and to tutorials to make it easy to set environmental variables and harder to supply a configuration file. So even though we agree they are not ideal https://support.cloud.engineyard.com/hc/en-us/articles/205407508-Environment-Variables-and-Why-You-Shouldn-t-Use-Them the market has spoken. ## Why for GitLab the application and not for the Omnibus packages? Environmental variables are also needed by people that do not run our Omnibus packages, for example natively bundled apps (Debian apt-get) and idiomatic Docker packages (Mesos, Kubernetes, etc.). Of course it should work great with Omnibus packages too so any advise is welcome in that regard. There is an MR https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/575/diffs to be able to set any variable in gitlab.rb via environmental variables. I think both that and this MR should be merged to solve the configuration problem for both Omnibus and non-Omnibus installations. When both are merged the documentation should be crosslinked. ## Why uppercase? Need to be all cap according to Google Shell guideline: "Constants and Environment Variable Names => All caps, separated with underscores, declared at the top of the file." https://google.github.io/styleguide/shell.xml#Constants_and_Environment_Variable_Names Or as explained on http://stackoverflow.com/a/673940/613240 Keeping to this convention, you can rest assured that you don't need to know every environment variable used by UNIX tools or shells in order to avoid overwriting them. If it's your variable, lowercase it. If you export it, uppercase it. /cc @JobV @DouweM @marin @jacobvosmaer @ayufan @pravi See merge request !2215
2015-12-28Add documentation for using reCAPTCHAStan Hu
2015-12-27Add support for Google reCAPTCHA in user registration to prevent spammersStan Hu
2015-12-27Use environment variables to configure GitLab.Sytse Sijbrandij
2015-12-22Hotfix for sidekiq-cron being loaded from Settingslogic with defaultsGabriel Mazetto
2015-12-22Merge branch 'feature/sidekiq-cron-config' into 'master' Dmitriy Zaporozhets
Sidekiq-cron configuration moved to gitlab.yml When `sidekiq-cron` was introduced, jobs configuration where placed in `schedule.yml` file. As discussed in #3928, this is not desirable. We moved it to `gitlab.yml`, exposing only the "cron" part of the configuration. See merge request !2087
2015-12-21Merge branch 'add_email_unlock' into 'master' Robert Speicher
Allow account unlock via email We see a lot of users get confused about what it means when your account gets locked. Many try to reset their password and are still faced with a lockout. With this change, users receive an email that allows them to unlock their account immediately. The previous behavior where the account is auto-unlocked after a time also still works. See merge request !2049
2015-12-21Merge branch 'tduehr/gitlab-ce-cas-support'Douwe Maan
2015-12-18Backport JIRA serviceDrew Blessing
2015-12-17Instrument all ActiveRecord model methodsYorick Peterse
This works by searching the raw source code for any references to commonly used ActiveRecord methods. While not bulletproof it saves us from having to list hundreds of methods by hand. It also ensures that (most) newly added methods are instrumented automatically. This _only_ instruments models defined in app/models, should a model reside somewhere else (e.g. somewhere in lib/) it _won't_ be instrumented.
2015-12-17Instrument Gitlab::Shel and Gitlab::GitYorick Peterse
2015-12-17Use custom code for instrumenting method callsYorick Peterse
The use of ActiveSupport would slow down instrumented method calls by about 180x due to: 1. ActiveSupport itself not being the fastest thing on the planet 2. caller_locations() having quite some overhead The use of caller_locations() has been removed because it's not _that_ useful since we already know the full namespace of receivers and the names of the called methods. The use of ActiveSupport has been replaced with some custom code that's generated using eval() (which can be quite a bit faster than using define_method). This new setup results in instrumented methods only being about 35-40x slower (compared to non instrumented methods).
2015-12-17Storing of application metrics in InfluxDBYorick Peterse
This adds the ability to write application metrics (e.g. SQL timings) to InfluxDB. These metrics can in turn be visualized using Grafana, or really anything else that can read from InfluxDB. These metrics can be used to track application performance over time, between different Ruby versions, different GitLab versions, etc. == Transaction Metrics Currently the following is tracked on a per transaction basis (a transaction is a Rails request or a single Sidekiq job): * Timings per query along with the raw (obfuscated) SQL and information about what file the query originated from. * Timings per view along with the path of the view and information about what file triggered the rendering process. * The duration of a request itself along with the controller/worker class and method name. * The duration of any instrumented method calls (more below). == Sampled Metrics Certain metrics can't be directly associated with a transaction. For example, a process' total memory usage is unrelated to any running transactions. While a transaction can result in the memory usage going up there's no accurate way to determine what transaction is to blame, this becomes especially problematic in multi-threaded environments. To solve this problem there's a separate thread that takes samples at a fixed interval. This thread (using the class Gitlab::Metrics::Sampler) currently tracks the following: * The process' total memory usage. * The number of file descriptors opened by the process. * The amount of Ruby objects (using ObjectSpace.count_objects). * GC statistics such as timings, heap slots, etc. The default/current interval is 15 seconds, any smaller interval might put too much pressure on InfluxDB (especially when running dozens of processes). == Method Instrumentation While currently not yet used methods can be instrumented to track how long they take to run. Unlike the likes of New Relic this doesn't require modifying the source code (e.g. including modules), it all happens from the outside. For example, to track `User.by_login` we'd add the following code somewhere in an initializer: Gitlab::Metrics::Instrumentation. instrument_method(User, :by_login) to instead instrument an instance method: Gitlab::Metrics::Instrumentation. instrument_instance_method(User, :save) Instrumentation for either all public model methods or a few crucial ones will be added in the near future, I simply haven't gotten to doing so just yet. == Configuration By default metrics are disabled. This means users don't have to bother setting anything up if they don't want to. Metrics can be enabled by editing one's gitlab.yml configuration file (see config/gitlab.yml.example for example settings). == Writing Data To InfluxDB Because InfluxDB is still a fairly young product I expect the worse. Data loss, unexpected reboots, the database not responding, you name it. Because of this data is _not_ written to InfluxDB directly, instead it's queued and processed by Sidekiq. This ensures that users won't notice anything when InfluxDB is giving trouble. The metrics worker can be started in a standalone manner as following: bundle exec sidekiq -q metrics The corresponding class is called MetricsWorker.
2015-12-15add CAS authentication supporttduehr
2015-12-15Fixed Rubocop offensesGabriel Mazetto
2015-12-15Allow account unlock via emailDrew Blessing
2015-12-14Sidekiq-cron configuration moved to gitlab.ymlGabriel Mazetto
2015-12-11Use new runners registration token to register CI runnersGrzegorz Bizon
2015-12-10Upgraded Sidekiq to 4.xGabriel Mazetto
2015-12-10Merge branch 'master' into tmp-reference-pipeline-and-cachingDouwe Maan
# Conflicts: # spec/lib/gitlab/markdown/autolink_filter_spec.rb # spec/lib/gitlab/markdown/commit_range_reference_filter_spec.rb # spec/lib/gitlab/markdown/commit_reference_filter_spec.rb # spec/lib/gitlab/markdown/cross_project_reference_spec.rb # spec/lib/gitlab/markdown/emoji_filter_spec.rb # spec/lib/gitlab/markdown/external_issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/external_link_filter_spec.rb # spec/lib/gitlab/markdown/issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/label_reference_filter_spec.rb # spec/lib/gitlab/markdown/merge_request_reference_filter_spec.rb # spec/lib/gitlab/markdown/redactor_filter_spec.rb # spec/lib/gitlab/markdown/reference_gatherer_filter_spec.rb # spec/lib/gitlab/markdown/relative_link_filter_spec.rb # spec/lib/gitlab/markdown/sanitization_filter_spec.rb # spec/lib/gitlab/markdown/snippet_reference_filter_spec.rb # spec/lib/gitlab/markdown/syntax_highlight_filter_spec.rb # spec/lib/gitlab/markdown/table_of_contents_filter_spec.rb # spec/lib/gitlab/markdown/task_list_filter_spec.rb # spec/lib/gitlab/markdown/upload_link_filter_spec.rb # spec/lib/gitlab/markdown/user_reference_filter_spec.rb
2015-12-10Use devise paranoid mode and ensure the same message is returned every timeDrew Blessing
Skipped CI because it has already passed. Had to rebase due to CHANGELOG.
2015-12-08Merge branch 'reference-pipeline-and-caching' into 'master' Robert Speicher
Implement different Markdown rendering pipelines and cache Markdown Builds on !1090. Related to !1014. Fixes #2054. See merge request !1602
2015-12-08Fix signin with OmniAuth providersDouwe Maan
2015-12-08Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan