summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/config/project.rst10
-rw-r--r--releasenotes/notes/change-queue-project-790553bd212b50eb.yaml2
-rw-r--r--releasenotes/notes/pipeline-queue-removal-475caa7091f7e43f.yaml6
-rw-r--r--tests/fixtures/config/authorization/rules-templating/git/common-config/zuul.yaml6
-rw-r--r--tests/fixtures/config/authorization/single-tenant/git/common-config/zuul.yaml6
-rw-r--r--tests/fixtures/config/change-queues/git/common-config/zuul.d/config.yaml2
-rw-r--r--tests/fixtures/config/change-queues/git/org_project/.zuul.yaml2
-rw-r--r--tests/fixtures/config/change-queues/git/org_project3/zuul.d/project.yaml2
-rw-r--r--tests/fixtures/config/cross-source-pagure/git/common-config-gerrit/zuul.yaml4
-rw-r--r--tests/fixtures/config/cross-source-pagure/git/github_common-config/zuul.yaml4
-rw-r--r--tests/fixtures/config/cross-source/git/common-config/zuul.yaml4
-rwxr-xr-xtests/fixtures/config/duplicate-pipeline/git/common-config/zuul.yaml3
-rw-r--r--tests/fixtures/config/openstack/git/project-config/zuul.yaml8
-rw-r--r--tests/fixtures/config/provides-requires-pause/git/org_project1/zuul.yaml2
-rw-r--r--tests/fixtures/config/provides-requires-pause/git/org_project2/zuul.yaml2
-rw-r--r--tests/fixtures/config/single-tenant/git/common-config/zuul.yaml6
-rw-r--r--tests/fixtures/config/single-tenant/git/org_project3/zuul.yaml2
-rw-r--r--tests/fixtures/config/sql-driver/git/common-config/zuul.yaml2
-rw-r--r--tests/fixtures/layout.yaml233
-rw-r--r--tests/fixtures/layouts/crd-github.yaml4
-rw-r--r--tests/fixtures/layouts/crd-gitlab.yaml6
-rw-r--r--tests/fixtures/layouts/crd-pagure.yaml4
-rw-r--r--tests/fixtures/layouts/provides-requires-two-jobs.yaml4
-rw-r--r--tests/fixtures/layouts/provides-requires.yaml4
-rw-r--r--tests/fixtures/layouts/regex-queue.yaml2
-rw-r--r--tests/fixtures/layouts/regex-template-queue.yaml2
-rw-r--r--tests/fixtures/layouts/repo-checkout-four-project.yaml8
-rw-r--r--tests/fixtures/layouts/repo-checkout-six-project.yaml12
-rw-r--r--tests/fixtures/layouts/repo-checkout-two-project.yaml4
-rw-r--r--tests/fixtures/layouts/serial.yaml4
-rw-r--r--tests/fixtures/layouts/template-queue.yaml2
-rw-r--r--tests/fixtures/layouts/three-projects.yaml6
-rw-r--r--tests/fixtures/layouts/two-projects-integrated.yaml3
-rw-r--r--tests/unit/test_circular_dependencies.py6
-rw-r--r--tests/unit/test_web.py3
-rw-r--r--zuul/configloader.py6
-rw-r--r--zuul/manager/__init__.py30
-rw-r--r--zuul/manager/shared.py14
-rw-r--r--zuul/model.py4
39 files changed, 77 insertions, 357 deletions
diff --git a/doc/source/config/project.rst b/doc/source/config/project.rst
index 301e0b08d..1aa570f41 100644
--- a/doc/source/config/project.rst
+++ b/doc/source/config/project.rst
@@ -187,16 +187,6 @@ pipeline.
:attr:`job` definition. Any attributes set on the job here
will override previous versions of the job.
- .. attr:: queue
-
- This is the same as :attr:`project.queue` but on per pipeline
- level for backwards compatibility reasons. If :attr:`project.queue`
- is defined this setting is ignored.
-
- .. note:: It is deprecated to define the queue in the pipeline
- configuration. Configure it on :attr:`project.queue`
- instead.
-
.. attr:: debug
If this is set to `true`, Zuul will include debugging
diff --git a/releasenotes/notes/change-queue-project-790553bd212b50eb.yaml b/releasenotes/notes/change-queue-project-790553bd212b50eb.yaml
index a68db6f17..a88048242 100644
--- a/releasenotes/notes/change-queue-project-790553bd212b50eb.yaml
+++ b/releasenotes/notes/change-queue-project-790553bd212b50eb.yaml
@@ -2,5 +2,5 @@
deprecations:
- |
Shared ``queues`` should be configured per project now instead per
- pipeline. Specifying :attr:`project.<pipeline>.queue` is deprecated
+ pipeline. Specifying `project.<pipeline>.queue` is deprecated
and will be removed in a future release.
diff --git a/releasenotes/notes/pipeline-queue-removal-475caa7091f7e43f.yaml b/releasenotes/notes/pipeline-queue-removal-475caa7091f7e43f.yaml
new file mode 100644
index 000000000..4d25d159b
--- /dev/null
+++ b/releasenotes/notes/pipeline-queue-removal-475caa7091f7e43f.yaml
@@ -0,0 +1,6 @@
+---
+upgrade:
+ - |
+ The deprecated syntax of specifying project change queues on
+ pipeline configurations has been removed. Specify queues using
+ the project stanza now. See :attr:`queue` for more information.
diff --git a/tests/fixtures/config/authorization/rules-templating/git/common-config/zuul.yaml b/tests/fixtures/config/authorization/rules-templating/git/common-config/zuul.yaml
index 750d578ec..b4ca647e0 100644
--- a/tests/fixtures/config/authorization/rules-templating/git/common-config/zuul.yaml
+++ b/tests/fixtures/config/authorization/rules-templating/git/common-config/zuul.yaml
@@ -126,6 +126,7 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- project-merge
@@ -136,7 +137,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -148,6 +148,7 @@
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- project-merge
@@ -158,7 +159,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -170,6 +170,7 @@
- project:
name: common-config
+ queue: integrated
check:
jobs:
- project-merge
@@ -180,7 +181,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/config/authorization/single-tenant/git/common-config/zuul.yaml b/tests/fixtures/config/authorization/single-tenant/git/common-config/zuul.yaml
index 750d578ec..b4ca647e0 100644
--- a/tests/fixtures/config/authorization/single-tenant/git/common-config/zuul.yaml
+++ b/tests/fixtures/config/authorization/single-tenant/git/common-config/zuul.yaml
@@ -126,6 +126,7 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- project-merge
@@ -136,7 +137,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -148,6 +148,7 @@
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- project-merge
@@ -158,7 +159,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -170,6 +170,7 @@
- project:
name: common-config
+ queue: integrated
check:
jobs:
- project-merge
@@ -180,7 +181,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/config/change-queues/git/common-config/zuul.d/config.yaml b/tests/fixtures/config/change-queues/git/common-config/zuul.d/config.yaml
index 0fe373866..e548b52b6 100644
--- a/tests/fixtures/config/change-queues/git/common-config/zuul.d/config.yaml
+++ b/tests/fixtures/config/change-queues/git/common-config/zuul.d/config.yaml
@@ -29,8 +29,8 @@
- project:
name: org/project2
+ queue: integrated
gate:
- queue: integrated
jobs:
- project-test
diff --git a/tests/fixtures/config/change-queues/git/org_project/.zuul.yaml b/tests/fixtures/config/change-queues/git/org_project/.zuul.yaml
index b62c7ee67..765982d8f 100644
--- a/tests/fixtures/config/change-queues/git/org_project/.zuul.yaml
+++ b/tests/fixtures/config/change-queues/git/org_project/.zuul.yaml
@@ -4,7 +4,7 @@
per-branch: false
- project:
+ queue: integrated
gate:
- queue: integrated
jobs:
- project-test
diff --git a/tests/fixtures/config/change-queues/git/org_project3/zuul.d/project.yaml b/tests/fixtures/config/change-queues/git/org_project3/zuul.d/project.yaml
index e1a297bd5..f80c5c571 100644
--- a/tests/fixtures/config/change-queues/git/org_project3/zuul.d/project.yaml
+++ b/tests/fixtures/config/change-queues/git/org_project3/zuul.d/project.yaml
@@ -1,5 +1,5 @@
- project:
+ queue: integrated-untrusted
gate:
- queue: integrated-untrusted
jobs:
- project-test
diff --git a/tests/fixtures/config/cross-source-pagure/git/common-config-gerrit/zuul.yaml b/tests/fixtures/config/cross-source-pagure/git/common-config-gerrit/zuul.yaml
index 57566f260..5d8f8c7a7 100644
--- a/tests/fixtures/config/cross-source-pagure/git/common-config-gerrit/zuul.yaml
+++ b/tests/fixtures/config/cross-source-pagure/git/common-config-gerrit/zuul.yaml
@@ -94,6 +94,7 @@
- project:
name: gerrit/project1
+ queue: integrated
check:
jobs:
- project-merge
@@ -104,7 +105,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -116,6 +116,7 @@
- project:
name: pagure/project2
+ queue: integrated
check:
jobs:
- project-merge
@@ -126,7 +127,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/config/cross-source-pagure/git/github_common-config/zuul.yaml b/tests/fixtures/config/cross-source-pagure/git/github_common-config/zuul.yaml
index f7bbd4784..575020246 100644
--- a/tests/fixtures/config/cross-source-pagure/git/github_common-config/zuul.yaml
+++ b/tests/fixtures/config/cross-source-pagure/git/github_common-config/zuul.yaml
@@ -92,6 +92,7 @@
- project:
name: github/project1
+ queue: integrated
check:
jobs:
- project-merge
@@ -102,7 +103,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -114,6 +114,7 @@
- project:
name: pagure/project2
+ queue: integrated
check:
jobs:
- project-merge
@@ -124,7 +125,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/config/cross-source/git/common-config/zuul.yaml b/tests/fixtures/config/cross-source/git/common-config/zuul.yaml
index abdc34afa..47ce3caea 100644
--- a/tests/fixtures/config/cross-source/git/common-config/zuul.yaml
+++ b/tests/fixtures/config/cross-source/git/common-config/zuul.yaml
@@ -125,6 +125,7 @@
- project:
name: gerrit/project1
+ queue: integrated
check:
jobs:
- project-merge
@@ -135,7 +136,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -147,6 +147,7 @@
- project:
name: github/project2
+ queue: integrated
check:
jobs:
- project-merge
@@ -157,7 +158,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/config/duplicate-pipeline/git/common-config/zuul.yaml b/tests/fixtures/config/duplicate-pipeline/git/common-config/zuul.yaml
index dbd63c517..c822736ad 100755
--- a/tests/fixtures/config/duplicate-pipeline/git/common-config/zuul.yaml
+++ b/tests/fixtures/config/duplicate-pipeline/git/common-config/zuul.yaml
@@ -36,11 +36,10 @@
- project:
name: org/project
+ queue: integrated
dup1:
- queue: integrated
jobs:
- project-test1
dup2:
- queue: integrated
jobs:
- project-test1
diff --git a/tests/fixtures/config/openstack/git/project-config/zuul.yaml b/tests/fixtures/config/openstack/git/project-config/zuul.yaml
index 93bdb1132..4f06a1feb 100644
--- a/tests/fixtures/config/openstack/git/project-config/zuul.yaml
+++ b/tests/fixtures/config/openstack/git/project-config/zuul.yaml
@@ -80,20 +80,20 @@
- project:
name: openstack/nova
+ queue: integrated
templates:
- python-jobs
check:
jobs:
- dsvm
- gate:
- queue: integrated
+ gate: {}
- project:
name: openstack/keystone
+ queue: integrated
templates:
- python-jobs
check:
jobs:
- dsvm
- gate:
- queue: integrated
+ gate: {}
diff --git a/tests/fixtures/config/provides-requires-pause/git/org_project1/zuul.yaml b/tests/fixtures/config/provides-requires-pause/git/org_project1/zuul.yaml
index 412fe2c18..fb8a6eea0 100644
--- a/tests/fixtures/config/provides-requires-pause/git/org_project1/zuul.yaml
+++ b/tests/fixtures/config/provides-requires-pause/git/org_project1/zuul.yaml
@@ -11,6 +11,7 @@
run: playbooks/image-user.yaml
- project:
+ queue: integrated
check:
jobs:
- image-builder
@@ -18,7 +19,6 @@
dependencies:
- image-builder
gate:
- queue: integrated
jobs:
- image-builder
- image-user:
diff --git a/tests/fixtures/config/provides-requires-pause/git/org_project2/zuul.yaml b/tests/fixtures/config/provides-requires-pause/git/org_project2/zuul.yaml
index e9e6b5867..7f8de1178 100644
--- a/tests/fixtures/config/provides-requires-pause/git/org_project2/zuul.yaml
+++ b/tests/fixtures/config/provides-requires-pause/git/org_project2/zuul.yaml
@@ -1,8 +1,8 @@
- project:
+ queue: integrated
check:
jobs:
- image-user
gate:
- queue: integrated
jobs:
- image-user
diff --git a/tests/fixtures/config/single-tenant/git/common-config/zuul.yaml b/tests/fixtures/config/single-tenant/git/common-config/zuul.yaml
index b29f5a654..cbc523a8b 100644
--- a/tests/fixtures/config/single-tenant/git/common-config/zuul.yaml
+++ b/tests/fixtures/config/single-tenant/git/common-config/zuul.yaml
@@ -148,8 +148,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- # This will be overridden on project level
- queue: integrated-overridden
jobs:
- project-merge
- project-test1:
@@ -164,6 +162,7 @@
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- project-merge
@@ -174,7 +173,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -186,6 +184,7 @@
- project:
name: common-config
+ queue: integrated
check:
jobs:
- project-merge
@@ -196,7 +195,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/config/single-tenant/git/org_project3/zuul.yaml b/tests/fixtures/config/single-tenant/git/org_project3/zuul.yaml
index 3effc3cb4..a588b7aa2 100644
--- a/tests/fixtures/config/single-tenant/git/org_project3/zuul.yaml
+++ b/tests/fixtures/config/single-tenant/git/org_project3/zuul.yaml
@@ -1,4 +1,5 @@
- project:
+ queue: integrated
check:
jobs:
- project-merge
@@ -11,7 +12,6 @@
- project-test1
- project-test2
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/config/sql-driver/git/common-config/zuul.yaml b/tests/fixtures/config/sql-driver/git/common-config/zuul.yaml
index 57d50ca43..6192249c6 100644
--- a/tests/fixtures/config/sql-driver/git/common-config/zuul.yaml
+++ b/tests/fixtures/config/sql-driver/git/common-config/zuul.yaml
@@ -105,6 +105,7 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- project-merge
@@ -113,7 +114,6 @@
- project-test2:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/layout.yaml b/tests/fixtures/layout.yaml
deleted file mode 100644
index cd8ce1906..000000000
--- a/tests/fixtures/layout.yaml
+++ /dev/null
@@ -1,233 +0,0 @@
-includes:
- - python-file: custom_functions.py
-
-pipelines:
- - name: check
- manager: independent
- source:
- gerrit
- trigger:
- gerrit:
- - event: patchset-created
- success:
- gerrit:
- Verified: 1
- failure:
- gerrit:
- Verified: -1
-
- - name: post
- manager: independent
- source:
- gerrit
- trigger:
- gerrit:
- - event: ref-updated
- ref: ^(?!refs/).*$
-
- - name: gate
- manager: dependent
- failure-message: Build failed. For information on how to proceed, see http://wiki.example.org/Test_Failures
- source:
- gerrit
- trigger:
- gerrit:
- - event: comment-added
- approval:
- - Approved: 1
- success:
- gerrit:
- Verified: 2
- submit: true
- failure:
- gerrit:
- Verified: -2
- start:
- gerrit:
- Verified: 0
- precedence: high
-
- - name: unused
- manager: independent
- dequeue-on-new-patchset: false
- source:
- gerrit
- trigger:
- gerrit:
- - event: comment-added
- approval:
- - Approved: 1
-
- - name: dup1
- manager: independent
- source:
- gerrit
- trigger:
- gerrit:
- - event: change-restored
- success:
- gerrit:
- Verified: 1
- failure:
- gerrit:
- Verified: -1
-
- - name: dup2
- manager: independent
- source:
- gerrit
- trigger:
- gerrit:
- - event: change-restored
- success:
- gerrit:
- Verified: 1
- failure:
- gerrit:
- Verified: -1
-
- - name: conflict
- manager: dependent
- failure-message: Build failed. For information on how to proceed, see http://wiki.example.org/Test_Failures
- source:
- gerrit
- trigger:
- gerrit:
- - event: comment-added
- approval:
- - Approved: 1
- success:
- gerrit:
- Verified: 2
- submit: true
- failure:
- gerrit:
- Verified: -2
- start:
- gerrit:
- Verified: 0
-
- - name: experimental
- manager: independent
- source:
- gerrit
- trigger:
- gerrit:
- - event: patchset-created
- success:
- gerrit: {}
- failure:
- gerrit: {}
-
-jobs:
- - name: ^.*-merge$
- failure-message: Unable to merge change
- hold-following-changes: true
- tags: merge
- - name: nonvoting-project-test2
- voting: false
- - name: project-testfile
- files:
- - '.*-requires'
- - name: project1-project2-integration
- queue-name: integration
- - name: mutex-one
- mutex: test-mutex
- - name: mutex-two
- mutex: test-mutex
- - name: project1-merge
- tags:
- - project1
- - extratag
-
-projects:
- - name: org/project
- merge-mode: cherry-pick
- check:
- - project-merge:
- - project-test1
- - project-test2
- - project-testfile
- gate:
- - project-merge:
- - project-test1
- - project-test2
- - project-testfile
- post:
- - project-post
- dup1:
- - project-test1
- dup2:
- - project-test1
-
- - name: org/project1
- check:
- - project1-merge:
- - project1-test1
- - project1-test2
- - project1-project2-integration
- gate:
- - project1-merge:
- - project1-test1
- - project1-test2
- - project1-project2-integration
- post:
- - project1-post
-
- - name: org/project2
- check:
- - project2-merge:
- - project2-test1
- - project2-test2
- - project1-project2-integration
- gate:
- - project2-merge:
- - project2-test1
- - project2-test2
- - project1-project2-integration
- post:
- - project2-post
-
- - name: org/project3
- check:
- - project3-merge:
- - project3-test1
- - project3-test2
- - project1-project2-integration
- gate:
- - project3-merge:
- - project3-test1
- - project3-test2
- - project1-project2-integration
- post:
- - project3-post
-
- - name: org/nonvoting-project
- check:
- - nonvoting-project-merge:
- - nonvoting-project-test1
- - nonvoting-project-test2
- gate:
- - nonvoting-project-merge:
- - nonvoting-project-test1
- - nonvoting-project-test2
- post:
- - nonvoting-project-post
-
- - name: org/conflict-project
- conflict:
- - conflict-project-merge:
- - conflict-project-test1
- - conflict-project-test2
-
- - name: org/noop-project
- gate:
- - noop
-
- - name: org/experimental-project
- experimental:
- - experimental-project-test
-
- - name: org/no-jobs-project
- check:
- - project-testfile
diff --git a/tests/fixtures/layouts/crd-github.yaml b/tests/fixtures/layouts/crd-github.yaml
index 6ef881f9b..bc938dec3 100644
--- a/tests/fixtures/layouts/crd-github.yaml
+++ b/tests/fixtures/layouts/crd-github.yaml
@@ -70,15 +70,15 @@
- project:
name: org/project3
+ queue: cogated
gate:
- queue: cogated
jobs:
- project3-test
- project:
name: org/project4
+ queue: cogated
gate:
- queue: cogated
jobs:
- project4-test
diff --git a/tests/fixtures/layouts/crd-gitlab.yaml b/tests/fixtures/layouts/crd-gitlab.yaml
index 210390b93..1884e4026 100644
--- a/tests/fixtures/layouts/crd-gitlab.yaml
+++ b/tests/fixtures/layouts/crd-gitlab.yaml
@@ -55,14 +55,14 @@
- project:
name: org/project3
+ queue: cogated
gate:
- queue: cogated
jobs:
- project3-test
- project:
name: org/project4
+ queue: cogated
gate:
- queue: cogated
jobs:
- - project4-test \ No newline at end of file
+ - project4-test
diff --git a/tests/fixtures/layouts/crd-pagure.yaml b/tests/fixtures/layouts/crd-pagure.yaml
index e0828aeeb..79e041f9a 100644
--- a/tests/fixtures/layouts/crd-pagure.yaml
+++ b/tests/fixtures/layouts/crd-pagure.yaml
@@ -52,14 +52,14 @@
- project:
name: org/project3
+ queue: cogated
gate:
- queue: cogated
jobs:
- project3-test
- project:
name: org/project4
+ queue: cogated
gate:
- queue: cogated
jobs:
- project4-test
diff --git a/tests/fixtures/layouts/provides-requires-two-jobs.yaml b/tests/fixtures/layouts/provides-requires-two-jobs.yaml
index 9d1008752..7568c31d8 100644
--- a/tests/fixtures/layouts/provides-requires-two-jobs.yaml
+++ b/tests/fixtures/layouts/provides-requires-two-jobs.yaml
@@ -51,11 +51,11 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- image-builder
gate:
- queue: integrated
jobs:
- image-builder
- image-user:
@@ -63,10 +63,10 @@
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- image-user
gate:
- queue: integrated
jobs:
- image-user
diff --git a/tests/fixtures/layouts/provides-requires.yaml b/tests/fixtures/layouts/provides-requires.yaml
index 17b17bab1..aeb959bfd 100644
--- a/tests/fixtures/layouts/provides-requires.yaml
+++ b/tests/fixtures/layouts/provides-requires.yaml
@@ -72,18 +72,19 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- image-builder
- library-builder
- hold
gate:
- queue: integrated
jobs:
- image-builder
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- image-user
@@ -91,7 +92,6 @@
- library-user2
- hold
gate:
- queue: integrated
jobs:
- image-user
diff --git a/tests/fixtures/layouts/regex-queue.yaml b/tests/fixtures/layouts/regex-queue.yaml
index 0bacbec0e..5650e2611 100644
--- a/tests/fixtures/layouts/regex-queue.yaml
+++ b/tests/fixtures/layouts/regex-queue.yaml
@@ -10,8 +10,8 @@
- project:
name: ^.*$
+ queue: integrated
gate:
- queue: integrated
jobs:
- base
diff --git a/tests/fixtures/layouts/regex-template-queue.yaml b/tests/fixtures/layouts/regex-template-queue.yaml
index f809e0e43..38eb596ea 100644
--- a/tests/fixtures/layouts/regex-template-queue.yaml
+++ b/tests/fixtures/layouts/regex-template-queue.yaml
@@ -10,8 +10,8 @@
- project-template:
name: integrated-jobs
+ queue: integrated
gate:
- queue: integrated
jobs:
- base
diff --git a/tests/fixtures/layouts/repo-checkout-four-project.yaml b/tests/fixtures/layouts/repo-checkout-four-project.yaml
index 11212e85f..433e6f584 100644
--- a/tests/fixtures/layouts/repo-checkout-four-project.yaml
+++ b/tests/fixtures/layouts/repo-checkout-four-project.yaml
@@ -48,40 +48,40 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project3
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project4
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
diff --git a/tests/fixtures/layouts/repo-checkout-six-project.yaml b/tests/fixtures/layouts/repo-checkout-six-project.yaml
index 48786654b..92f2f0a20 100644
--- a/tests/fixtures/layouts/repo-checkout-six-project.yaml
+++ b/tests/fixtures/layouts/repo-checkout-six-project.yaml
@@ -51,60 +51,60 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project3
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project4
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project5
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project6
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
diff --git a/tests/fixtures/layouts/repo-checkout-two-project.yaml b/tests/fixtures/layouts/repo-checkout-two-project.yaml
index 64c6ee943..6cf66a994 100644
--- a/tests/fixtures/layouts/repo-checkout-two-project.yaml
+++ b/tests/fixtures/layouts/repo-checkout-two-project.yaml
@@ -46,20 +46,20 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
diff --git a/tests/fixtures/layouts/serial.yaml b/tests/fixtures/layouts/serial.yaml
index 5a744ce82..70d16bd1a 100644
--- a/tests/fixtures/layouts/serial.yaml
+++ b/tests/fixtures/layouts/serial.yaml
@@ -35,14 +35,14 @@
- project:
name: org/project1
+ queue: shared
deploy:
- queue: shared
jobs:
- job1
- project:
name: org/project2
+ queue: shared
deploy:
- queue: shared
jobs:
- job1
diff --git a/tests/fixtures/layouts/template-queue.yaml b/tests/fixtures/layouts/template-queue.yaml
index 407956feb..bc841e38b 100644
--- a/tests/fixtures/layouts/template-queue.yaml
+++ b/tests/fixtures/layouts/template-queue.yaml
@@ -10,8 +10,8 @@
- project-template:
name: integrated-jobs
+ queue: integrated
gate:
- queue: integrated
jobs:
- base
diff --git a/tests/fixtures/layouts/three-projects.yaml b/tests/fixtures/layouts/three-projects.yaml
index 33e81aca5..2db072eda 100644
--- a/tests/fixtures/layouts/three-projects.yaml
+++ b/tests/fixtures/layouts/three-projects.yaml
@@ -56,6 +56,7 @@
- project:
name: org/project1
+ queue: integrated
check:
jobs:
- project-merge
@@ -66,7 +67,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -78,6 +78,7 @@
- project:
name: org/project2
+ queue: integrated
check:
jobs:
- project-merge
@@ -88,7 +89,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
@@ -100,6 +100,7 @@
- project:
name: org/project3
+ queue: integrated
check:
jobs:
- project-merge
@@ -110,7 +111,6 @@
- project1-project2-integration:
dependencies: project-merge
gate:
- queue: integrated
jobs:
- project-merge
- project-test1:
diff --git a/tests/fixtures/layouts/two-projects-integrated.yaml b/tests/fixtures/layouts/two-projects-integrated.yaml
index 89302f62a..7e3a07a00 100644
--- a/tests/fixtures/layouts/two-projects-integrated.yaml
+++ b/tests/fixtures/layouts/two-projects-integrated.yaml
@@ -79,11 +79,10 @@
- project:
name: org/project2
+ queue: integrated
check:
- queue: integrated
jobs:
- integration
gate:
- queue: integrated
jobs:
- integration
diff --git a/tests/unit/test_circular_dependencies.py b/tests/unit/test_circular_dependencies.py
index 292941c13..6060855cd 100644
--- a/tests/unit/test_circular_dependencies.py
+++ b/tests/unit/test_circular_dependencies.py
@@ -1077,11 +1077,11 @@ class TestGerritCircularDependencies(ZuulTestCase):
use_job = textwrap.dedent(
"""
- project:
+ queue: integrated
check:
jobs:
- new-job
gate:
- queue: integrated
jobs:
- new-job
""")
@@ -1134,11 +1134,11 @@ class TestGerritCircularDependencies(ZuulTestCase):
test_var: pass
- project:
+ queue: integrated
check:
jobs:
- project-vars-job
gate:
- queue: integrated
jobs:
- project-vars-job
""")
@@ -1330,11 +1330,11 @@ class TestGerritCircularDependencies(ZuulTestCase):
test_var: pass
- project:
+ queue: integrated
check:
jobs:
- project-vars-job
gate:
- queue: integrated
jobs:
- project-vars-job
""")
diff --git a/tests/unit/test_web.py b/tests/unit/test_web.py
index b15c01a69..616b776b2 100644
--- a/tests/unit/test_web.py
+++ b/tests/unit/test_web.py
@@ -776,14 +776,11 @@ class TestWeb(BaseTestWeb):
'merge_mode': 'merge-resolve',
'pipelines': [{
'name': 'check',
- 'queue_name': None,
'jobs': jobs,
}, {
'name': 'gate',
- 'queue_name': 'integrated-overridden',
'jobs': jobs,
}, {'name': 'post',
- 'queue_name': None,
'jobs': [[
{'abstract': False,
'ansible_version': None,
diff --git a/zuul/configloader.py b/zuul/configloader.py
index 85a28c828..0327f1796 100644
--- a/zuul/configloader.py
+++ b/zuul/configloader.py
@@ -981,8 +981,6 @@ class ProjectTemplateParser(object):
job_list = [vs.Any(str, job)]
pipeline_contents = {
- # TODO(tobiash): Remove pipeline specific queue after deprecation
- 'queue': str,
'debug': bool,
'fail-fast': bool,
'jobs': job_list
@@ -1014,8 +1012,6 @@ class ProjectTemplateParser(object):
continue
project_pipeline = model.ProjectPipelineConfig()
project_template.pipelines[pipeline_name] = project_pipeline
- # TODO(tobiash): Remove pipeline specific queue after deprecation
- project_pipeline.queue_name = conf_pipeline.get('queue')
project_pipeline.debug = conf_pipeline.get('debug')
project_pipeline.fail_fast = conf_pipeline.get(
'fail-fast')
@@ -1070,8 +1066,6 @@ class ProjectParser(object):
job_list = [vs.Any(str, job)]
pipeline_contents = {
- # TODO(tobiash): Remove pipeline specific queue after deprecation
- 'queue': str,
'debug': bool,
'fail-fast': bool,
'jobs': job_list
diff --git a/zuul/manager/__init__.py b/zuul/manager/__init__.py
index 637d31d9f..dcaea5283 100644
--- a/zuul/manager/__init__.py
+++ b/zuul/manager/__init__.py
@@ -133,26 +133,19 @@ class PipelineManager(metaclass=ABCMeta):
for project_name, project_configs in layout_project_configs.items():
(trusted, project) = tenant.getProject(project_name)
- project_queue_name = None
- pipeline_queue_name = None
+ queue_name = None
project_in_pipeline = False
for project_config in layout.getAllProjectConfigs(project_name):
project_pipeline_config = project_config.pipelines.get(
self.pipeline.name)
- if not project_queue_name:
- project_queue_name = project_config.queue_name
+ if not queue_name:
+ queue_name = project_config.queue_name
if project_pipeline_config is None:
continue
project_in_pipeline = True
- if not pipeline_queue_name:
- pipeline_queue_name = project_pipeline_config.queue_name
if not project_in_pipeline:
continue
- # Note: we currently support queue name per pipeline and per
- # project while project has precedence.
- queue_name = project_queue_name or pipeline_queue_name
-
if not queue_name:
continue
if queue_name in change_queues:
@@ -658,13 +651,12 @@ class PipelineManager(metaclass=ABCMeta):
def getQueueConfig(self, project):
layout = self.pipeline.tenant.layout
- pipeline_queue_name = None
- project_queue_name = None
+ queue_name = None
for project_config in layout.getAllProjectConfigs(
project.canonical_name
):
- if not project_queue_name:
- project_queue_name = project_config.queue_name
+ if not queue_name:
+ queue_name = project_config.queue_name
project_pipeline_config = project_config.pipelines.get(
self.pipeline.name)
@@ -672,16 +664,6 @@ class PipelineManager(metaclass=ABCMeta):
if project_pipeline_config is None:
continue
- # TODO(simonw): Remove pipeline_queue_name after deprecation
- if not pipeline_queue_name:
- pipeline_queue_name = project_pipeline_config.queue_name
-
- # Note: we currently support queue name per pipeline and per
- # project while project has precedence.
- queue_name = project_queue_name or pipeline_queue_name
- if queue_name is None:
- return None
-
return layout.queues.get(queue_name)
def canProcessCycle(self, project):
diff --git a/zuul/manager/shared.py b/zuul/manager/shared.py
index db8735289..4be107db9 100644
--- a/zuul/manager/shared.py
+++ b/zuul/manager/shared.py
@@ -71,27 +71,19 @@ class SharedQueuePipelineManager(PipelineManager, metaclass=ABCMeta):
for project_name, project_configs in layout_project_configs.items():
(trusted, project) = tenant.getProject(project_name)
- project_queue_name = None
- pipeline_queue_name = None
+ queue_name = None
project_in_pipeline = False
for project_config in layout.getAllProjectConfigs(project_name):
project_pipeline_config = project_config.pipelines.get(
self.pipeline.name)
- if not project_queue_name:
- project_queue_name = project_config.queue_name
+ if not queue_name:
+ queue_name = project_config.queue_name
if project_pipeline_config is None:
continue
project_in_pipeline = True
- # TODO(tobiash): Remove pipeline_queue_name after deprecation
- if not pipeline_queue_name:
- pipeline_queue_name = project_pipeline_config.queue_name
if not project_in_pipeline:
continue
- # Note: we currently support queue name per pipeline and per
- # project while project has precedence.
- queue_name = project_queue_name or pipeline_queue_name
-
# Check if the queue is global or per branch
queue = layout.queues.get(queue_name)
per_branch = queue and queue.per_branch
diff --git a/zuul/model.py b/zuul/model.py
index 0d889f557..1b0395aee 100644
--- a/zuul/model.py
+++ b/zuul/model.py
@@ -6619,7 +6619,6 @@ class ProjectPipelineConfig(ConfigObject):
def __init__(self):
super(ProjectPipelineConfig, self).__init__()
self.job_list = JobList()
- self.queue_name = None
self.debug = False
self.debug_messages = []
self.fail_fast = None
@@ -6631,8 +6630,6 @@ class ProjectPipelineConfig(ConfigObject):
def update(self, other):
if not isinstance(other, ProjectPipelineConfig):
raise Exception("Unable to update from %s" % (other,))
- if self.queue_name is None:
- self.queue_name = other.queue_name
if other.debug:
self.debug = other.debug
if self.fail_fast is None:
@@ -6647,7 +6644,6 @@ class ProjectPipelineConfig(ConfigObject):
def toDict(self):
d = {}
- d['queue_name'] = self.queue_name
return d