platform/upstream/gstreamer.git
5 years agoCI: Change the push policy of the docker images
Jordan Petridis [Mon, 12 Nov 2018 13:22:18 +0000 (15:22 +0200)]
CI: Change the push policy of the docker images

If we are in a fork of the project, we would like to be able
to overwrite the `:latest` tag if the registry from any branch
so we won't have to manually overwrite the image tag in the
build/test jobs in the .gitlab-ci.yml file

5 years agoCI: Overwrite the build job from the template
Jordan Petridis [Mon, 12 Nov 2018 12:37:16 +0000 (14:37 +0200)]
CI: Overwrite the build job from the template

Make it so when we build a new image in `gst-ci` it gets
picked up automatically by the job in this repo. For the template
itself we want the images to me be versioned and reproducible.

6 years agogitlab-ci: Only run scripts test on related code
Nicolas Dufresne [Sun, 11 Nov 2018 01:35:10 +0000 (20:35 -0500)]
gitlab-ci: Only run scripts test on related code

Right now we only have one test against build_manifest.py, it
is not needed to run this test if that code haven't changed.
It's really easy to add more file or set a wild card in the
future.

6 years agogitlab-ci: Use quote for "test" stage
Nicolas Dufresne [Sun, 11 Nov 2018 01:34:21 +0000 (20:34 -0500)]
gitlab-ci: Use quote for "test" stage

This is just for consistency, no really needed.

6 years agoAlso run the main CI template in .gitlab-ci.yml
Thibault Saunier [Fri, 9 Nov 2018 18:57:45 +0000 (15:57 -0300)]
Also run the main CI template in .gitlab-ci.yml

Rename some job otherwise some names where too similare.

6 years agoci_template.yml: Temporarly disable builddir artifact
Jordan Petridis [Fri, 9 Nov 2018 19:29:41 +0000 (21:29 +0200)]
ci_template.yml: Temporarly disable builddir artifact

We won't use it till the tests land, and the fd.o runners are
getting overloading causing jobs to fail with 500 error during
artifact upload. [1]

Thus disable this feature temporarly.

[1]: https://gitlab.freedesktop.org/freedesktop/freedesktop/issues/44

6 years agoAdd an initial template of a gitlab-ci config
Jordan Petridis [Thu, 8 Nov 2018 10:32:14 +0000 (12:32 +0200)]
Add an initial template of a gitlab-ci config

This is meant to be used with the `include:` featrue of gitlab [1]
in order to provide the same CI pipeline for all the gstreamer
modules.

[1] https://docs.gitlab.com/ce/ci/yaml/README.html#include

6 years agobuild-manifest: Remove reference to anongit
Edward Hervey [Fri, 9 Nov 2018 11:09:42 +0000 (12:09 +0100)]
build-manifest: Remove reference to anongit

And make the gitlab one the "origin"

6 years agodocker: Use the upstream registry to build images
Jordan Petridis [Fri, 9 Nov 2018 13:05:38 +0000 (15:05 +0200)]
docker: Use the upstream registry to build images

6 years agoDo not hardcode env variables
Jordan Petridis [Thu, 8 Nov 2018 10:28:45 +0000 (12:28 +0200)]
Do not hardcode env variables

6 years agoDocker Fedora: Add more dependencies
Jordan Petridis [Mon, 5 Nov 2018 19:34:55 +0000 (21:34 +0200)]
Docker Fedora: Add more dependencies

Also make the indentation 4-space widgth and consinstant

6 years agoBuild the docker images and push them to the gitalb registry
Jordan Petridis [Mon, 5 Nov 2018 18:52:37 +0000 (20:52 +0200)]
Build the docker images and push them to the gitalb registry

6 years agoRemove autotools support and update meson.
Thibault Saunier [Tue, 7 Aug 2018 23:34:38 +0000 (19:34 -0400)]
Remove autotools support and update meson.

This simplifies our docker images and we should focus on meson
support for our new CI system!

6 years agodocker: Add a dockerfile to export test result with allure
Thibault Saunier [Sun, 4 Nov 2018 23:24:10 +0000 (20:24 -0300)]
docker: Add a dockerfile to export test result with allure

based on alpine

6 years agodocker: Add an archlinux dockerfile
Thibault Saunier [Sun, 4 Nov 2018 23:22:38 +0000 (20:22 -0300)]
docker: Add an archlinux dockerfile

6 years agodocker: ubuntu: Update to 18.04
Thibault Saunier [Tue, 7 Aug 2018 23:28:08 +0000 (19:28 -0400)]
docker: ubuntu: Update to 18.04

