Commit Graph

422 Commits

Author SHA1 Message Date
Konstantin Haase
48cf45c5f6 disable new relic 2013-02-13 17:55:11 +01:00
Konstantin Haase
4f05de7214 update core 2013-02-13 17:35:26 +01:00
Piotr Sarnacki
afe7de8e72 Depend on newrelic_rpm in ~> 3.5.5.0 versions 2013-02-13 13:20:06 +01:00
Piotr Sarnacki
a148575fe6 Add newrelic_rpm to Gemfile to hopefully fix bundler error when running tests 2013-02-13 13:07:55 +01:00
Piotr Sarnacki
9f1f1fecda Bump travis-core 2013-02-13 13:07:55 +01:00
Josh Kalderimis
51c6e7d392 Revert "remove hubble, and in the process also update sentry"
revert for now as travis-core uses 'rescue' which uses travis-support which uses hubble

several places where this could be fixed first, but step one is to get all apps using sentry

This reverts commit 0a2d66be93.
2013-02-12 00:08:37 -08:00
Josh Kalderimis
0a2d66be93 remove hubble, and in the process also update sentry 2013-02-11 23:05:54 -08:00
Piotr Sarnacki
d633b84eea Bump travis-core 2013-02-11 20:59:55 +01:00
Sven Fuchs
6daf8f33b0 Merge branch 'master' of github.com:travis-ci/travis-api
Conflicts:
	Gemfile.lock
2013-02-10 22:44:16 +01:00
Sven Fuchs
be52ae9b1d use travis-core/master 2013-02-10 22:43:02 +01:00
Sven Fuchs
7e005aad1b use travis-core/sf-log-models 2013-02-10 21:30:50 +01:00
Piotr Sarnacki
bfdb5f0294 Bump travis-core 2013-02-08 23:58:06 +01:00
Sven Fuchs
0aa2d6566c bump travis-core 2013-02-07 22:35:35 +01:00
Piotr Sarnacki
903b9799f5 Bump travis-core 2013-02-07 15:21:39 +01:00
Piotr Sarnacki
273cd6c2e3 Bump travis-core 2013-02-07 01:57:31 +01:00
Piotr Sarnacki
0eadcfedbd Use redis for sidekiq from config also on staging 2013-02-06 14:20:03 +01:00
Piotr Sarnacki
8708849646 Bump travis-core 2013-02-05 17:15:06 +01:00
Piotr Sarnacki
06e4d19184 Bump travis-core 2013-02-05 16:49:26 +01:00
Piotr Sarnacki
2baa5c9ec3 Use travis-core from master 2013-02-04 13:49:12 +01:00
Piotr Sarnacki
5695eabd95 Update travis-core 2013-02-03 19:03:55 +01:00
Piotr Sarnacki
01bb1c55c2 Use ps-db-encryption branch 2013-02-03 17:38:24 +01:00
Piotr Sarnacki
06dda8f802 Bump travis-core 2013-02-01 02:44:53 +01:00
Konstantin Haase
7b3c1b6215 update core, support and rack-ssl 2013-01-30 12:57:28 +01:00
Sven Fuchs
ac08027149 bump travis-core 2013-01-30 11:24:51 +01:00
Sven Fuchs
de692185c6 bump travis-core 2013-01-30 10:06:20 +01:00
Sven Fuchs
b8dfb1cd00 auth PUT to /artifacts/:id 2013-01-30 08:50:27 +01:00
Piotr Sarnacki
260c46181d Add hack to allow handling redirect to logs on the client properly.
This hack is temporary and should be removed when we find better
solution.

TL;DR: we can't handle redirects to S3 using CORS, so in case we want to
get logs from S3 without additional requests to API, we need to return
status that will not be automatically redirected (in this case 204 seems
like the best answer).

Longer rationale:

