Commit Graph

27 Commits

Author SHA1 Message Date
Steven Koo
b839265042 ci: Device wait to redlock scope for Vivado close
Sometimes Vivado gets reopened too fast causing port in use errors.
This moves the device reboot wait into the redlock scope to give some
time for Vivado to close before the next agent tries to get the lock.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-11-08 15:48:20 -06:00
Steven Koo
0ad56f6627 ci: Add Fedora 34 and remove Fedora 32
Fedora 34 has been released and Fedora 32 is EOL

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-11-08 15:48:20 -06:00
Steven Koo
4ba705eb4d ci: Refactor installers and add Windows support
This commit refactors the uhd pipeline to have a new installer stage.
This also adds Windows NSIS installers to pipelines.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-11-08 15:47:49 -06:00
Steven Koo
7113767bcb ci: Add custom boost version support
This adds new variables which can be used to set a a URL to a custom
Boost archive. If provided, the pipeline will download the custom Boost
archive, unpack it, build it, and provide CMake flags for UHD before
starting the UHD build itself.

This allows semi-automatic testing of new Boost versions as they are
released.
2021-11-08 15:47:49 -06:00
Martin Braun
9faa5279f4 ci: Remove documentation-only changes from pipeline runs 2021-11-08 15:47:49 -06:00
Steven Koo
5f874fcb47 ci: enable batch CI
Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-11-08 15:47:49 -06:00
Steven Koo
e6829b3b24 ci: Split CI and PR pipelines for mono pipeline
Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-11-08 15:46:08 -06:00
Martin Braun
fe77c4d5c5 ci: Enable custom CXX flags, enable -Werror
- Add a new boolean to make and ninja builds (uhdAllowWarnings). It
  defaults to false.
- When asserted, we set build flags for make and ninja to

    -Werror -Wno-error=maybe-uninitialized

- Add a new parameter to make and ninja builds (uhdCxxFlags). It is
  currently unused
2021-11-08 15:42:19 -06:00
Martin Braun
38db29121a ci: Let make keep building upon failure
This is useful to get a full list of compile errors instead of just the
first few. Particularly useful since we enabled -Werror.
2021-11-08 15:42:19 -06:00
Martin Braun
f94db1821b ci: Add clang as a compiler to all Fedora and Ubuntu containers 2021-11-08 15:42:19 -06:00
Steven Koo
a8989f1cd5 ci: Add gnuradio gr-ettus to oe builds
gnuradio and gr-ettus is downstream of uhd so we need to
rebuild it when we build uhd

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-09-07 09:58:54 -05:00
Steven Koo
d095a7df0b ci: Update template to use checkout_meta_ettus
Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-09-07 09:56:42 -05:00
Steven Koo
ceac1bdddb ci: rebuild docker images weekly
Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-08-26 14:26:38 -05:00
Martin Braun
3bc9ab83d1 ci: Change base branch to UHD-4.1 2021-07-08 12:45:32 +02:00
Steven Koo
7c5497f995 ci: Enable manifest to trigger CI/PR builds
Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-06-25 14:15:50 -05:00
Michael Auchter
b3ec3d4de5 ci: move builds to the NI Build Farm 2021-06-24 10:36:53 -05:00
Steven Koo
0896071591 ci: Add trace builds to pipeline
Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-06-24 07:30:08 -05:00
Joerg Hofrichter
13d26a0624 uhd: ci: Add test definition for UHD CI
Co-authored-by: Joerg Hofrichter <joerg.hofrichter@ni.com>
Co-authored-by: Cristina Fuentes <cristina.fuentes@ni.com>
2021-06-10 12:01:53 -05:00
Steven Koo
01b631dc12 ci: Add deb build support for ubuntu 1804/2004
This change adds build support for Ubuntu debs in CI. This will
generate the dsc file and then build the debs. These are then saved
as a pipeline artifact.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-05-18 15:13:37 -05:00
Steven Koo
d97eb69c72 ci: Update docker images for Ubuntu with pbuilder
This changes adds pbuilder to the docker files to support building dsc
into debs for use with uhd_ubuntu_deb.py.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-05-18 15:13:37 -05:00
mattprost
04ddba298c tests: Update device identifiers for N310
New hardware is now being used for N310 testing.

Signed-off-by: mattprost <matt.prost@ni.com>
2021-05-05 16:30:42 -05:00
Steven Koo
64ea8d91f8 ci: support for x3xx devtest on rhombus
Rhombus is a test suite that is intended run devtests for multiple
devices in parallel. This commit adds support for x300 and x310
support. This uses redis to mutex access to the hardware between
Azure Pipeline agents. This also updates the fpga using Vivado
over ssh to the host machine.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-04-16 15:08:11 -05:00
Steven Koo
f2a3954ce3 ci: install vc_buildtools instead of vc_community
For our build machines, we don't need full on Visual Studio.
Instead this installs the VS Build Tools, which has the CLI
build apps we need.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-03-19 15:40:09 -05:00
Steven Koo
3b29a89b9f ci: Build uhd with Pipelines
This commit adds the infrastructure to build uhd on both Linux and
Windows using Pipelines. Using the docker images generated by the
build docker pipeline, this runs an AzDO container job to build uhd
artifacts. It then stores the artifacts to be used in later pipelines or
stages. This change supports make and ninja on Linux and msbuild
with VS2017/VS2019 x86/x64 on Windows.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-03-19 15:40:09 -05:00
Steven Koo
19f3c1203a ci: Linux and Windows uhd build docker images
This commit adds Pipeline support for building uhd toolchain docker
images. The Dockerfiles specify the required dependencies to build uhd.
These can then be used in downstream pipelines to build uhd. It's also
possible to use the Dockerfiles using "docker build" and "docker run"
to locally create the toolchain to build uhd.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-03-12 16:24:09 -06:00
Steven Koo
a0fcdec7d5 ci: Hardware pytests / devtests in AzDO for n310
This commit adds support for running devtests and pytests in
Azure Pipelines. Devices are intentionally matrixed for adding more
in the future. devtest is turned off by default for now, but
can be enabled in the future.

Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-03-08 16:18:11 -06:00
Steven Koo
5824046ff3 ci: Add stub for python hardware tests
Signed-off-by: Steven Koo <steven.koo@ni.com>
2021-02-08 15:27:28 -06:00