~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
# identify the component configuration used to define the site:
site-definition site.zcml

# number of bytecode instructions to execute between checks for
# interruptions (SIGINTR, thread switches):
interrupt-check-interval 200

<server>
  type HTTP
  address 8085
</server>

# For debugging purposes, you can use this publisher instead/as well
# (obviously if it's as well, use a different port number). If there's
# an exception, Zope will drop into pdb at the point of the exception.
<server>
  type PostmortemDebuggingHTTP
  address 8089
</server>

<server>
  type DebugLayerHTTP
  address 8086
</server>

<server>
  type InternalHTTP
  address 8087
</server>

# non-persistent in-memory storage
<zodb>
  <mappingstorage/>
</zodb>

<accesslog>
  # This sets up logging to both a file (access.log) and to standard
  # output (STDOUT).  The "path" setting can be a relative or absolute
  # filesystem path or the tokens STDOUT or STDERR.

  <logfile>
    path launchpad-access.log
  </logfile>

  <logfile>
    path STDOUT
  </logfile>
</accesslog>

<eventlog>
  # This sets up logging to both a file (z3.log) and to standard
  # output (STDOUT).  The "path" setting can be a relative or absolute
  # filesystem path or the tokens STDOUT or STDERR.

  <logfile>
    path launchpad.log
  </logfile>

  <logfile>
    path STDOUT
  </logfile>
</eventlog>