6 years agodocker: fedora: Update to fedora 29
Thibault Saunier [Tue, 7 Aug 2018 23:27:40 +0000 (19:27 -0400)]
docker: fedora: Update to fedora 29

6 years agobuild_manifest.py: remove get_hostname function
Jordan Petridis [Tue, 6 Nov 2018 13:48:55 +0000 (15:48 +0200)]
build_manifest.py: remove get_hostname function

Not really needed anymore now that it just calls urlparse.

6 years agobuild_manifest.py: Hardcode the project ids of upstream repos.
Jordan Petridis [Tue, 6 Nov 2018 13:45:53 +0000 (15:45 +0200)]
build_manifest.py: Hardcode the project ids of upstream repos.

Since we can't use the group api to query their id, see previous
commit, we are going to hard code the upstream project id for the
time being.

6 years agobuild_manifest: Drop the group search for now
Jordan Petridis [Mon, 5 Nov 2018 13:18:38 +0000 (15:18 +0200)]
build_manifest: Drop the group search for now

Since we can't authenticate with the CI_JOB_TOKEN it needs a
workaroud. Currently it falls back to the upstream repo which is
good enough to get us going.

6 years agobuild_manifest.py: Fix the api querries
Jordan Petridis [Mon, 5 Nov 2018 11:33:51 +0000 (13:33 +0200)]
build_manifest.py: Fix the api querries

Previously the script assumed that the best match will be the first
result, but that's not always the case apparently.

6 years agobuild_manifest.py: avoid duplicate / in requests
Jordan Petridis [Wed, 31 Oct 2018 11:39:21 +0000 (13:39 +0200)]
build_manifest.py: avoid duplicate / in requests

6 years agobuild_manifest.py: remove request assertion
Jordan Petridis [Tue, 30 Oct 2018 21:39:33 +0000 (23:39 +0200)]
build_manifest.py: remove request assertion

This does indeed brake things

6 years agobuild_manifest.py: Prefer a custom token if set
Jordan Petridis [Tue, 30 Oct 2018 19:00:48 +0000 (21:00 +0200)]
build_manifest.py: Prefer a custom token if set

In order to be able to query the Gitlab Group API we need to be
authenticated. CI_JOB_TOKEN for public jobs has a non-meaningfull
value which does not actually authenticate the Runner to the
intance.

6 years agobuild_manifest.py: add some basic logging
Jordan Petridis [Thu, 25 Oct 2018 16:47:57 +0000 (19:47 +0300)]
build_manifest.py: add some basic logging

6 years agobuild_manifest.py: preserve env vars when running tests
Jordan Petridis [Thu, 25 Oct 2018 11:36:47 +0000 (14:36 +0300)]
build_manifest.py: preserve env vars when running tests

pytest will happily run all the tests in the same proccess,
which means if one mutates an environment variable, the change
will bleed to the rest of the tests.

6 years agobuild_manifest.py: Avoid duplicating some code
Jordan Petridis [Thu, 25 Oct 2018 11:13:12 +0000 (14:13 +0300)]
build_manifest.py: Avoid duplicating some code

6 years agobuild_manifest.py: Avoid making the CI variables global
Jordan Petridis [Thu, 25 Oct 2018 10:57:48 +0000 (13:57 +0300)]
build_manifest.py: Avoid making the CI variables global

There are half of the variables compared to what was used before,
and now they are only used once so its not needed for them anymore
to be global.

This allows running the tests without needing to pre-define them
in your local environment, since the ones needed are mocked in the
tests code anyway.

6 years agoCI: run the build_manifest.py tests
Jordan Petridis [Thu, 25 Oct 2018 10:33:14 +0000 (13:33 +0300)]
CI: run the build_manifest.py tests

6 years agobuild_manifest.py: Properly query the group namepsace
Jordan Petridis [Thu, 25 Oct 2018 10:05:31 +0000 (13:05 +0300)]
build_manifest.py: Properly query the group namepsace

Add a function to query groups, so the fallback code will
be functional once gstreamer migrates to gitlab.

6 years agobuild_manifest.py: Remove an unnecessary if branch
Jordan Petridis [Wed, 24 Oct 2018 17:42:58 +0000 (20:42 +0300)]
build_manifest.py: Remove an unnecessary if branch

I can't think of a scenario where this would be hit, and can't
trigger make the find_reposiroty_sha function return None either.

6 years agobuild_manifest.py: Remove an early exit branch
Jordan Petridis [Wed, 24 Oct 2018 16:47:04 +0000 (19:47 +0300)]
build_manifest.py: Remove an early exit branch

find_repository_sha will conclude to the same result so
we can remove the whole if branch and extra variables
that it needed.

6 years agobuild_manifest.py: Test the find_repository_sha function
Jordan Petridis [Wed, 24 Oct 2018 16:44:19 +0000 (19:44 +0300)]
build_manifest.py: Test the find_repository_sha function

6 years agobuild_manifest.py: Handle bad requests
Jordan Petridis [Wed, 24 Oct 2018 16:40:30 +0000 (19:40 +0300)]
build_manifest.py: Handle bad requests

6 years agobuild_manifest.py: Use more descriprive variable name
Jordan Petridis [Wed, 24 Oct 2018 15:26:21 +0000 (18:26 +0300)]
build_manifest.py: Use more descriprive variable name

6 years agobuild_manifest.py: Make the needed env vars global variables
Jordan Petridis [Wed, 24 Oct 2018 15:25:18 +0000 (18:25 +0300)]
build_manifest.py: Make the needed env vars global variables

6 years agobuild_manifest.py: add a failure test case for branches
Jordan Petridis [Wed, 24 Oct 2018 14:54:34 +0000 (17:54 +0300)]
build_manifest.py: add a failure test case for branches

6 years agobuild_manifest.py: search user namespaces instead of global
Jordan Petridis [Wed, 24 Oct 2018 14:34:58 +0000 (17:34 +0300)]
build_manifest.py: search user namespaces instead of global

Previously find_repository_sha would do a global search of
all the projects in the gitlab instance. This ports it to
use the user namespace endpoint.

Additionally seems like the else: block never worked.

6 years agobuild_manifest.py: Add a function to search user namespace of projects
Jordan Petridis [Wed, 24 Oct 2018 13:54:35 +0000 (16:54 +0300)]
build_manifest.py: Add a function to search user namespace of projects

Also fix a type annotation error in the request functions.

6 years agobuild_manifest.py: Make sure the remote always ends with a slash
Jordan Petridis [Wed, 24 Oct 2018 11:09:17 +0000 (14:09 +0300)]
build_manifest.py: Make sure the remote always ends with a slash

that's how `git-update` in `gst-build` expects it to be

6 years agobuild_manifest.py: Query the exact branch needed
Jordan Petridis [Wed, 24 Oct 2018 10:30:12 +0000 (13:30 +0300)]
build_manifest.py: Query the exact branch needed

6 years agobuild_manifest.py: Add a FIXME comment
Jordan Petridis [Tue, 23 Oct 2018 20:23:16 +0000 (23:23 +0300)]
build_manifest.py: Add a FIXME comment

6 years agobuild_manifest.py: Use the project path not the name
Jordan Petridis [Tue, 23 Oct 2018 20:14:17 +0000 (23:14 +0300)]
build_manifest.py: Use the project path not the name

The project path is what's shown in the url bar, ex
gitlab.example.com/john/gstreamer -> path == gstreamer

The project name is defined in project settings and its just.
Its more common to change the name of a fork than its path.

6 years agobuild_manifest.py: split the request function in two
Jordan Petridis [Tue, 23 Oct 2018 19:10:16 +0000 (22:10 +0300)]
build_manifest.py: split the request function in two

Make it so it does not depend on env variables so it will be easier
to test.

6 years agobuild_manifest.py: Split the hostname resolution from the requests
Jordan Petridis [Tue, 23 Oct 2018 19:04:20 +0000 (22:04 +0300)]
build_manifest.py: Split the hostname resolution from the requests

6 years agobuild_manifest.py: abstract over the gitlab instance base_url
Jordan Petridis [Tue, 23 Oct 2018 17:04:43 +0000 (20:04 +0300)]
build_manifest.py: abstract over the gitlab instance base_url

6 years agobuild_manifest.py: Use .format instead %s for templates
Jordan Petridis [Tue, 23 Oct 2018 14:02:37 +0000 (17:02 +0300)]
build_manifest.py: Use .format instead %s for templates

6 years agobuild_manifest.py: Use fstrings for string formatting
Jordan Petridis [Tue, 23 Oct 2018 13:34:19 +0000 (16:34 +0300)]
build_manifest.py: Use fstrings for string formatting

6 years agobuild_manifest.py: add type annotations
Jordan Petridis [Tue, 23 Oct 2018 12:41:58 +0000 (15:41 +0300)]
build_manifest.py: add type annotations

6 years agogitlab: Add a script to build manifest from a gitlab CI context
Thibault Saunier [Tue, 7 Aug 2018 23:29:17 +0000 (19:29 -0400)]
gitlab: Add a script to build manifest from a gitlab CI context

