1404 Commits

Author SHA1 Message Date
James E. Blair
a3c03edfcb Add roadmap to README
Change-Id: I80431df3341206284df04d7ab5f70fe91339fe61
2016-12-06 10:55:55 -08:00
James E. Blair
d5dcaa1313 Update storyboard links in README
Change-Id: I1948f661e8ce1d2f2386d55b8d31c876ba3ac191
2016-12-05 13:39:30 -08:00
Jenkins
4c5ac4e95a Merge "Add test for variant override" into feature/zuulv3 2016-12-05 14:15:48 +00:00
Jenkins
7f661e9edb Merge "Correct logic problem with job trees" into feature/zuulv3 2016-12-05 14:14:55 +00:00
Jenkins
2e7f9d7057 Merge "Re-enable test_success_pattern as test_success_url" into feature/zuulv3 2016-12-02 00:10:07 +00:00
Clint Byrum
8549360d5e Add test for variant override
This demonstrates that the referenced variant override bug is fixed.

Story: 2000804
Task: 3387

Change-Id: I34d6f735b1ca267d2691608f839deae6e1a111b1
2016-12-01 14:48:39 -08:00
Jenkins
060ffe22f3 Merge "Define the internal noop job" into feature/zuulv3 2016-12-01 11:14:12 +00:00
Jenkins
38a1de5ec9 Merge "Don't merge post-merge items" into feature/zuulv3 2016-12-01 11:10:52 +00:00
James E. Blair
6e85c2b5ae Correct logic problem with job trees
When freezing a job tree for a change, we apply each matching
job definition in order to create the final, frozen version of
the job for the change.  We would do this even if no jobs other
than the one defined in the project-pipeline job tree matched.
This would mean that a job whose global definition had a
restriction such as irrelevant-files, skip-if, or branch might
be run desipite that restriction if the entry in the
project-pipeline job tree for that job did not include a similar
restriction.  Those entries are meant to modify jobs defined
elsewhere (possibly adding restrictions of their own) but are not
intended to *broaden* existing jobs, or even fully define them.

To correct this, ensure that the change matches not only the
entry in the project-pipeline job tree, but also at least one
globally defined variant of the job in question.

Change-Id: I36585b8cacfe3c20260dc754a6f246842cb0fdc8
Story: 2000804
Task: 3387
2016-11-30 13:03:14 -08:00
Jenkins
b4947125f8 Merge "Enable test_post*" into feature/zuulv3 2016-11-30 18:16:19 +00:00
James E. Blair
0c9e4f3e99 Don't merge post-merge items
In all cases, the launcher-merger updates the repos involved in a
job before running it.  If there are pre-merge changes, it then
merges those changes into the repos.  If the job does not involve
pre-merge changes, then nothing further needs to happen.  Avoid
attempting to merge changes which are already merged in this case.

Change-Id: Ie0c0d258b4edad4afc3b569f8ea222523bc769c1
2016-11-30 10:03:27 -08:00
Adam Gandelman
94a60063b7 Re-enable test_success_pattern as test_success_url
This re-enables test_success_pattern.  This job parameter has been renamed to
success-url and the test has been reworked and renamed accordingly.

Change-Id: I4ef00923ed916d08e4edb3a24fcb2e25bca823b0
Story: 2000773
Task: 3380
2016-11-30 09:15:39 -08:00
James E. Blair
fef88ec289 Define the internal noop job
So that we can minimize the special casing of the internal 'noop'
job, automatically instantiate it in each layout.

Change-Id: Iee4111e481bd604f56c7791f3c35fd30e9741528
2016-11-30 08:39:43 -08:00
Jenkins
250662eca8 Merge "Re-enable requirement-email tests" into feature/zuulv3 2016-11-30 14:12:47 +00:00
Jenkins
e27862ab27 Merge "Re-enable requirement-username tests" into feature/zuulv3 2016-11-30 14:12:40 +00:00
Jenkins
c9b20ebc6e Merge "Re-enable requirement-older-than tests" into feature/zuulv3 2016-11-30 14:12:34 +00:00
Jenkins
b24bf2fdf5 Merge "Re-enable requirement-newer-than tests" into feature/zuulv3 2016-11-30 14:12:22 +00:00
Jenkins
2ce743aa6f Merge "Merge branch 'master' into workingv3" into feature/zuulv3 2016-11-30 13:52:01 +00:00
Jenkins
a59b3916fe Merge "Re-model the job auth" into feature/zuulv3 2016-11-30 13:20:50 +00:00
Adam Gandelman
c5e4f1d262 Enable test_post*
This requires some updating of how merger data construction gets
handled between Refs and Changes.

