platform/upstream/gstreamer.git
3 years agocitemplate: rework gitlab rules
Jordan Petridis [Wed, 26 Aug 2020 11:55:58 +0000 (14:55 +0300)]
citemplate: rework gitlab rules

Rework rules of jobs to prever duplicate pipelines.

https://docs.gitlab.com/ce/ci/yaml/README.html#prevent-duplicate-pipelines

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/331>

3 years agoci_template: remove rules from the docker build
Jordan Petridis [Thu, 27 Aug 2020 12:35:12 +0000 (15:35 +0300)]
ci_template: remove rules from the docker build

We can run the jobs always automatically since, most of the
time they will be copying/reffing the existance image in the
registry.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/331>

3 years agocitemplate: Allow spaces in filenames when indenting
Nirbheek Chauhan [Wed, 5 Aug 2020 20:04:18 +0000 (01:34 +0530)]
citemplate: Allow spaces in filenames when indenting

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/328>

3 years agocitemplate: add support for .indentignore file to indent job
Tim-Philipp Müller [Tue, 4 Aug 2020 23:32:17 +0000 (00:32 +0100)]
citemplate: add support for .indentignore file to indent job

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1465

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/328>

3 years agocitemplate: skip integration testsuites for gstreamer-sharp
Jordan Petridis [Sun, 26 Jul 2020 10:01:06 +0000 (13:01 +0300)]
citemplate: skip integration testsuites for gstreamer-sharp

Close #80

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/326>

3 years agocitemplate: make it so docker builds only run for detached pipelines
Jordan Petridis [Tue, 7 Jul 2020 16:25:19 +0000 (19:25 +0300)]
citemplate: make it so docker builds only run for detached pipelines

Currently, if you have a MR open, there 2 pipelines being
triggered. One normal, and one detached.

Previously, if you were to rebuild an image, the jobs of the
docker build stage would be executed concurrently, race
and end up both rebuilding the image.

Make them manual for normal pipelines to avoid such occurrence
and waste of resources.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/320>

3 years agocitemplate: properly pin the image of the docs job
Jordan Petridis [Fri, 24 Jul 2020 15:53:39 +0000 (18:53 +0300)]
citemplate: properly pin the image of the docs job

we don't need the image to be copied or rebuilt, as
its currently pinned shortly and won't change anytime soon.

ammends dc486667426d0d31284e25001cfece45879595a8 !324

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/325>

3 years agocitemplate: revert the docs job to the previous image build
Jordan Petridis [Thu, 23 Jul 2020 12:16:55 +0000 (15:16 +0300)]
citemplate: revert the docs job to the previous image build

The update to f31 from !271 triggered an error in hotdoc it seems,
so rollback for now till we figure it out.

https://gitlab.freedesktop.org/gdesmott/gst-plugins-base/-/jobs/3764215

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/324>

3 years agodocker/fedora: update base to fedora 31
Jordan Petridis [Wed, 10 Jun 2020 14:47:08 +0000 (17:47 +0300)]
docker/fedora: update base to fedora 31

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/271>

4 years agogitlab: Support android tarballs compressed with xz
Nirbheek Chauhan [Fri, 10 Jul 2020 16:59:37 +0000 (22:29 +0530)]
gitlab: Support android tarballs compressed with xz

Needed for
https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/540.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/322>

4 years agogitlab: update hotdoc
Mathieu Duponchelle [Thu, 9 Jul 2020 23:09:26 +0000 (01:09 +0200)]
gitlab: update hotdoc

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/321>

4 years agodocker/fedora: add gtest to get openh264 to build again
Jordan Petridis [Mon, 29 Jun 2020 13:05:03 +0000 (16:05 +0300)]
docker/fedora: add gtest to get openh264 to build again

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/315>

4 years agogst-build: only enable werror for gst recipes
Matthew Waters [Mon, 30 Sep 2019 04:44:10 +0000 (14:44 +1000)]
gst-build: only enable werror for gst recipes

It may throws various warning that are treated as errors for other
repositories

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/171>

4 years agocitemplate: use the default keyword for our global policy
Jordan Petridis [Thu, 2 Jul 2020 14:21:58 +0000 (17:21 +0300)]
citemplate: use the default keyword for our global policy

