summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Replace openstack.org git:// URLs with https://Ian Wienand2019-03-242-4/+4
| | | | | | | | | | | | | | | | | This is a mechanically generated change to replace openstack.org git:// URLs with https:// equivalents. This is in aid of a planned future move of the git hosting infrastructure to a self-hosted instance of gitea (https://gitea.io), which does not support the git wire protocol at this stage. This update should result in no functional change. For more information see the thread at http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html Change-Id: I250cbe6699b73d7ddeb3c6e2b875ce8e439276be
* Allow jjb to be called as a moduleSorin Sbarnea2018-06-191-0/+8
| | | | | | | | | | | | | | Enable us to do `python -m jenkins_jobs ...` which avoids the need to install executable in user path. Tests cli execution on each supported python version. Uses default encoding workaround only on python2, where is needed. Change-Id: I4cd79fd51a8309d532e0e76723ecfbbda3e1ca6f Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* Remove dead tool jenkins-jobs.pyTim Burke2016-09-261-25/+0
| | | | | | | | | | Looks like the jenkins_jobs/cmd.py module it references was removed back in December, but the tool slipped by. Since it's been nine months and no one seems to have noticed, just remove it instead of updating it to use jenkins_jobs/cli/entry.py Change-Id: I9a888036f280addc7c57d649d673c24bf36e62d7 Related-Change: Ia0d3a062de16c4be10863372c753f4ba8480e620
* Remove obsolete tools scriptDarragh Bailey2016-06-061-62/+0
| | | | Change-Id: Ia578a43b761ee1d6129be3811976bdd407ca2220
* Allow testing non-default configs with complex definitionsDarragh Bailey2016-05-262-0/+92
| | | | | | | | | | | | | | | | Ensure we can provide multiple configurations to exercise different behaviour within modules with complex job definition inputs. This ensures that behaviour can be put behind config options, while providing a platform to exercise these non-default values with the full complexity of the OpenStack JJB definitions. Since config options may result in different output, success is determined by simply succeeding in executing JJB without error. For additional review, any differences are outputted. Change-Id: Ifd2b48ae85fbe7b5a2858dd426137c735c6ccd02
* Copy config files treeDarragh Bailey2015-11-101-2/+2
| | | | | | | | | Make it easier for a complex organisation of configuration files for testing, since JJB supports recursive searching and storing of scripts in separate files to be inlined automatically using the '!include*' tags. Change-Id: I858103a2dae4aebdfbd9762b33858f4f84016350
* Change zuul-cloner parametersKhai Do2015-06-152-1/+4
| | | | | | | | | Current clone works but would be better to pass just 'git://git.openstack.org' as the zuul-cloner base so it will be more convienant to update if needed. Added a clonemap to clone the project into the current directory. Change-Id: If407ffd47678d260645b205b876d904da7e98218
* Fall back to git clone if zuul-cloner not availableDarragh Bailey2015-06-091-1/+6
| | | | | | | | Allow running of the compare test on developer workstations where it is less common for zuul-cloner to be present by falling back to using git clone with a depth of 1 if zuul-cloner is not available. Change-Id: Idedc726bea12fb8862cd9574d9ce17b29011c15f
* Fix jenkins-job-builder-compare-xml job by using zuul-clonerKhai Do2015-03-251-1/+1
| | | | | | | | | | | | | | The script in jenkins-job-builder-compare-xml job failed due to git clone executing a shallow clone: Cloning into 'project-config'... fatal: The remote end hung up unexpectedly fatal: protocol error: bad pack header This can be fixed by just removing the '/p/' from the url but we would rather use the zuul-cloner because it can take advantage of the local git cache on disk thus allowing for more efficient cloning. Change-Id: I05f1c928a15cf5e791a95a01975e8aba78f4953f
* Switch to new project-config repoDarragh Bailey2014-09-301-3/+3
| | | | | | | | Change the comparison script to use the new project-config repo created due to a reorganization of the puppet modules and JJB config used for openstack infrastructure. Change-Id: Icbe8ddc7fcc6af9cc11d664e01ab6fd52ef8d288
* Migrate to pbrAntoine Musso2014-03-142-11/+0
| | | | | | | | | | | | | | | | I found out pbr to be a bit nicer when it comes to edit files. AFAIK most OpenStack project are using it, so I guess Jenkins Job Builder can be pbr based as well.o Basically: * moved everything from setup.py to setup.cfg * sorted entries while at it * require pbr module using the same version limits used by Zuul * enable pbr.warnerrors * testenv.usedevelop = True or build_sphinx can not find entry points * move requirement files to root of repository (we had them in /tools/) Change-Id: I44ee8910ad4fe4eebb7337951efa31baff4281fe
* Pin Sphinx to <1.2James E. Blair2013-12-101-1/+1
| | | | | | | | | | | | 1.2 was just released and has a bug that causes builds to fail with the error: error: 'source_dir' must be a directory name (got `...doc/source`) See: http://bugs.python.org/issue19570 and: https://bitbucket.org/birkenfeld/sphinx/pull-request/193/builddoc-shouldnt-fail-on-unicode-paths/diff Change-Id: I902db0d94200692f6737827645030be82bfb9e62
* Add usage info to JJB documentationKhai Do2013-09-091-0/+1
| | | | | | | | | Display the usage info for JJB and add it to the sphinx docs. Fixes bug 1221944 Change-Id: I5b36cca7a836b009bfb0ca880abbccd4477de307
* Add python26 multiline string assertion back.Clark Boylan2013-07-241-0/+1
| | | | | | | | | The assertMultiline equal was removed for assertEqual to be python26 friendly. Testtools has a matcher that provides similar functionality that is python26 compatible. Use testtools instead of unittest for this functionality. Remove use of unittest.main(). Change-Id: I348b0ee0192d3164084c20d9356e69f29e1cb86c
* Tests: Use a testscenarios for running tests.Arnaud Fabre2013-07-191-1/+1
| | | | | | | | | | | Instead of using load_tests to build a test suite out of a single test case, rely on testscenarios. This library aims at running the same test with different input data (`scenarios'). Some code is moved inside the test case to reduce the number of scenario parameters (previously fixtures). Change-Id: Iedb4cb3ad6341a9b397fa305b1ce2b329b6fdc15
* Tests for publishersAntoine Musso2013-07-191-0/+5
| | | | | | | | | | | | | | | | | I am trying to build up a very basic testing framework so we can tests our publishers. The idea is to provide a YAML input file and expected XML output, run the parser on the YAML file and compares its output with the fixture XML. That test suite should speed up development of new publishers. TestCaseModulePublisher is declared inside a function so that unittest discovery does not consider it a usable test directly. load_test is responsible for instantiating the test suite. Change-Id: If3260113eb1337ac47c3883b11c600e5a595dae3 [fabre.arnaud@gmail.com: fixed some runtime errors] Signed-off-by: Arnaud Fabre <fabre.arnaud@gmail.com>
* Add jenkins-jobs command line tool.James E. Blair2013-04-081-0/+25
| | | | | | | | | | | | So that jenkins-jobs can be easily run for testing from the source dir without installation. Change-Id: Iabba59ad32ccd4b79eb8934e53c6d747110a06b0 Reviewed-on: https://review.openstack.org/26259 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
* Stop referring to openstack/openstack-ci-puppet.Clark Boylan2013-03-011-1/+1
| | | | | | | | | | | | | The openstack/openstack-ci-puppet repo moved and became openstack-infra/config. Remove references to openstack-ci-puppet and replace them with references to openstack-infra/config. Change-Id: I75e7797995b894b6053901dbcfa351404048ea7c Reviewed-on: https://review.openstack.org/23227 Reviewed-by: Khai Do <zaro0508@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Remove setuptools-git from setup.py.James E. Blair2013-01-291-0/+1
| | | | | | | | | | Put it in test-requires so it's there when we build a tarball. Change-Id: I8a5adec74beeb397e71e17030338a8051fe6fb0b Reviewed-on: https://review.openstack.org/19885 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
* Adding ability to specify the JDK to use. This change moves the top level ↵william.soula2012-12-191-3/+3
| | | | | | | | | | | | config from builder.py into a separate file called general.py. This change also moves the assigned node work as well as the log rotator work into the general.py file. This change also adds the ability to specify the JDK for the build to use. Change-Id: I0e2b43d889593e01d6ad0761960c93472990af1e Reviewed-on: https://review.openstack.org/16983 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
* Do not output XML if job name not specified ('pipeline', 'trigger-builds')Manuel Desbonnet2012-10-301-0/+62
| | | | | | | | | | | | | | | | | | | | Done in order to enable specifying build pipelines at the project level. Pipelines are built using the 'pipeline' plugin or the 'trigger-builds' plugin. The downstream job to be executed is specified at the project level, and substituted into the template. Ignoring definitions where the downstream job is blank allows the pipeline to be easily terminated. Also adding a samples/ directory, which currently contains an example of pipeline creation, together with a new tools/run-compare-xml-samples.sh to run the before/after test on the samples. Change-Id: Icc324d1485e22db7824ad784890db48eb3e48f8f Reviewed-on: https://review.openstack.org/13706 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Add documentation.James E. Blair2012-09-172-0/+32
| | | | | | | | | | | | | | | | Move test.sh to the tools directory. Move parameters and notifications to their own modules; even though they are implemented as Jenkins properties, they make more sense as separate entities in the job builder, because that's they way they are specified in the YAML. All three modules that touch the properties xml object know how to create it if it's missing. Change-Id: I4b42ff10a93fd3ed98f632b58e47f3e0e45086d6 Reviewed-on: https://review.openstack.org/12741 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Simplify the xml test paths.James E. Blair2012-09-051-5/+9
| | | | | | | | | | | Make it easier to invoke the tox environments from another project (eg, openstack-ci-puppet). Change-Id: I88305c8edb79bb6e944eb35f5e39c84827807f11 Reviewed-on: https://review.openstack.org/12451 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Fix early exit from compare test.James E. Blair2012-09-011-1/+1
| | | | | | | | Change-Id: I5a871026f2bf7757b7e3e46278391b41e90c5674 Reviewed-on: https://review.openstack.org/12289 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Add test to determine whether XML output has changed.James E. Blair2012-09-012-0/+58
Change-Id: I5e0b76e195a1b412d180484ce1ddd3e9159d7779 Reviewed-on: https://review.openstack.org/12286 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins