28 Commits
Author SHA1 Message Date
Paolo Bonzini f31d43fd7f ci: azure: use rustc --print to adjust path, add libdir
Recently, rustup moved std-*.dll from the $sysroot\bin directory to
the libdir.  This causes issues with CI; fix them by adding the
libdir to the path and, while at it, getting the sysroot and libdir
directly from rustc.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2026-10-22 09:15:38 +02:00
Dylan Baker 30599dfb98 Drop Python < 3.10 support 2026-04-23 14:01:23 -07:00
Jussi Pakkanen ea82dba6c7 Update Azure image from win2019 to win2022
https://github.com/actions/runner-images/issues/12045
2025-10-17 01:59:24 +03:00
Jussi Pakkanen 7f908d909e Remove coverage measurement. 2025-06-18 17:22:04 +03:00
Eli Schwartz 21614ac00b Revert "CI: Windows: downgrade rust to 1.77"
This reverts commit 1da230c9e0.

Should be fixed now in upstream rustc.
2024-12-20 04:03:42 -05:00
Andrei Horodniceanu 188869724a ci/run.ps1: Clean up D related code
Bump the version of the cidata archive and remove the code that tries
to setup dmd and the dub packages from run.ps1 as it doesn't work as
expected (builds for x86 instead of x86_64) and cidata should already
take care of them.

Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
2024-09-12 23:19:57 -04:00
Sam James a5211a1520 ci: fix dub tests on Windows
This fixes a pesky failure in vs2019 vc2019x64ninja for d/11 dub:
```
Searching in DUB cache for compatible urld.lib
WARNING: No such cache folder: C:\Users\VssAdministrator\AppData\Local\dub\packages\urld-2.1.1\urld\.dub\build
ERROR: urld@2.1.1 not found
You may try the following command to install the necessary DUB libraries:
dub run --yes dub-build-deep -- urld --arch=x86_64 --compiler=dmd --build=debug
Run-time dependency urld found: NO

test cases\d\11 dub\meson.build:13:11: ERROR: Dependency "urld" not found
```

Follow dub's advice by installing urld in ci/run.ps1 before the testsuite;
we were already doing this for ubuntu, opensuse, and even recommending
it in our docs before now:
* ci/ciimage/ubuntu-rolling/install.sh
* ci/ciimage/opensuse/install.sh
* docs/markdown/Dependencies.md

We also bump to 'ci4' which has newer D added (from the cidata repo).
2024-08-06 08:29:03 +01:00
Eli Schwartz 1da230c9e0 CI: Windows: downgrade rust to 1.77
It started failing CI as soon as the default shifted to 1.78. Something
is broken and it prevents running stable CI. Tracking issue opened.

We pin the version because that is the same way we handle CI for linux
-- with the exception that Linux CI can upgrade itself as soon as we
fix issues causing the CI Image Builder to jam itself, whereas
unfortunately Windows will need to be manually unpinned, but such is
life as a Windows supporter.

Bug: #13236
2024-06-03 22:51:20 -04:00
Eli Schwartz 17c6d5eb47 unittests: migrate from jsonschema to fastjsonschema
The former has rust dependencies, which lead to max capping on Cygwin
since there is no rust compiler there. But it turns out there are other
disadvantages of jsonschema:

- it involves installing 5 wheels, instead of just 1
- it is much slower

To give some perspective to the latter issue, this is what it looks like
when I test with jsonschema:

```
===== 1 passed, 509 deselected in 3.07s =====
Total time: 3.341 seconds
```

And here's what it looks like when I test with fastjsonschema:
```
===== 1 passed, 509 deselected, 1 warning in 0.28s =====
Total time: 0.550 seconds
```

I cannot think of a good reason to use the former. Although in order to
work on old CI images, we'll support it as a fallback mechanism
2023-12-10 19:02:39 -05:00
Eli Schwartz d28d4ac4ed azure pipelines: force python2 to be installed
Azure pipelines is removing python2 from the hostedtoolcache, see
https://github.com/actions/runner-images/issues/7401

We want to test that meson can still build modules for it, anyway.
2023-06-07 16:40:52 -04:00
Ralf Gommers aa7bc2adf0 Add Cython to Windows CI jobs on Azure
[skip actions]
2023-05-05 12:23:52 -04:00
Josh Soref cf9fd56bc9 fix various spelling issues
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-11 19:21:05 -04:00
Eli Schwartz 68a84f6535 fix confusing azure pipelines status for coverage
The coverage report was always the final section of the main test run.
This made it hard to scroll around and find exactly what went wrong --
particularly as not everyone realizes that coverage isn't part of the
test run, but also because the output from coverage is... excessively
long.

This mirrors what we do in our other workflows.
2022-11-16 19:28:24 -05:00
Eli Schwartz 1521bdd9fd CI: install ifort on Windows
This enables the fortran tests for Azure.

We only test on x64, because:
- ifort isn't arm64 compatible
- x86 may in theory exist, but Meson reports it cannot compile
  executables
2022-07-11 17:58:02 -04:00
mattip a9b63ff76f add a pypy3 for windows too 2022-04-12 06:58:04 -04:00
Eli Schwartz ad525dcce4 bump minimum required version of python to 3.7
Comment out the pending deprecation notice. It cannot be reached
anymore, but is still useful for the next time we do a version bump.
2022-01-10 18:36:56 -05:00
Dylan Baker 7191b6dab2 ci: install pytest-subtests
Which lets pytest understand unittest.subtest
2021-12-06 20:06:14 -05:00
Christian Clauss a5020857f3 Fix typos discovered by codespell 2021-10-10 16:12:25 -04:00
Dylan Baker f0a7b6e7c6 pipelines: add 32bit clippy to 32bit rust 2021-09-24 18:48:48 -07:00
Nirbheek Chauhan c95bffb295 ci: Use 32-bit Rust and Python on vs2017 x86
See also: https://github.com/mesonbuild/meson/issues/9038#issuecomment-898960933
2021-08-16 10:36:13 -04:00
Jon Turney 317f9555a7 azure: propagate run_tests.py exit code
Propagate the run_tests.py exit code, rather than overwriting it with
the codecov exit code.
2021-07-12 19:44:29 +02:00
Daniel Mensinger 765aff5a42 coverage: Enable coverage reports 2021-06-22 21:05:11 +03:00
Jon Turney 6a56291a2a Add a test run of MSVC ARM64 cross on Windows x64
Add a cross-file for MSVC UWP ARM64.

Bump cidata tag to get an updated install.ps1 script (run by run.ps1)
which sets the vcvars environment correctly when cross-compiling.

Since arranging the correct environment for simultaneous cross and
native 'cl' use is hard, this is test run uses '--cross-only' so we
don't require a native compiler.

Extend '--cross-only' so it also explicitly uses a machine file which
makes all build machine compilers unusable.
2020-09-11 20:45:09 +00:00
Nirbheek Chauhan 804cefc94c ci: Remove PostgreSQL from PATH
It's one of the causes of the cmake test failures, and it's also
plaguing the VS2019 jobs now because of the image update.
2020-06-17 16:51:58 +00:00
Dylan Baker 91050e0c7c ci: Add python-jsonschema
Which is used to validate the json schema files in the various test
directories in a unit test.
2020-04-17 10:49:08 -07:00
Daniel Mensinger 14d7d25115 azure: Do not skip boost tests 2020-04-12 19:37:52 +03:00
Jussi Pakkanen 97bb54bdfa Add rust stdlib dir to PATH on Windows. 2020-04-11 00:29:20 +03:00
Daniel Mensinger 1a741e0439 ci: Use self hosted CI data 2020-04-04 20:39:54 +03:00