6 years agofuzzing: Add local fuzz runner
Edward Hervey [Wed, 6 Dec 2017 07:41:59 +0000 (08:41 +0100)]
fuzzing: Add local fuzz runner

Allows testing without full oss-fuzz infrastructure

7 years agofuzzing: Add README
Edward Hervey [Mon, 6 Nov 2017 09:00:32 +0000 (10:00 +0100)]
fuzzing: Add README

7 years agofuzzing: minor script fix
Edward Hervey [Sun, 5 Nov 2017 16:07:49 +0000 (17:07 +0100)]
fuzzing: minor script fix

7 years agofuzzing: Make the script executable
Edward Hervey [Sun, 5 Nov 2017 15:58:15 +0000 (16:58 +0100)]
fuzzing: Make the script executable

7 years agofuzzing: oss-fuzz build script
Edward Hervey [Sun, 5 Nov 2017 15:51:14 +0000 (16:51 +0100)]
fuzzing: oss-fuzz build script

Script that will be executed by oss-fuzz to build fuzzing targets
and dependencies

7 years agofuzzing: Fix leak due to wrong initialization
Edward Hervey [Wed, 1 Nov 2017 13:10:05 +0000 (14:10 +0100)]
fuzzing: Fix leak due to wrong initialization

We were registering plugins again and again and again ...

7 years agofuzzing: use abort instead of (private) g_abort
Edward Hervey [Wed, 1 Nov 2017 08:55:46 +0000 (09:55 +0100)]
fuzzing: use abort instead of (private) g_abort

7 years agofuzzer: Add custom logger that explicitely raises abort()
Edward Hervey [Wed, 1 Nov 2017 08:45:36 +0000 (09:45 +0100)]
fuzzer: Add custom logger that explicitely raises abort()

7 years agofuzzer: Make critical warnings fatal
Edward Hervey [Wed, 1 Nov 2017 07:50:25 +0000 (08:50 +0100)]
fuzzer: Make critical warnings fatal

7 years agofuzzer: Might work better with a pipeline ...
Edward Hervey [Tue, 31 Oct 2017 07:12:43 +0000 (08:12 +0100)]
fuzzer: Might work better with a pipeline ...

7 years agofuzzing: Compilation fixes
Edward Hervey [Tue, 31 Oct 2017 07:03:48 +0000 (08:03 +0100)]
fuzzing: Compilation fixes

7 years agofuzzing: New typefind target
Edward Hervey [Tue, 31 Oct 2017 06:43:07 +0000 (07:43 +0100)]
fuzzing: New typefind target

Simple appsrc ! typefind ! fakesink pipeline

7 years agofuzzing: Add push-based discoverer fuzzing target
Edward Hervey [Sun, 29 Oct 2017 07:15:21 +0000 (08:15 +0100)]
fuzzing: Add push-based discoverer fuzzing target

7 years agoAdd dockerignore
Edward Hervey [Sat, 28 Oct 2017 09:02:06 +0000 (11:02 +0200)]
Add dockerignore

7 years agoAdd gitignore
Edward Hervey [Sat, 28 Oct 2017 09:01:33 +0000 (11:01 +0200)]
Add gitignore

7 years agojenkins: Update meson-fedora
Edward Hervey [Sat, 28 Oct 2017 08:59:08 +0000 (10:59 +0200)]
jenkins: Update meson-fedora

7 years agojenkins: Update meson script
Edward Hervey [Sat, 21 Oct 2017 13:09:33 +0000 (15:09 +0200)]
jenkins: Update meson script

7 years agojenkins: Fix cerbero jenkins file
Edward Hervey [Sat, 21 Oct 2017 12:46:07 +0000 (14:46 +0200)]
jenkins: Fix cerbero jenkins file

7 years agojenkins: Add cerbero debian docker script
Edward Hervey [Sat, 21 Oct 2017 12:44:53 +0000 (14:44 +0200)]
jenkins: Add cerbero debian docker script

7 years agodocker: Add gdb to build images
Edward Hervey [Sat, 21 Oct 2017 11:10:26 +0000 (13:10 +0200)]
docker: Add gdb to build images

So we can get backtraces

7 years agojenkins: Add master ubuntu jenkinsfile
Edward Hervey [Sat, 21 Oct 2017 10:49:11 +0000 (12:49 +0200)]
jenkins: Add master ubuntu jenkinsfile

7 years agodocker: Add initial images
Edward Hervey [Sat, 21 Oct 2017 10:45:38 +0000 (12:45 +0200)]
docker: Add initial images

7 years agoInitial commit
Edward Hervey [Sat, 21 Oct 2017 10:07:02 +0000 (12:07 +0200)]
Initial commit