Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 101 lines (56 sloc) 2.399 kb
732fe00 @svenfuchs extract travis-core from travis-ci
svenfuchs authored
1 # travis-core
6560250 @GeekOnCoffee Adding Testing Instructions to README
GeekOnCoffee authored
2
3 ## Testing
54b1881 @GeekOnCoffee Turning into instructions
GeekOnCoffee authored
4 ### Prerequisites
5 * PostgreSQL
6 * Redis
8cabf8e @svenfuchs add a few notes about the meaning of metriks we publish
svenfuchs authored
7
54b1881 @GeekOnCoffee Turning into instructions
GeekOnCoffee authored
8 ### Initial Setup
8cabf8e @svenfuchs add a few notes about the meaning of metriks we publish
svenfuchs authored
9 ```
54b1881 @GeekOnCoffee Turning into instructions
GeekOnCoffee authored
10 $ git clone git://github.com/travis-ci/travis-core.git
11 $ cd travis-core
12 $ bundle install
8b82202 @GeekOnCoffee Cleanup based on Josh's comments.
GeekOnCoffee authored
13 $ bundle exec rake db:setup
14 $ bundle exec rake db:test:prepare
54b1881 @GeekOnCoffee Turning into instructions
GeekOnCoffee authored
15
16 ```
17
18 ### Running the tests
19 ```
20 $ bundle exec rake
8cabf8e @svenfuchs add a few notes about the meaning of metriks we publish
svenfuchs authored
21 ```
22
23 ## Metriks from travis-hub and travis-core
24
25 * `v1.travis.hub.handler.sync.handle`
26
27 Responds to a `sync` request (which was issued by `travis-ci` on user/sign-in)
28
29 * `v1.travis.github.sync.organizations.run`
30
31 Synchronizes all orgs for a given user.
32
33 * `v1.travis.github.sync.repositories.run`
34
35 Synchronizes all repos for a given user.
36
37 * `v1.travis.github.repositories.fetch`
38
39 Fetches all repositories for a given user from the Github API.
40
41 * `v1.travis.hub.handler.request.pull\_request.authenticate`
42
43 Authenticates a `pull\_request` event from Github.
44
45 * `v1.travis.hub.handler.request.pull\_request.handle`
46
47 Handles a `pull\_request` event from Github (which had been received and queued by `travis-listener`)
48
49 * `v1.travis.hub.handler.request.push.authenticate`
50
51 Authenticates a `push` event from Github.
52
53 * `v1.travis.hub.handler.request.push.handle`
54
55 Handles a `push` event from Github (which had been received and queued by `travis-listener`)
56
57 * `v1.request.factory.request`
58
59 Creates a `Request` instance (domain model that is created in response to a Github `push` or `pull\_request` event)
60
61 * `v1.travis.github.config.fetch`
62
63 Fetches the `.travis.yml` file from Github.
64
ae99f35 @svenfuchs document queueing metric
svenfuchs authored
65 * `v1.job.queueing.all.run`
66
67 Enqueues queueable jobs based on a per-owner rate limit.
68
833e8d2 @svenfuchs add queue-specific metrics and update the readme
svenfuchs authored
69 * `v1.job.queue.wait\_time`
70
71 Time jobs wait in the queue before being started (i.e. job.created_at to job.started_at)
72
73 * `v1.job.queue.wait\_time.[queue\_name]`
74
75 (same, but per queue)
76
77 * `v1.job.queue.duration`
78
79 Time jobs take for being run (i.e. job.started_at to job.finished_at)
80
81 * `v1.job.duration.[queue\_name]`
82
83 (same, but per queue)
84
8cabf8e @svenfuchs add a few notes about the meaning of metriks we publish
svenfuchs authored
85 * `v1.travis.event.handler.\*.notify`
86
87 Responds to `build:finished` events and creates an instance of `Task::Archive`.
88
89 * `v1.travis.hub.handler.job.[log|update]`
90
91 Responds to events on the workers (i.e. reporting about the build process)
92
93 * `v1.travis.hub.handler.worker.handle`
94
95 Responds to `worker:\*` events on workers (e.g. worker:added, worker:removed etc)
96
97 * `v1.travis.task.\*.run`
98
99 Performs tasks sending out emails, pusher, irc notifications etc.
100
Something went wrong with that request. Please try again.