Commit Graph

69 Commits

Author SHA1 Message Date
Frediano Ziglio
4e169ee426 ci: Install missing package
Latest Fedora release does not include awk command by default.
Install it manually as required by some script.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2025-04-21 22:03:56 +01:00
Frediano Ziglio
4227b86bf3 tests: Add missing output file to gitignore list
Ignore generated output files.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2025-03-16 03:50:40 +00:00
Michael Scherle
7c12352b2b ci: Fix platform specifier for podman
Platform specifiers have the format `<os>|<arch>|<os>/<arch>[/<variant>]`
(<9b464c3fab/platforms.go (L69)>).
Podman is more strict than docker in parsing and does not allow to specify
`<arch> only.

Signed-off-by: Michael Scherle <michael.scherle@rz.uni-freiburg.de>
2024-11-20 14:14:47 +01:00
Michael Scherle
f8534b477c ci: Fix debian32 job
Gitlab runner fails to pull the image due to:
no matching manifest for linux/amd64 in the
manifest list entries. Set the architecture of the
image to pull, see:
https://docs.gitlab.com/ee/ci/yaml/#imagedocker

Signed-off-by: Michael Scherle <michael.scherle@rz.uni-freiburg.de>
2024-11-20 11:14:11 +01:00
Michael Scherle
a2b037b1fc ci: Fix windows job
mingw64-openssl-3.2.2-2 breaks TLS,
fixing it to fedora 40 for now, so that a working
mingw64-openssl package is used.

Signed-off-by: Michael Scherle <michael.scherle@rz.uni-freiburg.de>
2024-11-20 11:14:11 +01:00
Michael Scherle
da26dd87dc ci: Fix websocket-autobahn job
Last Automat library fails to install on the container.
Similar to 71a1b112.

Signed-off-by: Michael Scherle <michael.scherle@rz.uni-freiburg.de>
2024-11-20 11:14:03 +01:00
Frediano Ziglio
fe1c25f530 test-listen: Use OpenSSL BIO instead of GIO library
test-listen using GIO had issues running under CI for a while.
GIO is reading some desktop configuration so it's not very CI
friendly.
So instead of using GIO use OpenSSL BIO. The code does not
get much bigger or complicated.
We are already using OpenSSL so we are not adding dependencies.

This fixes CI for Fedora 39 (just released and available on docker).

This allowed to remove an old workaround for GIO in .gitlab-ci.yml
(cfr commit 89edf80821
"ci: Workaround an issue with GLib on Fedora 30")

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-11-22 07:36:40 +00:00
Frediano Ziglio
8f315a45e6 ci: Do not deep clone spice-protocol repository
Same some network traffic, we don't need to clone entire
git repository history.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-30 20:35:57 +01:00
Frediano Ziglio
b21dc45a00 ci: Add "setup" subcommand to meson call to avoid warning
Newer meson output a warning if "setup" is not provided.
Remove that warning.
Note that Windows build was not changed due to a bug in mingw-meson
script causing duplication of arguments.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-30 20:35:57 +01:00
Frediano Ziglio
dd40fd32b9 ci: Test some more flags for meson-options
"lz4" and "tests" flags are by default "true", test we can build
if they are "false".

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-30 20:35:57 +01:00
Frediano Ziglio
f60d61186f ci: Update makecheck-windows job to Meson
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-30 20:35:57 +01:00
Frediano Ziglio
48590b23ba ci: Update makecheck-centos job
Update to stream9 instead of stream8.
Move to Meson instead of Autoconf as build system.
Remove libcacard-devel, not available.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-30 20:35:57 +01:00
Frediano Ziglio
77611e5490 build: Add missing file to distribution
Required to build using Meson.
Also add a check to "distcheck" job to test you can build with
Meson from distribution file.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-11 12:26:06 +01:00
Frediano Ziglio
313932ea02 ci: Remove broken OpenSSL configuration to fix makecheck-windows job
The configuration installed with mingw64-openssl cause OpenSSL
to fail to initialize during execution with Wine.
Delete it and use the compiled in options.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-10 14:33:09 +01:00
Frediano Ziglio
6089c90a62 ci: Fix check-valgrind job
Avoid downgrading gstreamer1-plugins-good, no longer necessary.
Add suppression for pthread_create leak.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-10 10:56:42 +01:00
Frediano Ziglio
d8cc54159d ci: Add missing packages for CentOS job
"cmp" and "diff" were not available.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-10 10:55:42 +01:00
Frediano Ziglio
71a1b11221 ci: Fix websocket-autobahn job
Last wsaccel library fails to install on the container.
This test has not been maintained for a while so libraries
are getting pretty old anyway.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-10 10:55:08 +01:00
Frediano Ziglio
f9682ed121 Temporary workaround issue with gstreamer1-plugins-good package
Downgrading this package seems to solve Valgrind tests.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2022-08-03 19:06:00 +01:00
Frediano Ziglio
3153ce81f8 ci: Fix Windows
Provides LANG to avoid error detecting encoding.
Install all Wine package, installing only core is not enough.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2022-07-19 10:13:25 +01:00
Frediano Ziglio
4a1e9a03f4 ci: Workaround a bug in Fedora 35 mingw64-make script
mingw64-make is a bash script that wraps make command passing
additional arguments and setup in order to cross compiler for
MingW (to target Windows).
In Fedora 35 the script passes the arguments we provide
twice. So if we pass (like in this case)
"LOG_COMPILE=wine -C server check" the final make command will
receive
"LOG_COMPILE=wine -C server check LOG_COMPILE=wine -C server check"
arguments.
This for some arguments it's not a problem but passing "-C <dir>"
twice causes make to attempt to change directory twice.
This causes a

    make: *** server: No such file or directory.  Stop.

error. Use cd command before invoking mingw64-make to avoid
having to pass "-C" option.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2022-03-24 12:37:26 +00:00
Frediano Ziglio
a73b82fc18 ci: Set WINEPATH before executing tests for Windows
Without it on Fedora 35 Wine is not able to find DLLs installed
on the system.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2022-03-24 12:37:26 +00:00
Uri Lublin
9106365d3e ci: centos: run on centos stream 8 image from quay.io
The default centos:latest image can not install packages anymore.
The makecheck-centos test fails with the following error:
  $ dnf install -y 'dnf-command(config-manager)'
  Error: Failed to download metadata for repo 'appstream' \
         Cannot prepare internal mirrorlist: No URLs in mirrorlist

Replace it with a centos stream 8 image from quay.io to make
the makecheck-centos test pass

Signed-off-by: Uri Lublin <uril@redhat.com>
2022-03-23 15:00:58 +00:00
Frediano Ziglio
127c047ad7 ci: Enable -Werror again
By default after commit b24da37074 (cfr: "build: Disable
default -Werror if source is a git repository") -Werror is
by default disabled using Autoconf.
Enabled for the CI.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-05-05 06:36:21 +01:00
Frediano Ziglio
a56e65187e ci: Use Ubuntu Bionic for websocket-autobahn job
Autobahn testsuite is based on Python 2.
See https://github.com/crossbario/autobahn-testsuite/issues/109.

Temporarily use an Ubuntu LTS distro still having Python 2, this will
make the job work for some years.

Hoping in the future to either:
- update Autobahn testsuite to Python 3;
- finding another testsuite for websockets.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-02-08 09:47:32 +00:00
Frediano Ziglio
23ba776212 ci: Fix Gitlab build for makecheck-centos job
In CentOS 8 PowerTools repository was renamed to powertools
causing the CI to fail. Rename in configuration file.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-02-08 08:30:17 +00:00
Frediano Ziglio
a078f25090 build: Prepare for 0.14.91 release
Really minor update to fix Meson build for release: additional files
cause the version string to contain "-dirty" which is not handled, so
doing a "git clean" fix the issue.
Autoconf did not trigger the issue as printf command give a
warning but strip what is not a number.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <ulublin@redhat.com>
2020-10-26 11:57:20 +00:00
Uri Lublin
f23349f93e ci: install diffutils
Without diffutils, configure complains it can not find commands cmp and diff.
For example check-valgrind log shows:
checking for a working dd... ./configure: line 6852: cmp: command not found
./configure: line 6852: cmp: command not found

Signed-off-by: Uri Lublin <uril@redhat.com>
2020-10-26 12:54:06 +02:00
Frediano Ziglio
07f26241b8 ci: Set G_TLS_GNUTLS_PRIORITY environment for makecheck-windows job
This workaround an error from test-listen test under Windows
reporting:

   GLib-Net-WARNING **: 09:24:25.152: Failed to set GnuTLS session priority with error beginning at %COMPAT: The request is invalid.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <ulublin@redhat.com>
2020-07-20 16:35:33 +01:00
Frediano Ziglio
c87bd86c44 ci: Update Gitlab websocket-autobahn job for Fedora 32
Fedora 32 removed Python2 packages, we need to install compatibility
packages and install pip2 manually.
Autobahn test suite does not still support Python3.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <ulublin@redhat.com>
2020-07-20 16:35:26 +01:00
Frediano Ziglio
c4b4b967fb Allows C++ to be used in sources
Enable C++ compiler

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-01 06:58:08 +01:00
Frediano Ziglio
153e408f9f ci: Minor command simplification
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-19 14:44:18 +00:00
Frediano Ziglio
cf94bdffa6 ci: Use --werror for Meson
We want to get rid of warnings

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-19 14:44:16 +00:00
Frediano Ziglio
a6c9e499fd ci: Reuse code to install newer spice-protocol
Avoid duplications for these commands

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-19 14:44:14 +00:00
Frediano Ziglio
e9dabf7c89 ci: Remove useless command
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-19 14:44:10 +00:00
Frediano Ziglio
70c71fe487 Remove Celt support
Take from spice-common this changeset:

Victor Toso (1):
      sound: remove celt support

Remove and update reference from CI and documentation.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-17 17:15:51 +00:00
Frediano Ziglio
c6a0844422 ci: Fix build of spice-protocol
spice-protocol is not using Autoconf anymore.
Autobahn suite is now run on normal Fedora docker image.
Drop testing with CentOS 7 i386 in favour of a Debian i386,
CentOS 7 does not support i386 anymore, EPEL 7 is missing for
CentOS 7 i386 so to check a 32 machine better to move to Debian.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-17 16:01:19 +00:00
Snir Sheriber
ecd9a84837 ci: test docs with asciidocter before trigger spice-space ci
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-12-16 08:59:16 +00:00
Snir Sheriber
827cdae4de ci: trigger spice-space ci with every docs change
Trigger spice-space build if docs/ has changed and TOKEN is set
This is not defined as deploy stage so it won't be depended on the other jobs

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-11-27 12:21:11 +00:00
Frediano Ziglio
6c5b7017ee ci: Update gitlab makecheck-centos Job to support CentOS 8
Disable celt0.51, now obsolete.
Update package names and repositories.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-10-04 15:39:00 +01:00
Uri Lublin
e40a57027f ci: pre-install "file"
This fixes the following warning:
  ./configure: line 7040: /usr/bin/file: No such file or directory

Signed-off-by: Uri Lublin <uril@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-07-22 11:21:20 +01:00
Frediano Ziglio
89edf80821 ci: Workaround an issue with GLib on Fedora 30
This remove this error running test-listen test on a Fedora 30 docker
image:

(/builds/spice/spice/build/server/tests/test-listen:2233): GLib-GIO-CRITICAL **: 15:29:03.123: g_file_new_for_path: assertion 'path != NULL' failed

This error is due to some missing configuration on the image.
On a fully installed Desktop/Server machine these configuration
are usually in place so you won't note the issue but on recent
docker images these configuration are missing.

Running the dconf command add required configuration.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
2019-07-18 16:20:59 +01:00
Frediano Ziglio
a68fd56b41 ci: Add test for websockets
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jeremy White <jwhite@codeweavers.com>
2019-06-26 14:19:43 +01:00
Frediano Ziglio
4394cc9733 ci: Add test for 32 bit CentOS 7
Make sure the project compile and pass tests without problems
on a 32 bit architecture.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
2019-06-13 09:06:05 +01:00
Frediano Ziglio
177a7d3833 ci: Remove dependencies from copr build
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber <ssheribe@redhat.com>
2019-06-13 08:05:28 +01:00
Frediano Ziglio
d5041a5039 ci: Add test for Windows using MingW
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-05-07 10:14:38 +01:00
Uri Lublin
0c4c3a6916 gitlab-ci: build out-of-tree too
One test is enough -- do it in makecheck.

Must git clean first any previous builds.

Signed-off-by: Uri Lublin <uril@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-05-01 19:38:09 +01:00
Frediano Ziglio
3dfce50169 ci: Remove dependencies from copr build
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2019-01-23 19:15:44 +00:00
Frediano Ziglio
a618d5df57 ci: Do not try to downgrade asciidoc anymore
Is not more necessary to downgrade asciidoc, the issue was fixed
in Fedora 29, now used by CI.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2018-11-08 16:46:31 +00:00
Frediano Ziglio
8b5543dc6a ci: Use release build with Meson
Some compiler warnings are triggered only if optimisations are
turned on. By default with debug build optimisations are disabled.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2018-09-28 13:44:33 +01:00
Eduardo Lima (Etrunko)
b60acbab53 ci: Workaround asciidoc failure
Since commit e5a93d7a30 asciidoc has been
failing. Frediano noticed that there is no such problem with Fedora 27,
and it looks like asciidoc version 8.6.10 in Fedora 28 is causing
the problem. Downgrading it to 8.6.8 seems to fix it while we don't
find the definite solution.

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-08-31 07:30:25 +01:00