X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=.gitlab-ci.yml;h=5f14facce97478d93ca5fada387381deea0c1009;hb=31c2a978a8974658419bda1734d1152349e174c2;hp=bc7e03128404d46fa8bc9c0cde6c7685ae744c4b;hpb=46b3f48bdb22c7ccb2c50a93dba1f98a8c1c2002;p=platform%2Fupstream%2Fgstreamer.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc7e031..5f14fac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,20 @@ include: - - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/14731f78c23c7b523a85a26a068ade9ac1ecd2f3/templates/fedora.yml" - - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/14731f78c23c7b523a85a26a068ade9ac1ecd2f3/templates/debian.yml" + - project: 'freedesktop/ci-templates' + ref: 14731f78c23c7b523a85a26a068ade9ac1ecd2f3 + file: '/templates/fedora.yml' + - project: 'freedesktop/ci-templates' + ref: 14731f78c23c7b523a85a26a068ade9ac1ecd2f3 + file: '/templates/debian.yml' + ### + # IMPORTANT + # These are the version tags for the docker images the CI runs against. + # If you are hacking on them or need a them to rebuild, you need to change + # the appropriate version string in this file which will cause a rebuild. + ### + - local: '.gitlab-image-tags.yml' stages: - - 'trigger' - - 'build docker' - 'preparation' - - 'pre-build' - 'build' - 'test' # Use the resulting binaries @@ -16,28 +24,16 @@ variables: GIT_DEPTH: 1 # Branch to track for modules that have no ref specified in the manifest - GST_UPSTREAM_BRANCH: 'main' + GST_UPSTREAM_BRANCH: '1.22' - ### - # IMPORTANT - # These are the version tags for the docker images the CI runs against. - # If you are hacking on them or need a them to rebuild, its enough - # to change any part of the string of the image you want. - ### - FEDORA_TAG: '2022-09-22.0' - INDENT_TAG: '2022-03-07.1' - WINDOWS_TAG: "2022-09-17.0" - - GST_UPSTREAM_REPO: 'gstreamer/gstreamer' FDO_UPSTREAM_REPO: 'gstreamer/gstreamer' - FEDORA_AMD64_SUFFIX: 'amd64/fedora' + FEDORA_AMD64_SUFFIX: 'amd64/fedora' INDENT_AMD64_SUFFIX: 'amd64/gst-indent' WINDOWS_AMD64_SUFFIX: 'amd64/windows' - FEDORA_DOCS_IMAGE: "registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora:2020-07-03.0-master" WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" - WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" + WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH" MESON_BUILDTYPE_ARGS: --default-library=both DEFAULT_MESON_ARGS: > @@ -104,7 +100,7 @@ default: # This is an empty job that is used to trigger the pipeline. trigger: image: alpine:latest - stage: 'trigger' + stage: 'preparation' variables: GIT_STRATEGY: none script: @@ -112,8 +108,9 @@ trigger: rules: # If the MR is assigned to the Merge bot, trigger the pipeline automatically - if: '$CI_MERGE_REQUEST_ASSIGNEES == "gstreamer-merge-bot"' - # Require explicit action to trigger tests post merge - - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH' + # Require explicit action to trigger tests post merge, but we want to + # automatically trigger the integratation stage + - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH && $CI_JOB_STAGE != "integrate"' when: 'manual' # When the assignee isn't the merge bot, require an explicit action to trigger the pipeline # to avoid wasting CI resources @@ -132,9 +129,8 @@ fedora amd64 docker: extends: - '.fedora image' - '.fdo.container-build@fedora' - stage: 'build docker' - needs: - - "trigger" + stage: 'preparation' + needs: [] tags: - 'packet.net' @@ -150,12 +146,12 @@ gst-indent amd64 docker: extends: - '.gst-indent image' - '.fdo.container-build@debian' - stage: 'build docker' + stage: 'preparation' # Do not depend on the trigger, as we want to run indent always needs: [] windows amd64 docker: - stage: "build docker" + stage: "preparation" needs: - "trigger" timeout: '3h' @@ -209,10 +205,15 @@ gst indent: # build setup templates # .build_template: &build + - date -R - ci/scripts/handle-subprojects-cache.py subprojects/ + - date -R - echo $MESON_ARGS + - date -R - meson build/ $MESON_ARGS + - date -R - ninja -C build/ + - date -R - ccache --show-stats .build_ccache_vars: @@ -292,6 +293,7 @@ gst indent: - '.fdo.suffixed-image@fedora' - '.build' needs: + - "trigger" - "fedora amd64 docker" variables: MESON_ARGS: *simple_build @@ -302,6 +304,7 @@ build fedora x86_64: - '.fdo.suffixed-image@fedora' - '.build fedora x86_64' needs: + - "trigger" - "fedora amd64 docker" script: - *build @@ -316,6 +319,7 @@ build nodebug fedora x86_64: - '.fdo.suffixed-image@fedora' - '.build' needs: + - "trigger" - "fedora amd64 docker" variables: MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}" @@ -334,6 +338,7 @@ build clang fedora x86_64: - 'windows' - '2022' needs: + - "trigger" - "windows amd64 docker" timeout: '45min' variables: @@ -354,6 +359,8 @@ build clang fedora x86_64: when: manual - changes: *modules_changes + - changes: + - subprojects/win-*/* script: # Make sure powershell exits on errors # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6 @@ -465,7 +472,6 @@ build msys2 : - > ./gst-env.py gst-validate-launcher ${TEST_SUITE} - --check-bugs --dump-on-failure --mute --shuffle @@ -494,6 +500,7 @@ build msys2 : - '.fdo.suffixed-image@fedora' - '.test' needs: + - "trigger" - "fedora amd64 docker" tags: ['gstreamer'] @@ -504,8 +511,23 @@ check fedora: integration testsuites fedora: extends: '.test fedora x86_64' - parallel: 4 + parallel: 8 variables: + MESON_BUILDTYPE_ARGS: > + -Domx=disabled + -Dsharp=disabled + -Dvaapi=disabled + -Dexamples=disabled + -Dgst-examples=disabled + -Dtests=disabled + -Dnls=disabled + -Dqt5=disabled + -Dgstreamer:benchmarks=disabled + -Dgst-plugins-good:gtk3=disabled + -Dgst-plugins-bad:microdns=disabled + -Dgst-plugins-bad:avtp=disabled + -Dgst-plugins-bad:opencv=disabled + -Dgst-plugins-bad:webrtc=disabled EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX} --sync" TEST_SUITE: "validate ges" @@ -654,6 +676,10 @@ valgrind ges: - subprojects/gst-plugins-bad/**/* - subprojects/gst-editing-services/**/* - subprojects/gst-python/**/* + # valgrind ges jobs are racy across the board and simply fail too often. + # Someone needs to go through job logs and figure out which jobs to mark + # as flaky. Until then, just ignore failures. + allow_failure: true # ---- Integration ----- # @@ -711,6 +737,7 @@ build documentation: - '.documentation' stage: build needs: + - "trigger" - "fedora amd64 docker" rules: # Never run post merge, we have the `documentation` always running for that @@ -737,13 +764,14 @@ build documentation: # https://gitlab.com/gitlab-org/gitlab/-/issues/341737 cerbero trigger: stage: build - timeout: '3h' + timeout: '4h' tags: - placeholder-job extends: - '.fedora image' - '.fdo.suffixed-image@fedora' needs: + - "trigger" - "fedora amd64 docker" script: - ci/gitlab/trigger_cerbero_pipeline.py