Add support for tenants in _areAllBuildsComplete().
Story: #2000773
Change-Id: Ie93cb79cc75405bb90cf4d1bae5e0fb00214b975
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Create the 'mp' branch for org/project2, since we no longer create
them in init_repo().
Change-Id: I33eb0cd843a9cf8df385b2ecd4f44ec5adc70e34
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This one was a little tricky, we needed to add
hold_jobs_in_build = True to the test so we can access the jobdir.
This is so we can get access to the git repos, each job creates now.
Change-Id: I53c2f6fec8d9d04aa11a8cc13ec5f89a28e4997c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We also had to update the test_independent_queues test to reflect the
changes made to the layout file.
Story: #2000773
Change-Id: I4755776c1badfdbb669a97747a4ceaccde7ffa2b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We need to pass the project name to self.getJobFromHistory() since
project-merge runs on multiple jobs now.
Change-Id: If999452dcde9c1f2750188e4bff559b2ee6257e8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Update the unit test to use the new tenant_config_file for zuulv3.
Change-Id: I5fc2f56647b3e6e05f68607c584d8f594f24aeee
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Since it is possible for createJobTree() to have an unknown project,
we need to properly hand that for project_configs().
Change-Id: I29f10110027c24e9a47a371a3b608262137d5b60
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This required switching to the new getJobTreeForJob() function to find
the job.
Change-Id: I3e918b88e27f1174879f1d47d36ffcf492b9208a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Update configuration and tenant info for zuulv3.
Story: #2000773
Change-Id: I22ac419a7f5a7da26bef06930b64a062166d84c3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Updated updateConfigLayout() to support zuulv3 syntax.
Story: #2000773
Change-Id: Ifd19604d42d3df90a9154e62c8dfbaee9931eeba
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We no longer are support parameter functions and includes for zuulv3.
However, we may reclaim includes in the future so we can support raw
inclusions, so everything does not have to be in one file.
Story: #2000784
Change-Id: I58608ae564a890bca19eef63d9ae73fa388adf39
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Here we are adding tenant support and re-enabling unit tests for
enqueue and promote.
Change-Id: I384128b9b14be1dc3c4a0c914dcaf13d30f1792f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Today, if a job is aborted, zuul will launch said job until success /
failure. If the job continues to abort, it will loop forever. As a
result, we now added the ability to limit this. By default we'll try
to relaunch an aborted job a total of 3 times, before RETRY_LIMIT is
returned as the result.
Change-Id: Ie26fdc29c07430ebfb3df8be8ac1786d63d7e0fe
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We also need to account for unordered messages to assert against.
Change-Id: Id8bf3442055c145cc1fdbe73b6b0aec63a181432
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Add ordered=True, ince this testing multiple pipelines with no
relationship, i don't think we actually care about ordering.
Change-Id: Ib05d682f24eb9c81f0a435b065e7e9d31135e118
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Update FakeGearmanServer with new gear syntax for job names.
Change-Id: If3c4f8e66fa11d3de81b6acbda2be68c94a2fdad
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
These are working perfectly, and can be enabled now.
Change-Id: I2aefabfd627ba3c8fbccea5ddb8e6641fd192f96
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Update tests twith new zuulv3 syntax for tenants.
Change-Id: Icaca7c7a894e8b8f69705a1381d5ceb846e892c1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
By updating the single-tenant configuration, these existing tests can
be added back into service.
Change-Id: Ia4bdbd9853eb1709027f4d6f2d978590bd899409
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
There is a slight different in the zuulv3 syntax, we appear to lose
the ability to define template variables. The zuul configuration has
been updated accordingly.
Change-Id: I060eab9df841ce7ebcc6ae367e2122c5e7c01f55
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Create a new configuration project specific to one-job-project. Once
created using the new zuulv3 syntax, the test just worked.
Change-Id: Iba61970ddb2aafbebd0c326dce4b85ae72e35f02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Expose the ability to refresh a change in zuul/connection/gerrit.py
too, which is needed for our unit testing.
Change-Id: Iefd09d9b8deef563299e0f209d95e25b61aa4c1e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This is basically testing the case where Zuul wants to tell Jenkins to
run a job, but Jenkins doesn't know about it. This doesn't really
have an analog in a Zuul v3 world, where we no longer have that
division. Adding a job to a pipeline with no job definition is really
just a configuration error that we should catch in validation.
Change-Id: I8f9cc063e0bd6472fbc78740279f51280f34ea64
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Here we enabled our nonvoting pipeline test again. It seems we also
needed to create a check pipeline noop job, otherwise our pipeline
queues (for check) would not be empty.
Change-Id: I1269e8de632f847dbacbde187d609bbab1ac8179
Signed-off-by: Paul Belanger <pabelanger@redhat.com>