The Gatekeeper, or a project gating system
Go to file
Tristan Cacqueray 2f520fe720 scheduler: fix enqueue event to use canonical project name
When trying to enqueue an event using a canonical project name, we need to
fix the doEnqueueEvent method to use the full project name. Otherwise it fails
with:

zuul.rpcclient.RPCFailure: Traceback (most recent call last):
[...]
  File "zuul/scheduler.py", line 829, in _doEnqueueEvent
    (trusted, project) = tenant.getProject(event.project_name)
  File "zuul/model.py", line 3458, in getProject
    "with a hostname" % (name,))
Exception: Project name 'openstack/tripleo-heat-templates' is ambiguous,
           please fully qualify the project with a hostname

Even when the enqueue command was done using the canonical project name.

Change-Id: I68210993ca4d5917c40df9a198f2e47dd2b0399c
2018-07-13 06:58:36 +00:00
doc Merge "Support zuul.child_jobs via zuul_return" 2018-07-11 06:36:26 +00:00
etc Fix indent error for layout.yaml-sample. 2018-06-20 12:20:23 +08:00
playbooks Revert "Revert "Upgrade from angularjs (v1) to angular (v6)"" 2018-06-27 08:37:25 -05:00
releasenotes/notes Merge "timer: skip projects not using the pipeline" 2018-07-12 22:20:29 +00:00
tests scheduler: fix enqueue event to use canonical project name 2018-07-13 06:58:36 +00:00
tools Add tox-py36 jobs 2018-05-07 15:07:40 +10:00
web Merge "Shift log streaming code into StreamComponent" 2018-06-29 17:17:47 +00:00
zuul scheduler: fix enqueue event to use canonical project name 2018-07-13 06:58:36 +00:00
.babelrc Use yarn and webpack to manage zuul-web javascript 2018-03-04 07:20:40 -06:00
.coveragerc Revert "Revert "Switch to stestr"" 2018-05-17 08:33:40 -07:00
.eslintrc Revert "Revert "Upgrade from angularjs (v1) to angular (v6)"" 2018-06-27 08:37:25 -05:00
.gitignore Add .stestr to .gitignore 2018-06-11 13:00:17 +02:00
.gitreview Updated .gitreview location 2012-12-16 20:34:13 +00:00
.mailmap Fix pep8 E127 violations 2012-09-26 14:23:10 +00:00
.stestr.conf Revert "Revert "Switch to stestr"" 2018-05-17 08:33:40 -07:00
.zuul.yaml Revert "Revert "Upgrade from angularjs (v1) to angular (v6)"" 2018-06-27 08:37:25 -05:00
COPYING Update README and add GPL license 2018-03-19 09:25:52 -07:00
LICENSE Initial commit. 2012-05-29 14:49:32 -07:00
MANIFEST.in Use yarn and webpack to manage zuul-web javascript 2018-03-04 07:20:40 -06:00
README.rst Update documentation URLs 2018-05-02 19:05:12 -04:00
TESTING.rst Revert "Revert "Switch to stestr"" 2018-05-17 08:33:40 -07:00
bindep.txt Add tox-py36 jobs 2018-05-07 15:07:40 +10:00
package.json Revert "Revert "Upgrade from angularjs (v1) to angular (v6)"" 2018-06-27 08:37:25 -05:00
requirements.txt Merge "Update to Ansible 2.5" 2018-06-07 15:02:27 +00:00
setup.cfg Remove zuul-cloner command 2018-04-12 11:49:13 -04:00
setup.py Partial sync with OpenStack requirements. 2013-09-25 15:30:37 -07:00
test-requirements.txt Revert "Revert "Switch to stestr"" 2018-05-17 08:33:40 -07:00
tox.ini Fix tox-cover 2018-06-10 13:59:29 +02:00
tsconfig.json Revert "Revert "Upgrade from angularjs (v1) to angular (v6)"" 2018-06-27 08:37:25 -05:00
tslint.json Revert "Revert "Upgrade from angularjs (v1) to angular (v6)"" 2018-06-27 08:37:25 -05:00
webpack.config.js Use yarn and webpack to manage zuul-web javascript 2018-03-04 07:20:40 -06:00
yarn.lock Revert "Revert "Upgrade from angularjs (v1) to angular (v6)"" 2018-06-27 08:37:25 -05:00

README.rst

Zuul

Zuul is a project gating system.

The latest documentation for Zuul v3 is published at: https://zuul-ci.org/docs/zuul/

If you are looking for the Edge routing service named Zuul that is related to Netflix, it can be found here: https://github.com/Netflix/zuul

If you are looking for the Javascript testing tool named Zuul, it can be found here: https://github.com/defunctzombie/zuul

Getting Help

There are two Zuul-related mailing lists:

zuul-announce

A low-traffic announcement-only list to which every Zuul operator or power-user should subscribe.

zuul-discuss

General discussion about Zuul, including questions about how to use it, and future development.

You will also find Zuul developers in the #zuul channel on Freenode IRC.

Contributing

To browse the latest code, see: https://git.zuul-ci.org/cgit/zuul/tree/ To clone the latest code, use git clone https://git.zuul-ci.org/zuul

Bugs are handled at: https://storyboard.openstack.org/#!/project/679

Code reviews are handled by gerrit at https://review.openstack.org

After creating a Gerrit account, use git review to submit patches. Example:

# Do your commits
$ git review
# Enter your username if prompted

Join #zuul on Freenode to discuss development or usage.

License

Zuul is free software. Most of Zuul is licensed under the Apache License, version 2.0. Some parts of Zuul are licensed under the General Public License, version 3.0. Please see the license headers at the tops of individual source files.

Python Version Support

Zuul v3 requires Python 3. It does not support Python 2.

As Ansible is used for the execution of jobs, it's important to note that while Ansible does support Python 3, not all of Ansible's modules do. Zuul currently sets ansible_python_interpreter to python2 so that remote content will be executed with Python 2.