Skip to content

Commit 1543bc5

Browse files
Merge pull request trafodion#2 from alchen99/updateUpstream150210
Update from Openstack GitHub repo as of Feb. 10, 2015
2 parents 3a7221f + c794f2a commit 1543bc5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2202
-369
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Contributing
99
To browse the latest code, see: https://git.openstack.org/cgit/openstack-infra/zuul/tree/
1010
To clone the latest code, use `git clone git://git.openstack.org/openstack-infra/zuul`
1111

12-
Bugs are handled at: https://launchpad.net/zuul
12+
Bugs are handled at: https://storyboard.openstack.org/#!/project/679
1313

1414
Code reviews are, as you might expect, handled by gerrit. The gerrit they
1515
use is http://review.openstack.org

doc/source/cloner.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,15 @@ cloner processes the clones in the order supplied, so you should swap the
7575
projects::
7676

7777
zuul-cloner project project/plugins/plugin1
78+
79+
Cached repositories
80+
-------------------
81+
82+
The ``--cache-dir`` option can be used to reduce network traffic by
83+
cloning from a local repository which may not be up to date.
84+
85+
If the ``--cache-dir`` option is supplied, zuul-cloner will start by
86+
cloning any projects it processes from those found in that directory.
87+
The URL of origin remote of the resulting clone will be reset to use
88+
the ``git_base_url`` and then the remote will be updated so that the
89+
repository has all the information in the upstream repository.

doc/source/triggers.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ want Zuul to gate. For instance, you may want to grant ``Verified
3434
be added to Gerrit. Zuul is very flexible and can take advantage of
3535
those.
3636

37+
If using Gerrit 2.7 or later, make sure the user is a member of a group
38+
that is granted the ``Stream Events`` permission, otherwise it will not
39+
be able to invoke the ``gerrit stream-events`` command over SSH.
40+
3741
Timer
3842
-----
3943

doc/source/zuul.rst

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ server) are specified in a third section.
3636
The three sections of this config and their options are documented below.
3737
You can also find an example zuul.conf file in the git
3838
`repository
39-
<https://github.com/openstack-infra/zuul/blob/master/etc/zuul.conf-sample>`_
39+
<https://git.openstack.org/cgit/openstack-infra/zuul/tree/etc/zuul.conf-sample>`_
4040

4141
gearman
4242
"""""""
@@ -86,6 +86,8 @@ gerrit
8686
zuul
8787
""""
8888

89+
.. _layout_config:
90+
8991
**layout_config**
9092
Path to layout config file. Used by zuul-server only.
9193
``layout_config=/etc/zuul/layout.yaml``
@@ -272,10 +274,12 @@ include, and currently supports one type of inclusion, a python file::
272274
- python-file: local_functions.py
273275

274276
**python-file**
275-
The path to a python file. The file will be loaded and objects that
276-
it defines will be placed in a special environment which can be
277-
referenced in the Zuul configuration. Currently only the
278-
parameter-function attribute of a Job uses this feature.
277+
The path to a python file (either an absolute path or relative to the
278+
directory name of :ref:`layout_config <layout_config>`). The
279+
file will be loaded and objects that it defines will be placed in a
280+
special environment which can be referenced in the Zuul configuration.
281+
Currently only the parameter-function attribute of a Job uses this
282+
feature.
279283

280284
Pipelines
281285
"""""""""
@@ -462,7 +466,8 @@ explanation of each of the parameters::
462466
This may be used for any event. It requires that a certain kind
463467
of approval be present for the current patchset of the change (the
464468
approval could be added by the event in question). It follows the
465-
same syntax as the "approval" pipeline requirement below.
469+
same syntax as the :ref:`"approval" pipeline requirement below
470+
<pipeline-require-approval>`.
466471

467472
**timer**
468473
This trigger will run based on a cron-style time specification.
@@ -497,7 +502,8 @@ explanation of each of the parameters::
497502
This may be used for any event. It requires that a certain kind
498503
of approval be present for the current patchset of the change (the
499504
approval could be added by the event in question). It follows the
500-
same syntax as the "approval" pipeline requirement below.
505+
same syntax as the :ref:`"approval" pipeline requirement below
506+
<pipeline-require-approval>`.
501507

