42 Commits

Author SHA1 Message Date
Zuul
2cf703c62c Merge "Combine javascript deployment and deployment-tarball jobs" 2020-05-14 12:02:20 +00:00
James E. Blair
a3ba8e309a Add zuul_work_dir to run-test-command
To make it so that a repo can host a simple command which is an
integration test of multiple projects, add the semi-standard
zuul_work_dir variable to the job.

Change-Id: I265469ac9c12c3a38a11b243f3ff747d27141f21
2020-05-13 11:31:01 -07:00
Monty Taylor
886cdcc21f Combine javascript deployment and deployment-tarball jobs
There's no reason to not just build the tarball when we build the
content.

Set the default value for node_version in the base job.

Change-Id: Ifb3e5138e9ae19ec3de9250f1828fc07230ef739
2020-05-13 16:48:29 +00:00
Zuul
adf84f02db Merge "Set node_version in js-build base job" 2020-05-13 16:40:13 +00:00
Monty Taylor
a8722a38ed Set node_version in js-build base job
Defaults in one role do not automatically transfer to
roles via include_role, and applying things correctly
can lead to recursion issues:

  https://github.com/ansible/ansible/issues/36274

Just set the default in the job.

Change-Id: Iabefd80c8fc40a61a601b082f265c93af643cd83
2020-05-13 11:10:54 -05:00
Andreas Jaeger
d2bcdf157e Fix nodejs-npm-run-test
pre-test.yaml was renamed in I33c12cb0d9516bdffef7d8d04af4dbcb03ed8355
to browser.yaml and we missed one place. Follow rename.

Change-Id: I628dbe7481ea0277e564af057ae57fdf2ce51820
2020-05-13 11:02:48 +02:00
Zuul
b8a24d635f Merge "Split browser and non-browser targetting js test jobs" 2020-05-12 17:10:19 +00:00
Monty Taylor
0caa85cc48 Split browser and non-browser targetting js test jobs
Some javascript operations, like running tests for web-apps, need
browsers. Javascript packages that are not targetting browsers
do not.

Make a -browser version that installs the browsers and xvfb, and
a non-browser version that does not.

Change-Id: I33c12cb0d9516bdffef7d8d04af4dbcb03ed8355
2020-05-12 11:31:42 -05:00
Zuul
7730bf0718 Merge "Add new non-npm specific javascript jobs" 2020-05-12 13:37:06 +00:00
Monty Taylor
202cce830e Add new non-npm specific javascript jobs
We have a bunch of jobs that are built around the npm role, but
for projects using yarn, that can lead to ignoring yarn.lock.

For projects with a yarn.lock, we can assume the user wants to
use yarn. Make a new js-package-manager role that can detect
if that's the case and otherwise use npm. Make an js_build_tool
parameter that allows the user to override that auto-detection.

Make a whole new suite of jobs that do this behavior, do not have
npm in their name, and default to the latest node LTS, version 14.

Don't install yarn if we're not going to use yarn. Also allow people
who want to use yarn but don't have a yarn.lock to override
js_build_tool everywhere we do that logic.

Mark the old jobs deprecated.

Shift the npm and yarn roles to use the new js-package-manager role
with defaults set.

Change-Id: I8013228ca05607a69f390a9bb75991fc6543f865
2020-05-12 07:50:19 +02:00
Tristan Cacqueray
16673b8dc1 haskell-stack-test: add build target job variable
This change adds support for custom target and adds a
separate build step to better report build failure, as
opposed to a single test failure.

Change-Id: I9e7a5e14b669dcbacd26861595358f6a4c04b585
2020-05-08 14:11:11 +00:00
Tristan Cacqueray
7fdf0cc3ab cabal-test: add build target job variable
This change adds support for custom target and removes the
configure step which is not necessary.
This change also uses the copr of cabal-install to get
a more up-to-date version.

Change-Id: I538e2b24abb66181d1ead2779bf6aa3440ee58ff
2020-05-08 13:38:17 +00:00
Sorin Sbarnea
4af438d136 Made sequence indent consistent
Change-Id: I5ea4232ca4fd6e03d5b5f72eb6704bee84d04ea5
2020-05-07 14:13:55 +01:00
Sorin Sbarnea
33461bbecc Enable yamllint
Adds yamllint to the linters with a minimal configuration, some
rules are disabled to allow us to fix them in follow-ups, if
we agree on them.