It was introduced in a recentish release along with pipelines
for merge requests, but it required the use of rules.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/318>

4 years agocitemplate: avoid the need to upgrade buildah in docker build
Jordan Petridis [Thu, 2 Jul 2020 12:43:13 +0000 (15:43 +0300)]
citemplate: avoid the need to upgrade buildah in docker build

We only need the newer version from the image, to support
the --arch arg, but we don't really use it yet so we
could live without it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/318>

4 years agocitemplate: run check in gst-examples but not integration tests
Jordan Petridis [Wed, 1 Jul 2020 15:34:07 +0000 (18:34 +0300)]
citemplate: run check in gst-examples but not integration tests

gst-example contains tests for check but not integrations suite

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/318>

4 years agocitemplate: run the docs job in more modules
Jordan Petridis [Wed, 1 Jul 2020 15:32:26 +0000 (18:32 +0300)]
citemplate: run the docs job in more modules

Needed to catch regressions in the docs cache files.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/318>

4 years agocitemplate: slightly improve logging of docker build jobs
Jordan Petridis [Wed, 1 Jul 2020 14:22:33 +0000 (17:22 +0300)]
citemplate: slightly improve logging of docker build jobs

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/318>

4 years agoci: use gst-indent from docker image
Guillaume Desmottes [Mon, 15 Jun 2020 12:06:59 +0000 (14:06 +0200)]
ci: use gst-indent from docker image

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/318>

4 years agogitlab: Update hotdoc
Thibault Saunier [Wed, 1 Jul 2020 23:56:16 +0000 (19:56 -0400)]
gitlab: Update hotdoc

4 years agoci_template: update hotdoc
Mathieu Duponchelle [Wed, 1 Jul 2020 17:02:38 +0000 (19:02 +0200)]
ci_template: update hotdoc

4 years agomsys2: Fix pacman update
Nirbheek Chauhan [Tue, 30 Jun 2020 12:16:33 +0000 (17:46 +0530)]
msys2: Fix pacman update

Match the official steps by MSYS2 upstream for updating on CI:

https://github.com/msys2/setup-msys2/blob/master/main.js#L98

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/317>

4 years agocitemplate: check if the gitlab registry is enabled on the fork
Jordan Petridis [Mon, 29 Jun 2020 21:12:45 +0000 (00:12 +0300)]
citemplate: check if the gitlab registry is enabled on the fork

If its not CI_REGISTRY_IMAGE will be null and break the job.
Instead paste a helpful message with the documentation on how
to enable the registry.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/316>

4 years agocitemplate: remove tag restriction for docker builds jobs
Jordan Petridis [Mon, 29 Jun 2020 13:47:52 +0000 (16:47 +0300)]
citemplate: remove tag restriction for docker builds jobs

There isn't anything particular that needs to be on the gstreamer
runners, and the other shared runners should be able to handle
them fine.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/314>

4 years agodocker: move gst-indent script into docker image
Guillaume Desmottes [Mon, 15 Jun 2020 12:05:22 +0000 (14:05 +0200)]
docker: move gst-indent script into docker image

This script is now very stable, so downloading it everytime is no longer useful.
It can also helps avoid network errors when running ci jobs.

Fix #70

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/306>

4 years agocitemplate: also check the forked registry for image builds
Jordan Petridis [Thu, 25 Jun 2020 09:35:10 +0000 (12:35 +0300)]
citemplate: also check the forked registry for image builds

In case you are developing a set of changes in a module, in
conjunction with a branch in gst-ci, you will end up with
a template with a different tag than the upstream repo, which
will be refferencing your gst-ci forked registry.

But that image won't existin in the namespace the
module would be running at, so we need to copy it from there.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years agocitemplate: use the fd.o pre existing buildah image to build containers
Jordan Petridis [Thu, 25 Jun 2020 09:49:05 +0000 (12:49 +0300)]
citemplate: use the fd.o pre existing buildah image to build containers

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years agoci_template: merge docker builds into the normal pipeline
Jordan Petridis [Fri, 19 Jun 2020 12:27:36 +0000 (15:27 +0300)]
ci_template: merge docker builds into the normal pipeline