# Launchpad configuration. Note that we can specify multiple configurations
# in here. Currently, we have configurations named 'testrunner' (used
# by the testrunner), and 'default' (used by everything else)
#
# The section that is used can be specified by setting the LPCONFIG
# environment variable
#
<canonical default>
    # DB settings must still match launchpad-sql-configure-normal.zcml
    dbname launchpad_dev
    #dbhost localhost

    # Display tracebacks on error pages.
    # IMPORTANT: Set to false on production servers!
    show_tracebacks false

    # This is the email address used for the Errors-To: header on
    # all outgoing emails. At somepoint a bounce handler will be
    # installed here to detect failing email addresses and flag them
    # in the database.
    bounce_address bounces@canonical.com

    # PID files for various processes get created in this directory.
    # The format of filenames is %(lpconfig)s-%(service)s.pid, such as
    # default-librarian.pid
    pid_dir /tmp

    <launchpad>
        # PostgreSQL user the launchpad Zope3 instance connects as.
        dbuser launchpad

        # Root URL to a launchpad instance, used for generating URLs
        # inside of launchpad by urlparse.urljoin
        root_url http://localhost:8085/

        # Email address, to which all error reports are sent.
        # Messages should have distinct Subject: or Keywords: headers
        # so they can be filtered easily. Whenever code starts using this,
        # we probably need to setup a new Mailman topic in the
        # launchpad-error-reports mailing list or the error reports will be
        # lost.
        errors_address launchpad-error-reports@lists.canonical.com

        # Domain part of the bugs' email addresses. All email addresses in
        # this domain should get redirected to the MailIntoLaunchpad handler.
        bugs_domain bugs.launchpad.net

        # Maximum size of bug attachments in bytes. A value of 0 means
        # no limit.
        max_bug_attachment_size 2097152

        # This setting controls two related things:
        # 1. The maximum time a single SQL statement is given to execute in.
        # 2. The maximum time a web request is given to run in.
        # The time is given in milliseconds.
        #
        # If a statement takes longer than this to execute, then it will
        # fail. If a request is taking longer than this to run, then a
        # RequestExpired exception will be raised, and the transaction hosed,
        # before the next database query would be started.
        #
        # A value of 0 turns off the timeout.  If this value is
        # not set, Postgresql's default statement timeout is used, and requests
        # may run without constraint.
        db_statement_timeout 12000

        # The minimum notification level displayed to users. Set to 'info'
        # on production and 'debug' on development boxes.
        browser_notification_level debug
    </launchpad>

    <librarian>
        # Librarian configuration information for both client and server
        dbuser librarian
        upload_host localhost
        upload_port 58090
        download_host localhost
        download_port 58080
        # The base URL used to generate URLs to the Library contents.
        # Note that this might be on a different host or port to what is
        # specified above if access to the Library is via Apache redirects.
        download_url http://localhost:58080/
        # The buildds need to access Librarian files on a different URL
        # to the rest of the world due to network topology.
        # See lib/canonical/launchpad/doc/librarian.txt for a discussion
        # on why this is necessary
        buildd_download_url http://localhost:58000/
        <librarian_server>
            # Configuration used if we are running a librarian server.
            logfile -
            root /var/tmp/fatsam
            # If true, a Librarian server will be launched by the startup
            # script
            launch yes
            # Should Librarian twistd be run with --spew for debugging
            spew no
        </librarian_server>
    </librarian>

    <malone>
        # The From address for Malone email interface errors
        bugmail_error_from_address noreply@bugs.launchpad.net
    </malone>

    <rosetta>
        <poimport>
            dbuser poimport
        </poimport>
        <poattach>
            dbuser poattach
        </poattach>
    </rosetta>

    <cveupdater>
        dbuser cve
    </cveupdater>

    <tickettracker>
        dbuser tickettracker
    </tickettracker>

    <zopeless>
        # Configuration specific for code that is running in the Zopeless
        # environment. Hopefully this section will disappear when the
        # Zope and Zopeless environments grow closer.
        send_email no
        smtp_host localhost
        smtp_port 25
    </zopeless>

    <gpghandler>
        # host and port points to a reliable keyserver (aka ours
        # public one)
        host keyserver.ubuntu.com
        port 11371
    </gpghandler>

    <zeca>
        # Not needed for normal operation
        root /var/tmp/zeca
    </zeca>

    <statistician>
        dbuser statistician
    </statistician>

    <dyson>
        dbuser dyson
        cache_path /var/tmp/dyson
    </dyson>

    <gina>
        # Configuration used to run gina.
        dbuser gina

        # This is an example gina_target. See GinaUsageGuide for details.
        # Real world examples can be found in the staging and production
        # launchpad.conf files.
        #<gina_target hoary>
        #    distro ubuntu
        #    distrorelease hoary
        #    pocketrelease hoary
        #    root /home/debonzi/Warthogs/mirror
        #    keyrings /home/debonzi/Warthogs/keyring.ubuntu.com/keyrings
        #    architectures i386
        #    components main
        #</gina_target>
    </gina>

    <targetnamecacheupdater>
        # Configuration used to run the bugtask targetnamecache updater.
        dbuser targetnamecacheupdater
    </targetnamecacheupdater>

    <karmacacheupdater>
        # Configuration used to run the karmacache updater.
        dbuser karma
    </karmacacheupdater>

    <shipitexporter>
        # Configuration used to run the shipit exporter.
        dbuser shipit
    </shipitexporter>

    <trebuchet>
        dbuser trebuchet
        port 4280
        <trebuchet_server>
            # Configuration used if we are running a trebuchet server.
            # TODO: Does trebuchet actually need a root?
            # -- StuartBishop 20050706
            root /var/tmp/trebuchet
            # If true, a Trebuchet server will be launched by the startup
            # script
            launch yes
            # Should Trebuchet twistd be run with --spew for debugging
            spew no
            # Path to the log file, or '-' for stdout.
            logfile -
        </trebuchet_server>
    </trebuchet>

    <buildsequencer>
        mailproblemsto root
        # It makes no sense to allow the sequencer to start by default
        # on a developer machine because they're unlikely to have a 
        # build farm of their own. This does not prevent the daemon from
        # ever starting.
        launch no
        logfile -
        <buildsequencer_job slave_scanner>
            command cronscripts/buildd-slave-scanner.py
            mindelay 5
        </buildsequencer_job>
        <buildsequencer_job queue_builder>
            command cronscripts/buildd-queue-builder.py
            mindelay 10
        </buildsequencer_job>
    </buildsequencer>

    <uploader>
        dbuser uploader
        default_recipient_name Local Root 
        default_recipient_address root@localhost
        default_sender_name Local Root 
        default_sender_address root@localhost
    </uploader>

    <uploadqueue>
        dbuser queued
    </uploadqueue>

