Jordan Petridis
7ff131879b
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.
2018-11-05 14:41:50 +02:00
Jordan Petridis
39e2ddf788
build_manifest.py: avoid duplicate / in requests
2018-11-05 14:41:50 +02:00
Jordan Petridis
76d38faf20
build_manifest.py: remove request assertion
...
This does indeed brake things
2018-11-05 14:41:50 +02:00
Jordan Petridis
b5b71baddb
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.
2018-11-05 14:41:50 +02:00
Jordan Petridis
02b57af288
build_manifest.py: add some basic logging
2018-11-05 14:41:50 +02:00
Jordan Petridis
41a4ca4c8e
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.
2018-11-05 14:31:52 +02:00
Jordan Petridis
f4d6e7e9c6
build_manifest.py: Avoid duplicating some code
2018-11-05 14:31:52 +02:00
Jordan Petridis
07a1480fc9
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.
2018-11-05 14:31:52 +02:00
Jordan Petridis
0fd632e833
CI: run the build_manifest.py tests
2018-11-05 14:31:52 +02:00
Jordan Petridis
2e2864cde7
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.
2018-11-05 14:31:52 +02:00
Jordan Petridis
490e936dd1
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.
2018-11-05 14:31:52 +02:00
Jordan Petridis
64c0e6fba3
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.
2018-11-05 14:31:52 +02:00
Jordan Petridis
e042a76031
build_manifest.py: Test the find_repository_sha function
2018-11-05 14:31:52 +02:00
Jordan Petridis
412d980b62
build_manifest.py: Handle bad requests
2018-11-05 14:31:52 +02:00
Jordan Petridis
10b1812e70
build_manifest.py: Use more descriprive variable name
2018-11-05 14:31:52 +02:00
Jordan Petridis
45c89ece12
build_manifest.py: Make the needed env vars global variables
2018-11-05 14:31:52 +02:00
Jordan Petridis
17195ea3aa
build_manifest.py: add a failure test case for branches
2018-11-05 14:31:52 +02:00
Jordan Petridis
ea5459e127
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.
2018-11-05 14:31:52 +02:00
Jordan Petridis
0b9a8b5cac
build_manifest.py: Add a function to search user namespace of projects
...
Also fix a type annotation error in the request functions.
2018-11-05 14:31:52 +02:00
Jordan Petridis
ca9b1362b3
build_manifest.py: Make sure the remote always ends with a slash
...
that's how `git-update` in `gst-build` expects it to be
2018-11-05 14:31:52 +02:00
Jordan Petridis
dc275a204e
build_manifest.py: Query the exact branch needed
2018-11-05 14:31:51 +02:00
Jordan Petridis
7ad193f276
build_manifest.py: Add a FIXME comment
2018-11-05 11:24:12 +02:00
Jordan Petridis
7ede52d7c7
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.
2018-11-05 11:24:12 +02:00
Jordan Petridis
61c5d7b6cf
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.
2018-11-05 11:24:12 +02:00
Jordan Petridis
6772fa76aa
build_manifest.py: Split the hostname resolution from the requests
2018-11-05 11:24:12 +02:00
Jordan Petridis
9c53cd0db0
build_manifest.py: abstract over the gitlab instance base_url
2018-11-05 11:24:12 +02:00
Jordan Petridis
6e77bfb893
build_manifest.py: Use .format instead %s for templates
2018-11-05 11:24:12 +02:00
Jordan Petridis
c457ca0570
build_manifest.py: Use fstrings for string formatting
2018-11-05 11:24:12 +02:00
Jordan Petridis
095c93c62c
build_manifest.py: add type annotations
2018-11-05 11:24:12 +02:00
Thibault Saunier
a080432a32
gitlab: Add a script to build manifest from a gitlab CI context
2018-10-26 16:36:20 +03:00
Edward Hervey
f4b08721f7
fuzzing: Add local fuzz runner
...
Allows testing without full oss-fuzz infrastructure
2017-12-06 08:45:27 +01:00
Edward Hervey
cb5d37e796
fuzzing: Add README
2017-11-06 10:00:32 +01:00
Edward Hervey
6738712d3e
fuzzing: minor script fix
2017-11-05 17:07:49 +01:00
Edward Hervey
f2025fd079
fuzzing: Make the script executable
2017-11-05 16:58:15 +01:00
Edward Hervey
feb718129f
fuzzing: oss-fuzz build script
...
Script that will be executed by oss-fuzz to build fuzzing targets
and dependencies
2017-11-05 16:51:14 +01:00
Edward Hervey
8f4bcce46e
fuzzing: Fix leak due to wrong initialization
...
We were registering plugins again and again and again ...
2017-11-01 14:10:05 +01:00
Edward Hervey
39ce1f76a4
fuzzing: use abort instead of (private) g_abort
2017-11-01 09:55:46 +01:00
Edward Hervey
bb4aadf968
fuzzer: Add custom logger that explicitely raises abort()
2017-11-01 09:45:36 +01:00
Edward Hervey
12ea11632b
fuzzer: Make critical warnings fatal
2017-11-01 08:50:25 +01:00
Edward Hervey
d197eaa508
fuzzer: Might work better with a pipeline ...
2017-10-31 08:12:43 +01:00
Edward Hervey
80d8fcec0c
fuzzing: Compilation fixes
2017-10-31 08:03:48 +01:00
Edward Hervey
87e1f69b19
fuzzing: New typefind target
...
Simple appsrc ! typefind ! fakesink pipeline
2017-10-31 07:43:07 +01:00
Edward Hervey
7a4aec73c5
fuzzing: Add push-based discoverer fuzzing target
2017-10-29 08:15:21 +01:00
Edward Hervey
f51f8eea4c
Add dockerignore
2017-10-28 11:02:06 +02:00
Edward Hervey
6913354845
Add gitignore
2017-10-28 11:01:33 +02:00
Edward Hervey
d023ae0eb2
jenkins: Update meson-fedora
2017-10-28 10:59:08 +02:00
Edward Hervey
4da90f0d8c
jenkins: Update meson script
2017-10-21 15:09:33 +02:00
Edward Hervey
bf72e06461
jenkins: Fix cerbero jenkins file
2017-10-21 14:46:07 +02:00
Edward Hervey
f4ce9bf4e6
jenkins: Add cerbero debian docker script
2017-10-21 14:44:53 +02:00
Edward Hervey
639dc49bdb
docker: Add gdb to build images
...
So we can get backtraces
2017-10-21 13:10:26 +02:00