Change-Id: Icd81a95565ab137b98d6a8ac52e262487d412534
Story: 2000773
Task: 3389
2016-11-29 15:11:24 -08:00
Jamie Lennox
90cb6b9657 Re-enable requirement-email tests
Re-enable the requirement-email layout tests that ensure a specific user
within a user with a specific email approved a change.

Change-Id: Ic94ff3570fd88fa7293b399b2d686941fe85d687
2016-11-29 16:28:33 +11:00
Jamie Lennox
db3b4e0dbf Re-enable requirement-username tests
Re-enable the requirement-username layout tests that ensure a specific
user or regex approved a test.

Change-Id: Idbe86bbb79977c3678c82c7e38f4dfe74b746088
2016-11-29 16:21:18 +11:00
Jamie Lennox
8faa71e1e4 Re-enable requirement-older-than tests
Re-enable the requirement-older-than tests that ensure a specific user has had
an approve for a certain amount of time.

Change-Id: Id733f824311bbc752251d0f6406f49917c23bc13
2016-11-29 16:13:36 +11:00
Jamie Lennox
b59a73f6e9 Re-enable requirement-newer-than tests
Re-enable the requirement-newer-than layout tests that ensure a specific
user within a specific time approved a request.

Change-Id: I8ae870257db06e3e9958e151bcf4791c87f4ec71
2016-11-29 16:04:08 +11:00
Jenkins
878ea83690 Merge "Remove includes and parameter functions" into feature/zuulv3 2016-11-28 21:18:37 +00:00
Jenkins
17aefb35e7 Merge "Add tenant support to zuul client" into feature/zuulv3 2016-11-28 21:16:46 +00:00
Jenkins
157060d49c Merge "Update webapp status json to support tenants" into feature/zuulv3 2016-11-28 21:14:57 +00:00
Jamie Lennox
ff3e0b9994 Skip individual test_requirements tests
Skip individual tests in test_requirements rather than the whole class
so we can start activating them.

Change-Id: Ie00e15fcc96509b9f6f90a2cea23ad8a805f8199
2016-11-23 10:41:07 +11:00
Joshua Hesketh
3f7def3424 Merge branch 'master' into workingv3
This includes forward-porting changes to launcher/server.py with the
exception of the pre/post playbooks changes which will be done in a
follow up commit as they have deviated.

Change-Id: I13aa229c1460b748745babe178c0a745e52f841c
2016-11-22 11:15:24 +11:00
Jenkins
0a7d3db25a Merge "Refactor skip-if tests to use irrelevant-files" into feature/zuulv3 2016-11-21 07:24:25 +00:00
Ricardo Carrillo Cruz
12c892b247 Re-model the job auth
We have decided to rename the 'password' auth to 'secrets' on the
zuulv3 spec.
The idea is that we will both encrypt the user and password using
PKCS1, also allowing to have more than one secrets.
This change modifies the model to meet new spec requirements.

Change-Id: Ief78ac27732f30b17d7995a3e2032e33e7979ca9
2016-11-18 15:38:51 +00:00
Clint Byrum
3ee39f3257 Refactor skip-if tests to use irrelevant-files
Skip-if has been removed in favor of irrelevant-files and the branch
matchers. This refactors the tests that used to be used for skip-if to
cover irrelevant-files.

There may still be need to cover the other types of matchers.

The 'test_parse_skip_if' has just been removed as it wasn't really
covering anything not also covered by the functional tests.

Change-Id: I3a4080426c4dc680ed656e18f26597e3d1b7d759
Story: 2000773
Task: 3378
2016-11-18 01:06:08 -08:00
Clint Byrum
8b2bc0cfe7 Re-enable test_failed_change_at_head_with_queue
This ensures the state of the queue, not the builds, so we cannot use
FakeBuild.hasChanges. This is unique, so there doesn't seem to be any
need to genericize the operation.