</canonical>

# This is the config used by the test runner.
<canonical testrunner>
    dbname launchpad_ftest
    show_tracebacks true
    # chunkydiff may be turned off temporarily to help diagnose test
    # failures, but please don't commit this setting to rocketfuel.
    chunkydiff off

    bounce_address bounces@canonical.com

    <launchpad>
        dbuser launchpad
        root_url http://localhost:8086/
        errors_address launchpad-error-reports@lists.canonical.com
        bugs_domain bugs.launchpad.net
        # Limit the size to 1024 bytes in order to avoid creating large
        # files for testing.
        max_bug_attachment_size 1024
        browser_notification_level info
    </launchpad>
    <librarian>
        dbuser librarian
        upload_host localhost
        upload_port 59090
        download_host localhost
        download_port 58000
        download_url http://localhost:58000/
        buildd_download_url http://localhost:58000/
        <librarian_server>
            launch no
            root /var/tmp/fatsam.test
        </librarian_server>
    </librarian>
    <malone>
        # The From address for Malone email interface errors
        bugmail_error_from_address noreply@bugs.launchpad.net
    </malone>
    <rosetta>
        <poimport>
            dbuser poimport
        </poimport>
        <poattach>
            dbuser poattach
        </poattach>
    </rosetta>
    <zopeless>
        send_email false
    </zopeless>
    <gpghandler>
        host localhost
        port 11371
    </gpghandler>
    <zeca>
        # where the pre-installed key-files will be copied to (every
        # initialization, see lib/zeca/ftest/harness.py)
        root /var/tmp/zeca
    </zeca>

    <gina>
        # Configuration used to test gina.
        dbuser gina
        <gina_target hoary>
            distro ubuntu
            distrorelease hoary
            pocketrelease hoary
            root /tmp/gina_test_archive
            keyrings /usr/share/keyrings
            architectures i386
            components main
        </gina_target>
        <gina_target breezy>
            distro ubuntu
            distrorelease breezy
            pocketrelease breezy
            root /tmp/gina_test_archive
            keyrings /usr/share/keyrings
            architectures i386
            components main
        </gina_target>
        # A non-existant archive we can test with
        <gina_target dapper>
            distro ubuntu
            distrorelease dapper
            pocketrelease dapper
            root /tmp/gina_test_archive
            keyrings /usr/share/keyrings
            architectures i386, powerpc
            components main, universe
        </gina_target>
        <gina_target dapper-updates>
            distro ubuntu
            distrorelease dapper
            pocket updates
            pocketrelease dapper-updates
            root /tmp/gina_test_archive
            keyrings /usr/share/keyrings
            architectures i386, powerpc
            components main, universe
        </gina_target>
        <gina_target bogus>
            distro ubuntu
            distrorelease bogoland
            pocketrelease bogoland
            root /tmp/gina_test_archive
            keyrings /usr/share/keyrings
            architectures i386
            components main
        </gina_target>
    </gina>

    <targetnamecacheupdater>
        dbuser targetnamecacheupdater
    </targetnamecacheupdater>

    <karmacacheupdater>
        dbuser karma
    </karmacacheupdater>

    <shipitexporter>
        dbuser shipit
    </shipitexporter>

    <statistician>
        dbuser statistician
    </statistician>

    <cveupdater>
        dbuser cve
    </cveupdater>

    <tickettracker>
        dbuser tickettracker
    </tickettracker>

    <buildsequencer>
        mailproblemsto -
        launch no
        logfile -
        <buildsequencer_job slave_scanner>
            command cronscripts/buildd-slave-scanner.py
            mindelay 5
        </buildsequencer_job>
        <buildsequencer_job queue_builder>
            command cronscripts/buildd-queue-builder.py
            mindelay 900
        </buildsequencer_job>
    </buildsequencer>

    <uploader>
        dbuser uploader
        default_recipient_name Root
        default_recipient_address root@localhost
        default_sender_name Root
        default_sender_address root@localhost
    </uploader>

    <uploadqueue>
        dbuser queued
    </uploadqueue>

</canonical>