Verified Commit 815976e4 authored by Jordan Petridis's avatar Jordan Petridis 🌱

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
parent 76763636
Pipeline #133789 waiting for manual action with stages
in 33 seconds
......@@ -157,11 +157,18 @@ gst indent:
- rm -rf subprojects/glib/tests
- rm -rf subprojects/glib/po
- rm -rf subprojects/glib/docs
# Clear gst-intergrations-testsuites report as it contains raw media
# files which is only needed for validate jobs. When needed we copy the
# cached repo in the docker image and fetch.
- rm -rf subprojects/gst-integration-testsuites
expire_in: "7 days"
when: "always"
- 'gst-build/build/meson-logs/'
# Needed by the integration tests
- 'manifest.xml'
.build fedora x86_64:
extends: '.build'
......@@ -271,6 +278,18 @@ integration testsuites fedora:
TEST_SUITE: "validate ges"
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-omx|gst-plugins-rs)$/'
# Avoid cloning the repo since it contains media files,
# instead copy it from the cache and do a git fetch
# We remove this copy first since it had its mediafiles stripped
- cp -r /gst-build/subprojects/gst-integration-testsuites/ "${CI_PROJECT_DIR}/gst-build/subprojects/gst-integration-testsuites/"
- curl -o "${GST_UPSTREAM_BRANCH}/gitlab/"
- >-
--manifest manifest.xml
--project gst-integration-testsuites
--destination gst-build/subprojects/gst-integration-testsuites
extends: 'build static fedora x86_64'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment