platform/upstream/gstreamer.git
5 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.

5 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

5 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

5 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.

5 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

5 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.

5 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

5 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.

5 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

5 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.

5 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.

5 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.

5 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

5 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

5 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

5 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

5 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

5 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.

5 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.

5 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

5 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

5 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

5 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.

5 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.

5 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

5 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

5 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

5 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

5 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

5 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

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

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

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

6 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

6 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 ...

6 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

6 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()

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

6 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 ...

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

6 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

6 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

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

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

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

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

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

6 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

6 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

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

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

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