Port the build docker jobs to the template and integrate it into
the pipeline. Then change the image uris to the new system,
and the user forked registries.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years ago.gitlab-ci.yml: kill local jobs
Jordan Petridis [Fri, 19 Jun 2020 08:09:38 +0000 (11:09 +0300)]
.gitlab-ci.yml: kill local jobs

The idea behind local jobs was that you would have jobs that
share the same setup as the citemplate ones but would always
be pointing to your forked registry with your custom build of
the image, since the citemplate hardcoded the image it was
running against.

With the changes introduced in the previous commit
we now mirror the setup from freedesktop/ci-templates and the idea
is that jobs always run from the registry in your fork. If the
image sha/id matches the one from the upstream registry, its copied
over else a new one is build, pushed and tested.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years ago.gitlab-ci.yml: adapt the docker build jobs to be more like citemplates
Jordan Petridis [Thu, 18 Jun 2020 16:18:27 +0000 (19:18 +0300)]
.gitlab-ci.yml: adapt the docker build jobs to be more like citemplates

This is the inital step towards migrating our docker images setup
to something closer and eventually freedesktop/citemplates [1]

The idea is that jobs always run from the registry in your fork. If the
image sha/id matches the one from the upstream registry, its copied
over else a new one is build, pushed and tested.

Only change the fedora job for now while testing.

[1]: https://gitlab.freedesktop.org/freedesktop/ci-templates

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years agoimage_builds: simplify the tags
Jordan Petridis [Wed, 10 Jun 2020 11:39:32 +0000 (14:39 +0300)]
image_builds: simplify the tags

We can use docker labels to pass the metadata we want
and make the tag simpoler.

also small fixup, make it so buildah it uses chroot isolation
and update the base image

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years agodocker/fedora: update rust toolchain to 1.44
Jordan Petridis [Thu, 18 Jun 2020 13:29:33 +0000 (16:29 +0300)]
docker/fedora: update rust toolchain to 1.44

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years agodocker/fedora: update meson version to 0.54.3
Jordan Petridis [Tue, 9 Jun 2020 16:00:19 +0000 (19:00 +0300)]
docker/fedora: update meson version to 0.54.3

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/308>

4 years agogitlab: Update hotdoc
Thibault Saunier [Thu, 25 Jun 2020 22:20:32 +0000 (18:20 -0400)]
gitlab: Update hotdoc

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/312>

4 years agogitlab: Update hotdoc to 0.12.2
Thibault Saunier [Tue, 23 Jun 2020 22:03:04 +0000 (18:03 -0400)]
gitlab: Update hotdoc to 0.12.2

Adding Since markers check

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/310>

4 years agoci: Update to hotdoc
Thibault Saunier [Tue, 23 Jun 2020 16:21:20 +0000 (12:21 -0400)]
ci: Update to hotdoc

4 years agocitemplate: upate the cerbero image
Jordan Petridis [Thu, 18 Jun 2020 08:14:28 +0000 (11:14 +0300)]
citemplate: upate the cerbero image

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/307>

4 years agoCI: Combine deps and build for cerbero builds
Nicolas Dufresne [Tue, 9 Jun 2020 19:40:45 +0000 (15:40 -0400)]
CI: Combine deps and build for cerbero builds

This change combine the deps and the build step when running cerbero CI in
cerbero repository itself. This removes avoidable usage of large artifacts.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/303>

4 years agodocker/windows: update msys snapshot
Jordan Petridis [Tue, 2 Jun 2020 08:33:47 +0000 (11:33 +0300)]
docker/windows: update msys snapshot

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/297>

4 years agogitlab: Enforce documentation cache updates
Thibault Saunier [Thu, 4 Jun 2020 21:06:38 +0000 (17:06 -0400)]
gitlab: Enforce documentation cache updates

4 years agodocker: fedora: install nasm properly
Tim-Philipp Müller [Thu, 4 Jun 2020 17:44:51 +0000 (18:44 +0100)]
docker: fedora: install nasm properly

Add it to install list not debuginfo-install list.

Should make openh264 subproject work in gst-build builds.

Fixes #76

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/301>

4 years agoci: Update fedora image
Thibault Saunier [Thu, 4 Jun 2020 16:48:31 +0000 (12:48 -0400)]
ci: Update fedora image

4 years agogitlab: Update hotdoc to latest release
Thibault Saunier [Thu, 4 Jun 2020 16:34:15 +0000 (12:34 -0400)]
gitlab: Update hotdoc to latest release

4 years agoRevert "docker: install intel-mediasdk on Fedora image"
Thibault Saunier [Thu, 4 Jun 2020 15:04:53 +0000 (11:04 -0400)]
Revert "docker: install intel-mediasdk on Fedora image"

This is not available on F30

This reverts commit 9405f9245b1063896f1c02a3b0468a1ecc870193.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/299>

4 years agogitlab: Ensure devhelp files are installed
Thibault Saunier [Thu, 4 Jun 2020 14:17:32 +0000 (10:17 -0400)]
gitlab: Ensure devhelp files are installed

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/299>

4 years agoRevert "docker: fedora: update to Fedora 31"
Thibault Saunier [Thu, 4 Jun 2020 14:48:54 +0000 (10:48 -0400)]
Revert "docker: fedora: update to Fedora 31"

This is unused yet because it breaks some things

This reverts commit d016fa74531452c20d76f15d4fbfb31476837766.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/299>

4 years agoci_template: pin hotdoc to pre fundamental documentation
Mathieu Duponchelle [Thu, 4 Jun 2020 15:56:00 +0000 (17:56 +0200)]
ci_template: pin hotdoc to pre fundamental documentation

4 years agoci_template: pin hotdoc to pre gst cache format change
Mathieu Duponchelle [Thu, 4 Jun 2020 15:29:49 +0000 (17:29 +0200)]
ci_template: pin hotdoc to pre gst cache format change

4 years agogitlab: Enable docs only when building the doc
Thibault Saunier [Thu, 4 Jun 2020 02:33:50 +0000 (22:33 -0400)]
gitlab: Enable docs only when building the doc

4 years agoci_template: windows: clone the gst-build specified in the manifest
Jordan Petridis [Fri, 29 May 2020 11:30:26 +0000 (14:30 +0300)]
ci_template: windows: clone the gst-build specified in the manifest

In all our other builds, we are using the clone_manifest_ref script
to fetch the revision of gst-build that we discover in the manifest.
For the windows job this was missed it seems, but didn't cause
any issues till now cause it only affected the gst-build MRs.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/296>

4 years agoci: Check valgrind for all modules on gst-devtools
Thibault Saunier [Tue, 26 May 2020 21:38:45 +0000 (17:38 -0400)]
ci: Check valgrind for all modules on gst-devtools

Now that we have [`gst-tester`] all module are starting to be tested
with `gst-validate` (core and -base already have validate based unit
tests) so we need to ensure that changes there do not break those
modules.

[gst-tester]: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/461

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/294>

4 years agoci_template: update cerbero build-deps for gst-validate -> gst-devtools-1.0 rename
Tim-Philipp Müller [Fri, 29 May 2020 12:05:02 +0000 (13:05 +0100)]
ci_template: update cerbero build-deps for gst-validate -> gst-devtools-1.0 rename

https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/199
https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/490

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/295>

4 years agogst-omx: update vcu-omx-il public release branch
Stéphane Cerveau [Wed, 20 May 2020 15:15:44 +0000 (17:15 +0200)]
gst-omx: update vcu-omx-il public release branch

Use release 2020.01 for the xilinx zynq target
from https://github.com/Xilinx/vcu-omx-il

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/293>

4 years ago.gitlab-ci.yml: fix buildah syntax for tagging images
Jordan Petridis [Thu, 14 May 2020 09:31:07 +0000 (12:31 +0300)]
.gitlab-ci.yml: fix buildah syntax for tagging images

4 years agodocker/fedora: Remove WPEBackend-FDO
Philippe Normand [Wed, 13 May 2020 14:10:40 +0000 (15:10 +0100)]
docker/fedora: Remove WPEBackend-FDO

It should now be built as a gst-build subproject. The version in Fedora is not
suitable for CI tests.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/292>

4 years ago.gitlab-ci.yml: fix typo in buildah images
Jordan Petridis [Thu, 14 May 2020 08:40:50 +0000 (11:40 +0300)]
.gitlab-ci.yml: fix typo in buildah images

4 years agoandroid: update to gradle 5.6.4 without --no-search-upwards
Matthew Waters [Fri, 8 May 2020 09:39:09 +0000 (19:39 +1000)]
android: update to gradle 5.6.4 without --no-search-upwards

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/291>

4 years agoci: run CI for the new vulkan android example
Matthew Waters [Fri, 8 May 2020 08:22:34 +0000 (18:22 +1000)]
ci: run CI for the new vulkan android example

HACK: pointing to user repo
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/291>

4 years agodocker/windows: add script to build the image with the correct branch and tag
Jordan Petridis [Mon, 27 Apr 2020 08:10:26 +0000 (11:10 +0300)]
docker/windows: add script to build the image with the correct branch and tag

also move the default_branch arg later in the dockerfile to
avoid invalidating previous layers

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/287>

4 years agoci_template: try harder to cleanup after build jobs
Jordan Petridis [Mon, 27 Apr 2020 12:39:45 +0000 (15:39 +0300)]
ci_template: try harder to cleanup after build jobs

Let's try extra hard to clean after ourselves, cause gitlab-runner
occasionally decides to reuse existing, polluted, volumes...

so much for clean build environments...

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/288>

4 years agowindows/docker: allow to specify the branch to pull for gst-build
Jordan Petridis [Thu, 23 Apr 2020 15:49:07 +0000 (18:49 +0300)]
windows/docker: allow to specify the branch to pull for gst-build

Similar to !232

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/285>

4 years agodocker: remove unused Dockerfiles
Matthew Waters [Fri, 24 Apr 2020 04:16:23 +0000 (14:16 +1000)]
docker: remove unused Dockerfiles

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/286>

4 years agoci_tepmlate: disable the msys job again
Jordan Petridis [Thu, 23 Apr 2020 13:55:01 +0000 (16:55 +0300)]
ci_tepmlate: disable the msys job again

Its still broken and keeps haning randomly... 😢️

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/284>

4 years agoci_template: enable the windows x86 and msys native jobs again
Jordan Petridis [Wed, 22 Apr 2020 08:00:02 +0000 (11:00 +0300)]
ci_template: enable the windows x86 and msys native jobs again

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/281>

4 years agoci_template: don't use prebuilt binaries for test jobs
Jordan Petridis [Tue, 21 Apr 2020 08:54:04 +0000 (11:54 +0300)]
ci_template: don't use prebuilt binaries for test jobs

Previously we were optimizing for cpu time, so we where building
gst-build once and then exporting that to be used by the test jobs.
However this meant that we where uploading 200mb (previously 600mb)
zipped of artifacts and then re-downloading them for each test job.
This caused big costs in terms of cloud egress since the runners
aren't hosted on the same cloud as the storage/artifacts instance.

Instead we are going to be rebuilding gst-build for each test
job from now, it also doesn't take more time than the network
i/o would of downloading the artifacts, so the impact of rebuilding
shouldn't be noticebly.

We are also using pinned git refs the modules we rebuild from
the manifest, so the binaries should be reproducible for the most
part (minus things like .pyc files).

Close #68

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/280>

4 years agooss-fuzz: update for autotools removal
Matthew Waters [Mon, 20 Apr 2020 08:36:28 +0000 (18:36 +1000)]
oss-fuzz: update for autotools removal

4 years agobuild docker image: tag the jobs to use the gstreamer runners
Jordan Petridis [Wed, 15 Apr 2020 16:54:15 +0000 (19:54 +0300)]
build docker image: tag the jobs to use the gstreamer runners

docker builds can be big, and other shared runner have smaller
storage space which we should avoid filling if can be avoided.
The gst tagged runners are a better fit for such builds since
their disk storage is about 1-2 terabytes.

4 years agoReplace docker-in-docker with buildah
Jordan Petridis [Tue, 26 Mar 2019 18:40:35 +0000 (20:40 +0200)]
Replace docker-in-docker with buildah

This avoids the need of using privilledged namespaces and dind
as buildah are able to build images unprivilledged.

One thing to note is that buildah inside docker is not a
supported configuration and not tested in upstream podman,
but the possible fallout is still easier to deal with than
dind and requiring privileged runners.

4 years agoci: Always allow redirect when using curl
Nicolas Dufresne [Sun, 19 Apr 2020 18:30:43 +0000 (14:30 -0400)]
ci: Always allow redirect when using curl