Old logs are hosted on S3 now and in case log is not available in the
database, we would like to redirect to the archived log. Although S3
support CORS, our use case breaks on some browsers:

  * when request is triggered to /jobs/:id/log and log is archived, api
    returns 302 redirect, Location header points to the log on S3
  * browser transparently redirects to given url, but it sets Origin to
    null, for security reasons
  * "Origin: null" is ok, because we allow every origin by setting
    AllowedOrigin to "*"
  * S3 returns "Access-Control-Allow-Origin: null" header, which breaks
    some browsers (I confirmed it for webkit based browsers)

In order to fix this, S3 would need to return * in
Access-Control-Allow-Origin header or we would need to tell the browser
to not follow redirect. Both solutions are not achiveable.

Another option would be to return log information in job payload - we
could send log_url field which should be either log url on amazon or
null, but in such case we would need to query artifacts table in each
job request. This is something that should be avoided as archived logs
are not frequently requested - slowing down every request to get info
for it would be a waste.
2013-01-29 03:51:22 +01:00
Piotr Sarnacki
489a33cbf6 Try 307 redirect on /logs.txt 2013-01-28 19:05:07 +01:00
Konstantin Haase
62b876d2e1 keep query string when redirecting in rewrite middleware 2013-01-28 15:47:28 +01:00
Konstantin Haase
18b9739691 Merge branch 'master' of github.com:travis-ci/travis-api 2013-01-28 15:44:04 +01:00
Piotr Sarnacki
a565522f41 Redirect to full amazon url
Amazon can't work properly with SSL and CNAME for subdomains. For now we
can use full amazon url.
2013-01-28 03:43:28 +01:00
Piotr Sarnacki
31371686c9 Redirect to archive logs 2013-01-28 03:04:36 +01:00
Piotr Sarnacki
edc9749bce Bump travis-core 2013-01-28 00:54:32 +01:00
Piotr Sarnacki
616b8df27c Use travis-core from master 2013-01-27 21:42:00 +01:00
Sven Fuchs
7b4712c32c fix after rebase 2013-01-26 20:54:58 +01:00
Sven Fuchs
b81644acba comment out put to /artifacts/:id for now 2013-01-26 20:44:04 +01:00
Sven Fuchs
4ea95494de allow put to /artifacts/:id 2013-01-26 20:44:04 +01:00
Sven Fuchs
598a586ed4 don't start metrics logger etc unless in production 2013-01-26 20:43:54 +01:00
Sven Fuchs
d441336573 expose logs on /job/:id/log.txt 2013-01-26 20:43:54 +01:00
Piotr Sarnacki
f2d768080f Return last builds on each branch for /builds?branches=true
This is a hack to fix travis-ci/travis-web#123 easier. A proper solution
would be to refactor how /branches work.
2013-01-26 01:12:47 +01:00
Piotr Sarnacki
46eefaf26d Fix syntax error 2013-01-26 00:02:15 +01:00
Piotr Sarnacki
c6e3c29a57 Load the data for integration tests upfront
We can do it, because we use :transaction strategy with DatabaseCleaner,
which starts transaction before each test and rollbacks after it. That
way data before each test is consistent.

The big advantage of such approach is that tests are fast now - we need
to only load Scenario data once.

One of the drawbacks, on the other hand, is that we need to always load
this data, even if no integration tests need running.

We can try to be smart about it and check if any integration tests are
loaded.
2013-01-26 00:00:42 +01:00
Konstantin Haase
939b35cbff fix syntrax 2013-01-25 22:30:47 +01:00
Konstantin Haase
85e8f27047 hotfix for strange bug 2013-01-25 22:13:33 +01:00
Konstantin Haase
bde974e182 Revert "disable newrelic"
This reverts commit 48cc0d366a.
2013-01-25 22:11:53 +01:00
Konstantin Haase
48cc0d366a disable newrelic 2013-01-25 11:40:41 +01:00
Konstantin Haase
01c585e189 I have no idea 2013-01-25 11:29:05 +01:00
Konstantin Haase
7195d48e7b downgrade sinatra 2013-01-24 22:15:55 +01:00
Piotr Sarnacki
36c40da55d Fix workers tests 2013-01-24 14:37:05 +01:00
Piotr Sarnacki
9ced671da5 Bump travis-core 2013-01-24 02:03:09 +01:00