summaryrefslogtreecommitdiffstats
path: root/jjb/xci
AgeCommit message (Collapse)AuthorFilesLines
2019-09-02xci: Ensure the flavor is captured in all casesFatih Degirmenci1-1/+4
Change-Id: I48ee615325002a2d3687d336b9a83a0e5637cee7 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2019-08-31xci: Fix scenario determination logicFatih Degirmenci1-6/+12
Function override_xci_flavor exits with 0 early, preventing the rest of the script and especially override_scenario function to run. This makes it impossible to verify patches that contains installer-type or deploy-scenario in commit message since the generated scenario.properties file contains only XCI_FLAVOR in it, causing verify jobs to fail determining the installer type and the scenario. See the example. https://build.opnfv.org/ci/job/xci-verify-ubuntu-virtual-master/2937/console This change removes exit 0 from override_xci_flavor and moves the call to it to after override_scenario function. JIRA: XCI-21 Change-Id: Ic7f943ba5e1562177b59a8215cd8a6f2a58db093 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2019-07-31Merge "Configure voting for verify jobs"Fatih Degirmenci1-4/+4
2019-07-29Disable post-merge jobsFatih Degirmenci1-3/+3
Jobs will be kept disabled until we bump OSA and Kubesoray versions and stabilize the deployment and testing. Change-Id: Iad208bec23a311787acf97efd560f285ecf1ea1f Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2019-07-29Configure voting for verify jobsFatih Degirmenci1-4/+4
OSH integration to XCI is ongoing but OpenSUSE jobs vote -1, slowing down the integration work. Also, bumping OSA and Kubespray would be easier while we focus on single distro to make jobs green. Voting will gradually be enabled once the basics working. Change-Id: Ic34177741efca683b4c0c1c474fc4b9d826712ec Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2019-07-10add views for remaining jenkins subprojectsDaniel Pono Takamori1-0/+6
forgot beginning a yaml and a duplication definition add apex and sfc back in sectioned-views plugin not supported by jjb so removed custom views created in prod jenkins responded to cedric's request to remove moon and netready remove views for deprecated jobs Issue: RELENG-1831 Change-Id: I39ef0aabcf8ef4f3b3a378bb242ce0a7119acc85 Signed-off-by: Daniel Takamori <dtakamori@contractor.linuxfoundation.org>
2019-06-07Get XCI_FLAVOR as parameter from the commit msgPanagiotis Karalis1-0/+40
When a new patch is pushed on releng-xci repo and the impact is not related to XCI_FLAVOR=mini, the environment preparation of CI should be done, choosing as XCI_FLAVOR noha or ha. This patch allows to get the XCI_FLAVOR parameter from commit message and specifically from xci-flavor parameter. Change-Id: Id5215e3fab1fc308435781204a6ed721a9c5a0c7 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2019-03-06xci: Fix the PDF/IDF env varsFatih Degirmenci1-6/+6
dynamic_inventory.py expects the PDF/IDF env vars in all caps. Change-Id: Ib87353b3172db1c0a333e3f2c79bb1844efeac1c Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2019-03-04xci: Disable daily jobs while troubleshooting the PODFatih Degirmenci1-2/+2
Change-Id: Iac908da495f6cc73c6201ffdd1a4367b0432b5c9 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-11-27xci: Enable daily baremetal jobsFatih Degirmenci1-44/+16
Only the 2 generic noha scenarios are enabled in order to verify the sanity of the jobs. The rest will be enabled once this is done. Change-Id: Id53f9e694d548ff0858b3c8ebfb3b4e27d37966d Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-10-19[XCI] Remove inventory for prepare-tests.ymlManuel Buil2-6/+2
We are finally fetching all ODL variables from inside the scenarios. Therefore, we don't need to use the inventory: ${XCI_PATH}/.cache/repos/openstack-ansible/inventory/dynamic_inventory.py Change-Id: I91d17cb899a037887bc97441a1c1e37ff57b4850 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-18RTD jobs for all projectsAric Gardner1-0/+13
RTD jobs for all active projects All jobs start as non-voting. All rtd jobs are in their own file to faciliate future bulk changes: jjb/$project/$project-rtd-jobs.yaml All project have rtd pages https://opnfv-$project.readthedocs.io Change-Id: I776e41f968d38f08cb3187f743f69d5d6b697e8e Signed-off-by: Aric Gardner <agardner@linuxfoundation.org> Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2018-10-15Ensure jobs don't get queued on offline buildersTrevor Bramwell6-0/+16
A change to the NodeLabelParameter config in JJB caused any jobs using the plugin to possibly have their jobs triggered on builders which weren't online. This in turn caused the queue to backup and newer jobs are blocked waiting for older ones to complete, which never happens as they're never queued on an online builder. The 'all-nodes' parameter ensure jobs that are set to run concurrently don't trigger across all available nodes at once, as this will include offline nodes as well. As this is the default of the plugin, projects which need it can enable it individually. Change-Id: Ia690eef078209b6b056dad85613dda6868b18271 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2018-10-12Merge "Update jenkins-job-builder to 2.2.1"Trevor Bramwell6-10/+10
2018-10-12Update jenkins-job-builder to 2.2.1Aric Gardner6-10/+10
jjb/lf-ci-jobs.yaml has jjb-version: 2.2.1 as a minimum change block-level to blocking-level: https://review.openstack.org/#/c/608092/ We will need to change this back once we move past jenkins-job-builder>2.5.0 Change-Id: I12d0f55ee3c2dad20340ebf0fa8428ee1ad8484c Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
2018-10-10Bug fix: Path to inventory wrongManuel Buil2-2/+2
The path to reach the inventory was wrong and thus the error message in CI: Unable to parse /root/releng-xci/.cache/repos/openstack- ansible/inventory/dynamic_inventory.py as an inventory source Change-Id: Ic9e01e0895f3df2f6f27d782b8375dbcceb036e6 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-10-05[XCI] Add inventory to run prepare-tests.ymlManuel Buil2-2/+6
To pass functest healthcheck test in odl scenarios, some odl variables must be fetched. To do so, we require to know where opendaylight is deployed and that we can know using the dynamic_inventory.py file in OSA This is needed for this patch: https://gerrit.opnfv.org/gerrit/#/c/63175/ Change-Id: I04643ce93078bad53838e4d4e611f7684d4bd314 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-09-19Merge "jjb: xci: Do not wipe clean VM on failures"Markos Chandras1-1/+7
2018-09-17xci: Switch to Functest HunterFatih Degirmenci3-0/+24
Change-Id: I09978a08d00c561f17ce3a7d5ba75d80aa49a0f6 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-14jjb: xci: Do not wipe clean VM on failuresMarkos Chandras1-1/+7
If there is a CI failure, then we need the VM to be present so we can ssh to the slave and collect all the logs we can in order to debug the problem. However, in order to not leave stale VMs around, we should remove the VM if a job is scheduled again on the same node. As such, if we need to debug a build on the node, we need to disconnect the node from Jenkins so the VM is not wiped by a future job. Change-Id: I93e7d7402fe03c392b63b87e7d438191f6e7e9cc Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-10xci: Enable triggers for daily jobsFatih Degirmenci1-14/+3
Please note that these triggers are temporary and they will be adjusted to fit promotion based triggering. This will result in running scenario deployments and testing if any scenario has changes. Otherwise, daily jobs will be skipped. Change-Id: I24e8c4d7f1da4d3203d81a8929ce2bc60d398ece Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-06jjb: xci: Make sure all virtualbmc process are goneMarkos Chandras1-0/+2
Daily jobs run on the actual slave so they leave virtualbmc processes running even when the job is finished. As such, we need to make sure that such artifacts are gone as soon as we start a new job. Change-Id: I82f49279cc105e788db466e5040e6a31c537af5c Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-04Merge "xci: Log functest results to console for daily jobs"Fatih Degirmenci1-1/+20
2018-09-04Merge "xci: Switch to functest-smoke for daily jobs"Fatih Degirmenci1-2/+2
2018-09-04xci: Log functest results to console for daily jobsFatih Degirmenci1-1/+20
Change-Id: Ic3f31fea8170af8b1e9845856976ef57df496e1e Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-04xci: Pass functest tier and suite to downstream jobsFatih Degirmenci3-0/+6
Change-Id: I206b729c09d30eb81432d11638c2654a96c3b9e8 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-03xci: Switch to functest-smoke for daily jobsFatih Degirmenci1-2/+2
Change-Id: I958c8f857c28a45c009daba36c4bcef7adda4bbe Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-09-03Merge "xci: Enable yardstick"Fatih Degirmenci1-4/+29
2018-09-03jjb: xci: Turn on bash debug optionMarkos Chandras1-0/+1
The script does not behave as it should so we need to enable the debug option in order to debug it properly Change-Id: I13cd4d027c0d9bb9229466148ea4c913508cba2a Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-03jjb: xci: Do not check for scenario changes in releng-xci repoMarkos Chandras1-1/+2
There are no scenarios in releng-xci anymore so we must not try and determine the impacted scenario. Using the default one is good enough for CI. Users can still override the defaults using the usual methods. Change-Id: I47207ebddae79fd89615bfd664f211879aabae92 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-09-03xci: Execute prepare-tests.sh to prepare OPNFV VMFatih Degirmenci2-7/+10
It also fixes the results directory where Functest log is cat from. Change-Id: I3d8ea06d3741c70108cdb1c7f040969dbacf79a5 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-31xci: Enable yardstickFatih Degirmenci1-4/+29
Change-Id: Id48d1dcb6c1998f7f6d0f71cb9380ed7fcf7b320 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-31xci: Adapt jobs to use common prepare-tests roleFatih Degirmenci2-2/+2
In order to activate more test tiers from functest and also start running yardstick, we need to do the test preparation at one go and then run what's supposed to be run. This change is required for below changes to be verified successfully https://gerrit.opnfv.org/gerrit/#/c/61639/ https://gerrit.opnfv.org/gerrit/#/c/61641/ Change-Id: Ib3ae2241921383b77c23b05443325aa6240cc176 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-29xci: Remove leftover VMs before proceeding with the deploymentFatih Degirmenci1-0/+9
Change-Id: I12e1dc7d79ca74df1ba02e16e55e91f4f47a818c Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-24xci: Create virtual daily jobs for scenariosFatih Degirmenci3-0/+48
Change-Id: I2cb52d85a86bf70dfaf151606138d671e618e5d0 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-24xci: Adjust build blockers and fix functest preparationFatih Degirmenci2-9/+24
Functest preparation is moved into the deployment job to ensure things are prepared before we are done and functest job gets triggered. Making the preparation in functest job will cause us to either reinitialize venv or depend on deployment job directory. Apart from that, the env vars necessary for functest are available within deployment job anyways so reusing that will make running functest simpler. See the comments in xci-daily-jobs.yaml builder macros. Change-Id: I4c5bbe5f4b31bb620986d75ba78de6c0fe442975 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-24xci: Fix XCI_DISTRO vars and remove clean_vm cleanup stepsFatih Degirmenci1-16/+10
Change-Id: Ie1d652607f8f56f5e1cf0409dc628b1add615cd9 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-08-24xci: Reconfigure xci-daily-virtual jobsFatih Degirmenci2-88/+91
The execute shell parts need to be switched to existing scripts but since the scripts were mainly written for verify jobs, the adaptations they require has potential to cause issues so it needs to be done in a separate change. Apart from that, the verify and daily jobs can't be run on same slave at the moment due to a bug in opnfv vm creation playbook. If clean vm exists on the node, the playbook fails. Build blocker is enable for verify and daily jobs to ensure the jobs don't end up on same slave for the timebeing. Change-Id: Iefaf5a5c2d4a79bd48a5f9da28d68748bc67f511 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-06-13xci: Disable Centos jobs until Intel lab is backFatih Degirmenci1-1/+1
Due to Intel lab maintenance, the number of slaves will go down so we need to have fewer jobs running. Centos is known to be problematic upstream and it is better to disable them until the lab is back online to ensure the jobs for other distros are impacted less. Change-Id: Ifd8624e45282d68bd7acdf283ef7a499e81990e9 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-05-18xci: Enable verification of changes coming to prototypes folderFatih Degirmenci1-2/+0
Change-Id: I62095327781153eaff81999f5f3fdddc652dc550 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-05-17Update postbuildscript syntax for JJB 2.0.3Thanh Ha4-16/+40
JJB 2.0.3 changed the postbuildscript syntax a bit and requires changes so that they work properly with version 2.x of PostBuildScript plugin. This patch requires that Jenkins also be updated to install the 2.x release of PostBuildScript. Change-Id: I65e52c8d9b2efa38a3d16193c176c65e87e704c1 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2018-05-17xci: Fix scenario determination for changes coming to releng-xciFatih Degirmenci1-25/+42
Earlier change took the possibility of dynamically determining the default scenario. This change puts part of it back which is based on the changed installer and/or other changed files. Change-Id: Ie6d9a9b0622ac4ae5ff0cf0e679fd26beed51747 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-05-17Merge "Combine generic and external scenario determination to one"Fatih Degirmenci1-51/+29
2018-05-17Merge "jjb: xci: Do not check for the WORKSPACE variable"Fatih Degirmenci1-2/+2
2018-05-17Combine generic and external scenario determination to oneFatih Degirmenci1-51/+29
Previously we were determining the impacted generic scenario by looking into changeset in releng-xci. Since we moved the scenarios to releng-xci-scenarios, this is not needed anymore and same function can be used for determining the scenario. Change-Id: I06a65599e03dff4016d0d9d78116e505d84b5061 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-05-17jjb: xci: Do not check for the WORKSPACE variableMarkos Chandras1-2/+2
The WORKSPACE variable is always set so we do not need to check it in the script. Change-Id: I33d2e17b9a4a7b262c781c7442cc69c2433f8729 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-05-16Rename files under jjb from 'yml' to 'yaml'Trevor Bramwell7-0/+0
global-jjb only supports the .yaml file ending for jjb jobs. Instead of waiting for a release we're going to rename the files. Change-Id: Icf3339eacd2320c583333e02250998cf6b1881f7 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2018-05-15jjb: xci: xci-run-functest: Switch to dynamic inventoryMarkos Chandras1-1/+1
We no longer have static inventory files per installer and flavor so we need to switch to the dynamic inventory option. Change-Id: I5b8bf800264b1b297b61d09d010552cd22636627 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-05-11jjb: xci: Connect new releng-xci-scenarios repositoryMarkos Chandras2-2/+2
The scenarios have been moved from the releng-xci to releng-xci-scenarios repository so we should connect Jenkins to that repo as well. Change-Id: Ifcb4f02b8532dd94c8a622185328f7316e726c6b Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-05-10jjb: xci: xci-start-new-vm: Fix passing YAML var files to AnsibleMarkos Chandras1-1/+1
When passing a YAML variables file to Ansible, we need to prefix it with '@'. Change-Id: I884f4698a1033cca9ad55bf3592e1dd817273f81 Signed-off-by: Markos Chandras <mchandras@suse.de>