This done by specifying -L parameter. Some of the FDO infrastructure is using
redirect.

4 years agoci_template: avoid exporting the mediafiles into build artifacts
Jordan Petridis [Thu, 16 Apr 2020 18:11:36 +0000 (21:11 +0300)]
ci_template: avoid exporting the mediafiles into build artifacts

Previously we where accidently exporting the whole repo of
gst-integration-testsuites which includes 350mb of raw media
files and made the artifacts storage explode through the roof
along with the CI bills fd.o had to pay for uploading and
redownloading the artifacts

To deal with this, we clean all the media files from the builddir
and when needed we copy them over from the cache in the docker image,
and then git fetch the repo.

Close #69

4 years agoci_template: avoid building libnice tests and examples in the subproject
Jordan Petridis [Fri, 17 Apr 2020 04:29:16 +0000 (07:29 +0300)]
ci_template: avoid building libnice tests and examples in the subproject

We don't run the libnice testsuite, and when binaries are built
they consume ~45mb of space. This increases the size of the artifacts
we export from the gst-build job for the testsuite and drives up
the storage and bandwith costs when re-downloading the artifacts.

Similary disable the test targets of couple other subprojects as well

4 years agoDon't let marge run post-merge pipeline
Nicolas Dufresne [Fri, 17 Apr 2020 17:47:22 +0000 (13:47 -0400)]
Don't let marge run post-merge pipeline

This is a small regression from previous change.

4 years agoclone_manifest_ref: add the ability to fetch instead of cloning the repo
Jordan Petridis [Fri, 17 Apr 2020 05:08:15 +0000 (08:08 +0300)]
clone_manifest_ref: add the ability to fetch instead of cloning the repo

4 years agoci: Let Marge the merge bot trigger our CI
Nicolas Dufresne [Thu, 16 Apr 2020 16:02:36 +0000 (12:02 -0400)]
ci: Let Marge the merge bot trigger our CI

We have notice that a lot of CI activity is cause by user pushing to their
branch after having created an MR. To reduce our CI foot-print, the CI will
now only be automatically triggered when a reviewer assign the MR to the merge
bot. It will still be possible to run the CI manually but the result of that
CI won't be used by Marge.

4 years agoci_template: reduce the size of exported artifacts in gst-build jobs
Jordan Petridis [Fri, 10 Apr 2020 17:42:57 +0000 (20:42 +0300)]
ci_template: reduce the size of exported artifacts in gst-build jobs

This is initial work looking over the deps subprojects and
cleaning up the low hanging fruits. Saves about 90mb compressed.

4 years agowindows: udpate the docker image
Jordan Petridis [Tue, 7 Apr 2020 11:52:37 +0000 (14:52 +0300)]
windows: udpate the docker image

This is a rebuild of the image to acount for an issue
with a security update during February 2020

https://support.microsoft.com/en-us/help/4542617/you-might-encounter-issues-when-using-windows-server-containers-with-t

This also means we can drop the gstreamer-windows tag
that was added in 32c91139a4dac04e447119aa1b9dfdc204dc86eb

4 years agowindows: switch the image tag to ltsc2019
Jordan Petridis [Tue, 7 Apr 2020 11:45:08 +0000 (14:45 +0300)]
windows: switch the image tag to ltsc2019

This should have no functional difference as 1809 is an alias
to ltsc2019 but it makes it more explicit that what branch we
are tracking

4 years agoUpdate cerbero and android docker images
Matthew Waters [Mon, 6 Apr 2020 11:52:59 +0000 (21:52 +1000)]
Update cerbero and android docker images

Partial revert of 9ed6305e1fc139edb50c24ea00169fc481b0517d

For post-merge of android ndk-21 as part of:
https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/266
https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/463

4 years agoPartial revert of 9ed6305e1fc139edb50c24ea00169fc481b0517d
Matthew Waters [Mon, 6 Apr 2020 08:38:41 +0000 (18:38 +1000)]
Partial revert of 9ed6305e1fc139edb50c24ea00169fc481b0517d

For post-merge of android ndk-21 as part of:
https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/266
https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/463