Fixes invalid YAML file containing characters inside block.

Fixes few minor linting issues.

Change-Id: I936fe2c997597972d884c5fc62655d28e8aaf8c5
2020-05-04 17:47:11 +01:00
Tristan Cacqueray
4903ecd30b dhall-diff: add new job
This change adds a new dhall-diff job to verify generated config
is idempotent.

Change-Id: I96a335dc78c4fa74564b854997433e5be0b5e633
2020-05-03 19:06:37 +00:00
Tristan Cacqueray
cf64b73f78 haskell-stack-test: add haskell tool stack test
This change adds a new job to test stack based haskell project.

Change-Id: Ie3492097b351eec743d98e9ca8bc693c00c11a78
2020-05-01 15:35:33 +00:00
Tristan Cacqueray
2e82d88589 hlint: add haskell source code suggestions job
This change adds a new job to run hlint on haskell source files.

Change-Id: Ibf76c5552acecd68dfc56c4f31d8045ca5b233f1
2020-04-26 12:05:12 +00:00
Tristan Cacqueray
d92b39cae2 cabal-test: add initial haskell job
This change adds a new job to test cabal based haskell project.

Change-Id: Idb24eb5f8f9bd1409bae07bf4da415f1d05568e4
2020-04-24 13:12:13 +00:00
vass
32a3ce3f5a Adds roles to install and run hashicorp packer
Change-Id: I82274ef59eda00a735579082bbd37b64c0599c7d
2020-04-13 16:44:32 +02:00
Jan Kundrát
ab60f53292 docs: fix a typo in run-test-command
Change-Id: Iaab71db0e9d7615d1eb7c62a350c5348e81b847d
2020-04-06 13:18:07 +02:00
Zuul
b6b07fb2d8 Merge "Add phoronix-test-suite job" 2020-04-03 19:46:12 +00:00
Tristan Cacqueray
59c5820fa6 Add phoronix-test-suite job
This change adds new jobs to run and combine phoronix test suite results.

Co-Authored-By: Nicolas Hicher <nhicher@redhat.com>
Change-Id: If94cdbd91c8d80393a71cd5c36690563de9edcd6
2020-04-03 13:03:07 +00:00
Mohammed Naser
23236c12fa golangci-lint: add job
This patch adds a roles and jobs to run golangci-lint against a
a Golang project.  It's a very popular tool for linting go code.

It also adds a simple framework which allows us to create dynamic
tests for file comments by defining a simple YAML file.

Change-Id: Ic8358541adaf7c3279383f0279cd3da7b446a6e0
2020-04-01 17:30:55 -04:00
Zuul
6837cde09b Merge "Skip test-setup.sh in pep8 jobs" 2020-02-17 16:42:45 +00:00
Antoine Musso
465db8d0ef Skip test-setup.sh in pep8 jobs
Similar to Ia140b331ae1502fcf1f685faa6dace117d77d35d which was for
`pep8`.

Change-Id: Idc72c7d1a88fff8e738c896e2482b5cb1d844600
2020-01-27 21:17:44 +01:00
Clint Byrum
33580f22b0 Add a markdownlint job and role
This tool will ensure that your markdown files follow some best
practices.

Change-Id: I7bcc70443dbe5fa31e3cc1139d608834c00851b9
2020-01-27 12:23:24 +00:00
Mohammed Naser
5833a6f8e3 apply-helm-charts: Job to apply Helm charts
This job deploys a Kubernetes cluster and then runs all the
Helm charts provided.

Change-Id: If6c4a6d5bce912f55549d16175554154c86dd25a
2020-01-10 17:31:38 +00:00
Zuul
14478de03f Merge "Add basic Helm jobs" 2020-01-09 21:19:44 +00:00
Mohammed Naser
b476e34ab0 Add basic Helm jobs
This adds a simple job which runs the `chart-testing` linter against
a repository.

Change-Id: I974c64343e88c235a6dc887d5378f7db2ee3b1fc
2020-01-07 17:12:15 +00:00
Andreas Jaeger
25cc095e53 Ensure python interpreter is installed for tox-py3X
Add tox-py38 and ensure that python interpreter is installed for tox-py3
jobs. The job includes the ensure-python role that checks and installs the
interpreter if python_version is set.

