Commit Graph

174 Commits

Author SHA1 Message Date
Sven Fuchs
75937e45ee Remove load_endpoints, too 2016-03-24 17:03:55 +01:00
Tyranja
2de73fd974 Merge branch 'master' of github.com:travis-ci/travis-api 2016-03-21 15:48:33 +01:00
Piotr Sarnacki
8a050a468c Use shared logs model to establish connection
That way we will use only one connection to the logs database
2016-03-17 13:07:25 +01:00
Piotr Sarnacki
f0dcf270bc Always convert pool size to integer 2016-03-17 11:59:34 +01:00
Piotr Sarnacki
6aaa25a099 Overwrite database pool size for logs database
Logs database config is set in travis keychain and is set to a
concurrency much higher than what we set in heroku config. I don't want
to change it globally, because it may need to be different for other
apps, so I'm changing it here just before we connect to the db.
2016-03-17 11:45:46 +01:00
Tyranja
00db637788 Merge branch 'sf-ar-te' 2016-01-27 15:56:11 +01:00
Sven Fuchs
67d1d09569 use travis-amqp 2016-01-26 16:46:24 +01:00
Konstantin Haase
bf1714c437 v3: add metrics 2016-01-22 14:26:30 +01:00
Sven Fuchs
7a5f477a0a require raven/integrations/rack 2016-01-12 13:52:01 +01:00
Sven Fuchs
9588f816b0 do not require all of rack/contrib, it now assumes a git repository 2016-01-08 14:31:49 +01:00
Konstantin Haase
c372b07344 only enable request throttling in production 2015-09-17 15:26:30 +02:00
Konstantin Haase
e478c621f2 no more inheritance 2015-09-17 15:13:33 +02:00
Konstantin Haase
9303a24595 base throttling on access token if the call is authenticated, rather than on IP address, improve throttling rules 2015-09-17 14:57:50 +02:00
Konstantin Haase
b59fa6cd94 add general throttling 2015-09-15 19:30:13 +02:00
Konstantin Haase
af977ca677 use in-memory store for local development 2015-09-15 19:22:04 +02:00
Konstantin Haase
3e0423aae3 add auto-throtteling to /auth/github 2015-09-15 19:17:01 +02:00
Konstantin Haase
fb4bedbb6b move ip blacklist to redis 2015-09-15 18:29:54 +02:00
Piotr Sarnacki
bff7f76c33 v3: Implement fetching repository by slug 2015-05-21 12:29:04 +02:00
Konstantin Haase
b9adb793cd Travis.config.env => Travis.env 2015-05-12 12:26:29 +02:00
Konstantin Haase
3ade697ed3 set application_name on database connection 2015-05-12 12:18:49 +02:00
Konstantin Haase
887a797ae6 add support for setting session variables for postgres connections (as you can in ActiveRecord 4.x) 2015-05-12 11:55:46 +02:00
Konstantin Haase
9ec2ef7f56 allow switching profiler mode 2015-05-11 17:51:43 +02:00
Konstantin Haase
ea23fd3b7e add stackprof 2015-05-11 17:13:21 +02:00
carlad
8f6083117c add async method to send exception error to sentry
add ErrorHandling class, refactor spec

correct the raven config class

correct the raven test

add a fake method for getting an exception

require error_handling

add new TestError class to test exceptions

add correct error class to test

add rescue block to raven send

make method a class method and add a test Travis.config.dns

add error the repos to test error

remove carla method in repos

add a fake error in repos

delete carla method
2015-02-13 16:16:45 +01:00
Konstantin Haase
df64ee29c8 Merge branch 'master' into rkh-v3
Conflicts:
	Gemfile
	Gemfile.lock
	lib/travis/api/app.rb
2015-01-21 16:52:21 +01:00
Konstantin Haase
c4806450aa get v3 to a working and tested state 2015-01-21 16:38:25 +01:00
Konstantin Haase
016afceeff only run Skylight for 20% of the dynos (rounding up if there are less than five) 2015-01-19 14:00:00 +01:00
Konstantin Haase
5c6fe06dfd Revert "Revert "instrument services""
This reverts commit 6681d160c1.
2015-01-14 19:41:47 +01:00
Konstantin Haase
6681d160c1 Revert "instrument services"
This reverts commit 327da14def.
2015-01-14 17:39:59 +01:00
Konstantin Haase
327da14def instrument services 2015-01-14 17:22:10 +01:00
Konstantin Haase
7d5d6b578c instrument access token 2015-01-14 17:00:16 +01:00
Konstantin Haase
81b0019f14 move skylight up 2015-01-14 16:52:56 +01:00
Konstantin Haase
784ca8479f fix require 2015-01-14 16:18:24 +01:00
Konstantin Haase
decf338a38 automated middleware instrumentation 2015-01-14 16:15:03 +01:00
Konstantin Haase
690c598205 remove obsolete file 2015-01-14 13:43:55 +01:00
Konstantin Haase
ea4a1c5bc4 use skylight without their sinatra code 2015-01-14 13:41:59 +01:00
Konstantin Haase
396a0f756c add conditional skylight tracking 2015-01-14 12:33:23 +01:00
Konstantin Haase
a65792ee49 start working on API v3 2015-01-13 15:22:20 +01:00
Konstantin Haase
14623ed088 Revert "Revert "track and enforce user-agent""
This reverts commit 2227d0042f.
2014-10-28 11:10:25 +01:00
Hiro Asari
2227d0042f Revert "track and enforce user-agent" 2014-10-27 18:51:32 -04:00
Konstantin Haase
07fff5a7be track and enforce user-agent 2014-10-27 19:21:23 +01:00
Sven Fuchs
48664d6263 use Travis::Metrics.setup 2014-10-12 15:15:26 +02:00
Sven Fuchs
4a0bdaafe6 make touching /tmp/app-initialized depend on heroku env var 2014-10-07 16:47:10 +02:00
Sven Fuchs
be719b1253 use http_x_script_name header if given 2014-10-07 16:47:10 +02:00
Sven Fuchs
bda2797f0e bump core and support. Travis::Metrics.setup 2014-10-07 16:47:09 +02:00
Sven Fuchs
1080bee23b do not include Raven::Rack unless configured 2014-10-07 16:46:30 +02:00
Sven Fuchs
7eebcff341 check for sentry.dsn 2014-10-07 16:46:30 +02:00
Piotr Sarnacki
d7c6edec18 Bring back ssh key endpoint, but make it configurable 2014-07-29 03:02:54 +02:00
Piotr Sarnacki
cbb195eb79 Revert "Revert "Serve CORS from app""
This reverts commit 8694cb4b92.
2014-06-20 12:57:36 +02:00
Hiro Asari
4410d3f999 Merge pull request #120 from travis-ci/ps-env-vars-in-settings
Add settings endpoint for env_vars
2014-06-18 11:45:02 -04:00