502508

503509
**require**
@@ -507,6 +513,8 @@ explanation of each of the parameters::
507513
the conditions specified here must be met or the item will not be
508514
enqueued.
509515

516+
.. _pipeline-require-approval:
517+
510518
**approval**
511519
This requires that a certain kind of approval be present for the
512520
current patchset of the change (the approval could be added by the
@@ -561,6 +569,15 @@ explanation of each of the parameters::
561569
well. To suppress this behavior (and allow jobs to continue
562570
running), set this to ``false``. Default: ``true``.
563571

572+
**ignore-dependencies**
573+
In any kind of pipeline (dependent or independent), Zuul will
574+
attempt to enqueue all dependencies ahead of the current change so
575+
that they are tested together (independent pipelines report the
576+
results of each change regardless of the results of changes ahead).
577+
To ignore dependencies completely in an independent pipeline, set
578+
this to ``true``. This option is ignored by dependent pipelines.
579+
The default is: ``false``.
580+
564581
**success**
565582
Describes where Zuul should report to if all the jobs complete
566583
successfully.
@@ -924,7 +941,7 @@ return ``SUCCESS`` immediately. This can be useful if you require
924941
that all changes be processed by a pipeline but a project has no jobs
925942
that can be run on it.
926943

927-
.. seealso:: The OpenStack Zuul configuration for a comprehensive example: https://github.com/openstack-infra/config/blob/master/modules/openstack_project/files/zuul/layout.yaml
944+
.. seealso:: The OpenStack Zuul configuration for a comprehensive example: https://git.openstack.org/cgit/openstack-infra/project-config/tree/zuul/layout.yaml
928945

929946
Project Templates
930947
"""""""""""""""""
@@ -978,6 +995,10 @@ also be added::
978995
check:
979996
- foobar-extra-special-job
980997

998+
Individual jobs may optionally be added to pipelines (e.g. check,
999+
gate, et cetera) for a project, in addtion to those provided by
1000+
templates.
1001+
9811002
The order of the jobs listed in the project (which only affects the
9821003
order of jobs listed on the report) will be the jobs from each
9831004
template in the order listed, followed by any jobs individually listed
@@ -1034,10 +1055,19 @@ example, this would give you a list of Gerrit commands to reverify or
10341055
recheck changes for the gate and check pipelines respectively::
10351056

10361057
./tools/zuul-changes.py --review-host=review.openstack.org \
1037-
http://zuul.openstack.org/ gate 'reverify no bug'
1058+
http://zuul.openstack.org/ gate 'reverify'
10381059
./tools/zuul-changes.py --review-host=review.openstack.org \
1039-
http://zuul.openstack.org/ check 'recheck no bug'
1040-
1041-
If you send a SIGUSR2 to the zuul-server process, Zuul will dump a stack
1042-
trace for each running thread into its debug log. This is useful for
1043-
tracking down deadlock or otherwise slow threads.
1060+
http://zuul.openstack.org/ check 'recheck'
1061+
1062+
If you send a SIGUSR2 to the zuul-server process, or the forked process
1063+
that runs the Gearman daemon, Zuul will dump a stack trace for each
1064+
running thread into its debug log. It is written under the log bucket
1065+
``zuul.stack_dump``. This is useful for tracking down deadlock or
1066+
otherwise slow threads.
1067+
1068+
When `yappi <https://code.google.com/p/yappi/>`_ (Yet Another Python
1069+
Profiler) is available, additional functions' and threads' stats are
1070+
emitted as well. The first SIGUSR2 will enable yappi, on the second
1071+
SIGUSR2 it dumps the information collected, resets all yappi state and
1072+
stops profiling. This is to minimize the impact of yappi on a running
1073+
system.

etc/status/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
public_html/jquery.min.js
2-
public_html/jquery-visibility.min.js
2+
public_html/jquery-visibility.js
33
public_html/bootstrap
44
public_html/jquery.graphite.js

etc/status/fetch-dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ BASE_DIR=$(cd $(dirname $0); pwd)
33
echo "Destination: $BASE_DIR/public_html"
44

55
echo "Fetching jquery.min.js..."
6-
curl --silent http://code.jquery.com/jquery.min.js > $BASE_DIR/public_html/jquery.min.js
6+
curl -L --silent http://code.jquery.com/jquery.min.js > $BASE_DIR/public_html/jquery.min.js
77

88
echo "Fetching jquery-visibility.min.js..."
9-
curl --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $BASE_DIR/public_html/jquery-visibility.min.js
9+
curl -L --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $BASE_DIR/public_html/jquery-visibility.js
1010

1111
echo "Fetching jquery.graphite.js..."
1212
curl -L --silent https://github.com/prestontimmons/graphitejs/archive/master.zip > jquery-graphite.zip

etc/status/public_html/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@
2020
<head>
2121
<title>Zuul Status</title>
2222
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
23-
<link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css">
2423
<link rel="stylesheet" href="styles/zuul.css" />
2524
</head>
2625
<body>
2726

2827
<div id="zuul_container"></div>
2928

3029
<script src="jquery.min.js"></script>
31-
<script src="jquery-visibility.min.js"></script>
30+
<script src="jquery-visibility.js"></script>
3231
<script src="jquery.graphite.js"></script>
3332
<script src="jquery.zuul.js"></script>
3433
<script src="zuul.app.js"></script>

etc/status/public_html/jquery.zuul.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}, options);
5151

5252
var collapsed_exceptions = [];
53-
var current_filter = read_cookie('zuul_filter_string', current_filter);
53+
var current_filter = read_cookie('zuul_filter_string', '');
5454
var $jq;
5555

5656
var xhr,
@@ -111,6 +111,7 @@
111111
);
112112
}
113113

114+
$job_line.append($('<div style="clear: both"></div>'));
114115
return $job_line;
115116
},
116117

@@ -266,9 +267,21 @@
266267

267268
var $change_link = $('<small />');
268269
if (change.url !== null) {
269-
$change_link.append(
270-
$('<a />').attr('href', change.url).text(change.id)
271-
);
270+
if (/^[0-9a-f]{40}$/.test(change.id)) {
271+
var change_id_short = change.id.slice(0, 7);
272+
$change_link.append(
273+
$('<a />').attr('href', change.url).append(
274+
$('<abbr />')
275+
.attr('title', change.id)
276+
.text(change_id_short)
277+
)
278+
);
279+
}
280+
else {
281+
$change_link.append(
282+
$('<a />').attr('href', change.url).text(change.id)
283+
);
284+
}
272285
}
273286
else {
274287
$change_link.text(change_id);
@@ -357,6 +370,11 @@
357370
icon_title = 'Waiting until closer to head of queue to' +
358371
' start jobs';
359372
}
373+
else if (change.live !== true) {
374+
// Grey icon
375+
icon_name = 'grey.png';
376+
icon_title = 'Dependent change independently tested';
377+
}
360378
else if (change.failing_reasons &&
361379
change.failing_reasons.length > 0) {
362380
var reason = change.failing_reasons.join(', ');

requirements.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ PyYAML>=3.1.0
55
Paste
66
WebOb>=1.2.3,<1.3
77
paramiko>=1.8.0
8-
GitPython>=0.3.2.RC1
8+
GitPython>=0.3.2.1
99
lockfile>=0.8
1010
ordereddict
11-
python-daemon
11+
python-daemon>=2.0.4
1212
extras
1313
statsd>=1.0.0,<3.0
1414
voluptuous>=0.7
1515
gear>=0.5.4,<1.0.0
1616
apscheduler>=2.1.1,<3.0
17-
python-swiftclient>=1.6
18-
python-keystoneclient>=0.4.2
1917
PrettyTable>=0.6,<0.8
2018
babel>=1.0
2119
six>=1.6.0

test-requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
hacking>=0.9.2,<0.10
22

33
coverage>=3.6
4-
sphinx>=1.1.2,<1.2
4+
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
55
sphinxcontrib-blockdiag>=0.5.5
6-
docutils==0.9.1
76
discover
87
fixtures>=0.3.14
8+
python-keystoneclient>=0.4.2
99
python-subunit
10+
python-swiftclient>=1.6
1011
testrepository>=0.0.17
1112
testtools>=0.9.32
1213
sphinxcontrib-programoutput

0 commit comments

Comments
 (0)