4 years agodocker/cerbero: checkout proposed ndk-21 cerbero branch
Matthew Waters [Thu, 2 Apr 2020 00:28:09 +0000 (11:28 +1100)]
docker/cerbero: checkout proposed ndk-21 cerbero branch

4 years agodocker: update android image container for ndk-21
Matthew Waters [Thu, 2 Apr 2020 00:26:04 +0000 (11:26 +1100)]
docker: update android image container for ndk-21

4 years agoci: Update to use new external storage for cerbero deps
Nicolas Dufresne [Thu, 2 Apr 2020 21:40:15 +0000 (17:40 -0400)]
ci: Update to use new external storage for cerbero deps

The goal of this change is to reduce egress on the FDO servers.

4 years agogitlab: don't upload gst-build artifacts we never use
Matthew Waters [Thu, 2 Apr 2020 12:42:41 +0000 (23:42 +1100)]
gitlab: don't upload gst-build artifacts we never use

4 years agogitlab: compress deps using xz on master
Matthew Waters [Thu, 20 Jun 2019 08:52:17 +0000 (18:52 +1000)]
gitlab: compress deps using xz on master

Results in a better compression for artifacts that are going to be used
multiple times.

4 years agogst-build: Disabling uploading of artifacts for now
Nirbheek Chauhan [Sat, 28 Mar 2020 11:04:03 +0000 (16:34 +0530)]
gst-build: Disabling uploading of artifacts for now

It seems to be timing out with high frequency only on Windows runners.

```
Version:      12.8.0
00:47
Git revision: 1b659122
Git branch:   12-8-stable
GO version:   go1.13.7
Built:        2020-02-22T03:03:07+0000
OS/Arch:      windows/amd64
Uploading artifacts...
gst-build/build/meson-logs/: found 2 matching files
WARNING: Failed to load system CertPool: crypto/x509: system root pool is not available on Windows
ERROR: Job failed (system failure): aborted: <nil>
```

See: https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/261

4 years agoci_template: Increase timeout of -good valgrind
Seungha Yang [Sat, 28 Mar 2020 08:40:18 +0000 (17:40 +0900)]
ci_template: Increase timeout of -good valgrind

splitmux unit test includes encoding task which might require more time
to finish test

4 years agogst-build: Disable vs2017 x86 job too
Nirbheek Chauhan [Fri, 27 Mar 2020 15:15:32 +0000 (20:45 +0530)]
gst-build: Disable vs2017 x86 job too

This might be related to the same issue described in the previous
commit: Till we can update the container image to the Feb 11 security
update, x86 executables and in general the container image will behave
badly because of:

https://support.microsoft.com/en-us/help/4542617/you-might-encounter-issues-when-using-windows-server-containers-with-t

vs2017 x86 has been failing with a runner system failure while
uploading artifacts / submitting job status:

```
Uploading artifacts...
gst-build/build/meson-logs/: found 2 matching files
WARNING: Failed to load system CertPool: crypto/x509: system root pool is not available on Windows
ERROR: Job failed (system failure): aborted: <nil>
```

https://gitlab.freedesktop.org/slomo/gst-plugins-good/-/jobs/2084184

Disable it for now.

4 years agogst-build: Only use gstreamer runners for windows jobs
Nirbheek Chauhan [Thu, 26 Mar 2020 13:37:19 +0000 (19:07 +0530)]
gst-build: Only use gstreamer runners for windows jobs

Till we can update the container image to the Feb 11 security update,
all x86 executables will crash because of:

https://support.microsoft.com/en-us/help/4542617/you-might-encounter-issues-when-using-windows-server-containers-with-t

So restrict to the gstreamer runners that are running an older Windows
version. For example:

```
subprojects\gstreamer\gst\parse\meson.build:10:0: ERROR: Command
  "c:\python38\python.exe
  C:\builds\thaytan\gst-plugins-good\gst-build\subprojects\gstreamer\gst\parse\get_flex_version.py
  C:\builds\thaytan\gst-plugins-good\gst-build\subprojects\win-flex-bison-binaries\win_flex.exe"
  failed with status 1.
```

https://gitlab.freedesktop.org/thaytan/gst-plugins-good/-/jobs/2066909

```
meson.build:1:0: ERROR: Executables created by c compiler cl are not runnable.
```