Change-Id: I13532f4038170ac4539f1d0131dd4a06e6ffd8ac
Story: 2000773
Task: 3377
2016-11-16 16:28:50 -08:00
Clark Boylan
63a595bae3 Don't retry when using synchronize module
There is a bug (https://github.com/ansible/ansible/issues/18281) in the
ansible synchronize module that causes any retry attempt at
synchronizing to fail because the paths get munged resulting in invalid
paths. Unfortunately this also means that the error message we get is
not for the first failed sync attempt but for the last making it hard to
debug why things failed in the first place.

Address this by not attempting to retry until ansible is fixed. This way
we get accurate error messages more quickly (as we don't retry over and
over and generate a bad error message at the end).

Change-Id: I545c44b11f37576edc8768a3ed78962ff870995f
2016-11-16 11:49:08 -08:00
Jenkins
61c9123d3f Merge "Refactor test_zuul_refs and FakeBuild.hasChanges" into feature/zuulv3 2016-11-16 16:42:42 +00:00
Clint Byrum
3343e3e7b4 Refactor test_zuul_refs and FakeBuild.hasChanges
In re-enabling test_zuul_refs and refactoring it to use
FakeBuild.hasChanges, a weakness was discovered in hasChanges where it
would not check the repositories of all the changes one is looking for.

After fixing that, the test passes and others should be able to be
refactored in the same way.

Change-Id: Iaf647412d2518c079c8b42ed670919f4e8ca0b63
Story: 2000773
Task: 3296
2016-11-16 00:20:17 -08:00
Jenkins
92b2602c26 Merge "Add attempts logic for jobs" 2016-11-15 16:00:09 +00:00
Paul Belanger
6349d1511a Update webapp status json to support tenants
Now that zuul is supports multi tenants, we need to update our json
too. Also enable unit tests for it too.

Change-Id: I8dbac9090aab705aa32d4af3c9995b37e96174b6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 16:00:11 -05:00
Paul Belanger
0e155e255e Re-enable test_crd_cycle_join test
Update syntax for getChange().

Change-Id: Id1766c5b15e5c4969a6593b48fd77a0a0aa272a2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 15:31:12 -05:00
Paul Belanger
debd7a7dbe Re-enable test_noop_job test
Add support for tenants in _areAllBuildsComplete().

Story: #2000773

Change-Id: Ie93cb79cc75405bb90cf4d1bae5e0fb00214b975
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 15:31:12 -05:00
Paul Belanger
6379db1811 Re-enable test_crd_branch test
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>
2016-11-14 15:31:12 -05:00
Paul Belanger
503bdedad6 Re-enable test_merger_repack_large_change test
Update to zuulv3 syntax.

Story: #2000773

Change-Id: I97f3215773e35d56abff315860cccf25c32f53ca
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 15:31:12 -05:00
Paul Belanger
b30342b8ae Re-enable test_crd_check job
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>
2016-11-14 15:31:12 -05:00
Paul Belanger
58bf691d4d Re-enable test_head_is_dequeued_once test
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>
2016-11-14 15:31:12 -05:00
Paul Belanger
5dccbe7649 Re-enable test_crd_gate / test_crd_multiline / test_crd_gate_reverse
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>
2016-11-14 15:31:12 -05:00
Paul Belanger
9d77f49afa Re-enable test_crd_gate_unknown / test_crd_undefined_project
These tests are working properly.

Change-Id: I50f7a41492f019a37de1188ee29a931cf065a49f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 15:31:12 -05:00
Paul Belanger
83481b360c Re-enable TestMergerRepo() class for testing
Update the unit test to use the new tenant_config_file for zuulv3.

Change-Id: I5fc2f56647b3e6e05f68607c584d8f594f24aeee
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 15:31:12 -05:00
Paul Belanger
160cb8e417 Re-enable test_crd_check_unknown test
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>
2016-11-14 15:31:12 -05:00
Paul Belanger
ce4485fdd3 Re-enable test_crd_check_reconfiguration test
Change-Id: Id4ec8918df4f0fdcb38a64fd6d60649643b4c8fa
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 15:31:12 -05:00
Paul Belanger
e22baeae1f Re-enable test_live_reconfiguration test
This required switching to the new getJobTreeForJob() function to find
the job.

Change-Id: I3e918b88e27f1174879f1d47d36ffcf492b9208a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-14 15:31:12 -05:00