Test py37 to ensure that this works, it's the version currently used for
next OpenStack release, so let's test changes to roles and jobs here.

Run tox-py35 on Xenial, since that Xenial has Python 3.5 - it was run
previously on the default (3.6 in our install) instead, this change
showed that we run the wrong interpreter for tox-py35 on this repo.

Change-Id: I46d6780a5a32c443c37ef040b2af2459641dd123
2020-01-02 15:51:30 +01:00
vass
0ee411860a Adds go jobs and roles.
Adds jobs to test and build go packages.
Adds a role to download and install go from
the official download page (https://golang.org/dl/).
Adds a role to run commands with go e.g build, test, run.

Change-Id: Iad2d877fffa2530e9fdeec648a60755a80cf01f4
2019-11-20 20:27:21 +01:00
vass
b3d1b0a85d Fixes generation of documentation for jobvars
Change-Id: Ia1f9cae45abc9fc4af4eb39c9b781cca1dcf479f
2019-10-24 17:43:58 +02:00
James E. Blair
f740369099 Remove parent from validate-zone-db
Jobs in this repo should never specify 'base' as their parent,
they should rely on the default tenant base job (which may or
may not be named base).

Change-Id: I6faa085611eca5ce9650b67e975548574773c524
2019-09-19 13:02:31 -07:00
Zuul
b87fadb06d Merge "Switch to fetch-sphinx-tarball for tox-docs" 2019-09-09 16:46:34 +00:00
Monty Taylor
0865fe0387 Switch to fetch-sphinx-tarball for tox-docs
Also, change success-url to docs/ since that's where the new role places
them.

Change-Id: Ic8141bb4b12780a14928fb7978677ca6144d09da
2019-08-28 16:47:10 +02:00
Andreas Jaeger
687a683003 Switch releasenotes to fetch-sphinx-tarball
As step to use promote job for publishing releasenotes, we need to use
fetch-sphinx-tarball for this job.

Update success-url to docs to match the role.

Change-Id: I5aabf5cfadee1e12baab117a20b1f50766f3d7fc
Needed-By: https://review.opendev.org/678430
2019-08-25 17:18:01 +02:00
Andreas Jaeger
7513629be7 Skip test-setup.sh in pep8 jobs
pep8 jobs should not require database setup, etc, so we can skip
running test-setup.sh to save time.

Also, address comments from https://review.opendev.org/670120 and
use a block to not run the stat if can we will skip using the file.

Change-Id: Ia140b331ae1502fcf1f685faa6dace117d77d35d
2019-07-10 19:02:57 +02:00
James E. Blair
146349b88e Move in-repo test jobs into zuul-tests.d
These jobs are for testing this repo and should normally only be
included by the OpenDev Zuul for gating.

Change-Id: I7bf940edce1135d855d7f66605db2e856bd7177d
2019-07-02 10:04:11 -07:00
Andreas Jaeger
d271c34705 Test install-pdk-dependencies role
Add a simple test for the recently merged
install-pdk-dependencies role.

Change-Id: I26ca8ea39c03fbded79e7da624d94db60230f62f
2019-07-01 16:40:07 +02:00
James E. Blair
9a82ac0f60 Move upload-git-mirror test job in-repo
This was previously defined in openstack-zuul-jobs, but
we're working out a way of keeping these in-repo, so move
it here.

This was entirely authored by David Simard.

Change-Id: I743b8e9011f717569589d9e16ac0228ad3d112d1
Co-Authored-By: David Moreau Simard <dmsimard@redhat.com>
2019-06-27 15:02:29 -07:00
James E. Blair
10aa1b5432 Add a simple test of the install-nodejs role
Change-Id: Ib0e5e3ffa418827746317d0bdf6196a7b38fc0db
2019-06-27 14:04:57 -07:00
James E. Blair
2a5822ea8b Split job definitions into multiple files
We have too many jobs to put them all in one file; split them up
in files which mirror the documentation.

Change-Id: Ic44f18085ccf0b561a0f4aa0a4274fe8eb99402c
2019-06-27 13:36:03 -07:00