https://gitlab.freedesktop.org/nirbheek/gst-ci/-/jobs/2070394

4 years agogst-build: Always include meson-logs in the artifacts
Nirbheek Chauhan [Thu, 26 Mar 2020 11:50:03 +0000 (17:20 +0530)]
gst-build: Always include meson-logs in the artifacts

Can't figure out build errors without this.

4 years agoci: Re-enable example builds for MR
Nicolas Dufresne [Wed, 25 Mar 2020 21:22:09 +0000 (17:22 -0400)]
ci: Re-enable example builds for MR

As we should still build the examples to make sure they are not broken.

Reported-by: Matthew Waters <matthew@centricular.com>
4 years agoci: Always run CI for gst-docs
Nicolas Dufresne [Wed, 25 Mar 2020 18:36:48 +0000 (14:36 -0400)]
ci: Always run CI for gst-docs

We have an external cron that rely on this to pull and update the doc on the
webpage.

Fixes #64

4 years agoci: Remove uneeded cerbero jobs from gst-docs CI
Nicolas Dufresne [Wed, 25 Mar 2020 18:00:20 +0000 (14:00 -0400)]
ci: Remove uneeded cerbero jobs from gst-docs CI

4 years agodocker: install intel-mediasdk on Fedora image
Guillaume Desmottes [Fri, 7 Feb 2020 07:18:44 +0000 (12:48 +0530)]
docker: install intel-mediasdk on Fedora image

Will be used to build gst-msdk in gst-plugins-bad.
Fix #52

4 years agodocker: fedora: update to Fedora 31
Guillaume Desmottes [Fri, 7 Feb 2020 08:07:06 +0000 (13:37 +0530)]
docker: fedora: update to Fedora 31

aom-extra-tools has been removed from Fedora:
https://src.fedoraproject.org/rpms/aom/c/038d7b2164e15c9067af3d2d2e0b50a4d890b218?branch=master

gstreamer1-plugins-bad-nonfree has been removed from rpmfusion:
https://pkgs.rpmfusion.org/cgit/nonfree/gstreamer1-plugins-bad-nonfree.git/commit/?id=30641c2ded63d12e099d32cb814bab8244f48c90
It was only used of its build deps of which only faac-devel was not
already installed, so I added it instead.

Need to manually install pip3 now.

4 years agoci: Switch msys2 job to manual
Nicolas Dufresne [Fri, 20 Mar 2020 11:57:41 +0000 (07:57 -0400)]
ci: Switch msys2 job to manual

This will reduce the excessive load on the runners which are having issues
with this job in particuliar. We will revisit when we better understand the
runners issues.

4 years agoci: Replace REGEX variables
Nicolas Dufresne [Wed, 18 Mar 2020 01:58:54 +0000 (21:58 -0400)]
ci: Replace REGEX variables

Passing regex as variable does not really works, we ended up matching the
regex as a string instead. Replace all REGEX variable with rules: override.
It is longer but more reliable.

Related to !247
Fixes #63

4 years agoci: disable Rust jobs for now
Guillaume Desmottes [Wed, 18 Mar 2020 07:57:12 +0000 (08:57 +0100)]
ci: disable Rust jobs for now

They are not reliable enough (#53) and generated artifacts are too big (#61)
so disable them until those issues are solved.

Fix https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/issues/97

4 years agoci: Fix gstreamer-full job to run in gst-build
Nicolas Dufresne [Wed, 18 Mar 2020 01:38:34 +0000 (21:38 -0400)]
ci: Fix gstreamer-full job to run in gst-build

It was set to gst-omx by accident instead.

4 years agoci: Fix exceptions for gst indent job
Nicolas Dufresne [Wed, 18 Mar 2020 01:27:09 +0000 (21:27 -0400)]
ci: Fix exceptions for gst indent job

The name of the variable passing the exception regex wasn't correct. As a side
effect, gst-indent was not run on all repository.

4 years agoci: Remove spurious except regex in valgrind test
Nicolas Dufresne [Tue, 17 Mar 2020 15:59:34 +0000 (11:59 -0400)]
ci: Remove spurious except regex in valgrind test

This was ported but unused from the previous code. In the new code it was
preventing valgrind jobs from being run in gstreamer repository.