Add containers with IGT inside
There is an example run of the new pipeline [1].
The suggestions to replace the term "final containers" are welcomed.
[1] https://gitlab.freedesktop.org/omrigan/igt-gpu-tools/commit/0362e97d00df849528d731aea4952538a180eec3
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v2 1/3 gitlab-ci: move containers section to the up
No functional changes. This order is consistent with the order of execution stages.
--- .gitlab-ci.yml | 179 +++++++++++++++++++++++++------------------------ 1 file changed, 90 insertions(+), 89 deletions(-)
.gitlab-ci.yml +90 -89
@@ -17,6 +17,96 @@ stages: - test - deploy +################# CONTAINERS ####################### + +containers:igt-debian: + stage: containers + image: docker:stable + only: + changes: + - Dockerfile.debian-minimal + - Dockerfile.debian + - .gitlab-ci.yml + services: + - docker:dind + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal -t igt-debian-minimal -f Dockerfile.debian-minimal . + - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian -f Dockerfile.debian . + - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal + - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian + +containers:igt-debian-armhf: + stage: containers + image: docker:stable + only: + changes: + - Dockerfile.debian-armhf + - .gitlab-ci.yml + services: + - docker:dind + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf -f Dockerfile.debian-armhf . + - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf + +containers:igt-debian-arm64: + stage: containers + image: docker:stable + only: + changes: + - Dockerfile.debian-arm64 + - .gitlab-ci.yml + services: + - docker:dind + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 -f Dockerfile.debian-arm64 . + - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 + +containers:igt-debian-mips: + stage: containers + image: docker:stable + only: + changes: + - Dockerfile.debian-mips + - .gitlab-ci.yml + services: + - docker:dind + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips -f Dockerfile.debian-mips . + - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips + +containers:igt-fedora: + stage: containers + image: docker:stable + only: + changes: + - Dockerfile.fedora + - .gitlab-ci.yml + services: + - docker:dind + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora -f Dockerfile.fedora . + - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora + #################### BUILD ######################### build:tests-fedora:
@@ -210,92 +300,3 @@ pages: only: - master -################# CONTAINERS ####################### - -containers:igt-debian: - stage: containers - image: docker:stable - only: - changes: - - Dockerfile.debian-minimal - - Dockerfile.debian - - .gitlab-ci.yml - services: - - docker:dind - variables: - DOCKER_HOST: tcp://docker:2375 - DOCKER_DRIVER: overlay2 - script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal -t igt-debian-minimal -f Dockerfile.debian-minimal . - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian -f Dockerfile.debian . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian - -containers:igt-debian-armhf: - stage: containers - image: docker:stable - only: - changes: - - Dockerfile.debian-armhf - - .gitlab-ci.yml - services: - - docker:dind - variables: - DOCKER_HOST: tcp://docker:2375 - DOCKER_DRIVER: overlay2 - script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf -f Dockerfile.debian-armhf . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf - -containers:igt-debian-arm64: - stage: containers - image: docker:stable - only: - changes: - - Dockerfile.debian-arm64 - - .gitlab-ci.yml - services: - - docker:dind - variables: - DOCKER_HOST: tcp://docker:2375 - DOCKER_DRIVER: overlay2 - script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 -f Dockerfile.debian-arm64 . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 - -containers:igt-debian-mips: - stage: containers - image: docker:stable - only: - changes: - - Dockerfile.debian-mips - - .gitlab-ci.yml - services: - - docker:dind - variables: - DOCKER_HOST: tcp://docker:2375 - DOCKER_DRIVER: overlay2 - script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips -f Dockerfile.debian-mips . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips - -containers:igt-fedora: - stage: containers - image: docker:stable - only: - changes: - - Dockerfile.fedora - - .gitlab-ci.yml - services: - - docker:dind - variables: - DOCKER_HOST: tcp://docker:2375 - DOCKER_DRIVER: overlay2 - script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora -f Dockerfile.fedora . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora
Signature · 6 lines
2.22.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v2 2/3 gitlab-ci: rebuild images only on Dockerfile changes
In reply to Oleg VasilevBase images rarely change, there is not much sense in rebuilding it on every commit. GitLab already has mechanism for detecting such changes. However, it is only able to prevent rebuilding whenever there is no changes within the same ref. Since in our CI system, git tag is created on every series, the mechanism doesn't work.
One possible way to workaround that is to compute a checksum of a Dockerfile, and rebuilding only if there was no image built with the same checksum.
--- .gitlab-ci.yml | 39 +++++------------------------ scripts/pull-or-rebuild.sh | 50 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 33 deletions(-) create mode 100755 scripts/pull-or-rebuild.sh
.gitlab-ci.yml +6 -33
@@ -22,11 +22,6 @@ stages: containers:igt-debian: stage: containers image: docker:stable - only: - changes: - - Dockerfile.debian-minimal - - Dockerfile.debian - - .gitlab-ci.yml services: - docker:dind variables:
@@ -34,18 +29,12 @@ containers:igt-debian: DOCKER_DRIVER: overlay2 script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal -t igt-debian-minimal -f Dockerfile.debian-minimal . - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian -f Dockerfile.debian . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-minimal - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian + - scripts/pull-or-rebuild.sh Dockerfile.debian-minimal igt-debian-minimal + - scripts/pull-or-rebuild.sh Dockerfile.debian igt-debian containers:igt-debian-armhf: stage: containers image: docker:stable - only: - changes: - - Dockerfile.debian-armhf - - .gitlab-ci.yml services: - docker:dind variables:
@@ -53,16 +42,11 @@ containers:igt-debian-armhf: DOCKER_DRIVER: overlay2 script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf -f Dockerfile.debian-armhf . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-armhf + - scripts/pull-or-rebuild.sh Dockerfile.debian-armhf igt-debian-armhf containers:igt-debian-arm64: stage: containers image: docker:stable - only: - changes: - - Dockerfile.debian-arm64 - - .gitlab-ci.yml services: - docker:dind variables:
@@ -70,16 +54,11 @@ containers:igt-debian-arm64: DOCKER_DRIVER: overlay2 script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 -f Dockerfile.debian-arm64 . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-arm64 + - scripts/pull-or-rebuild.sh Dockerfile.debian-arm64 igt-debian-arm64 containers:igt-debian-mips: stage: containers image: docker:stable - only: - changes: - - Dockerfile.debian-mips - - .gitlab-ci.yml services: - docker:dind variables:
@@ -87,16 +66,11 @@ containers:igt-debian-mips: DOCKER_DRIVER: overlay2 script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips -f Dockerfile.debian-mips . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-debian-mips + - scripts/pull-or-rebuild.sh Dockerfile.debian-mips igt-debian-mips containers:igt-fedora: stage: containers image: docker:stable - only: - changes: - - Dockerfile.fedora - - .gitlab-ci.yml services: - docker:dind variables:
@@ -104,8 +78,7 @@ containers:igt-fedora: DOCKER_DRIVER: overlay2 script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora -f Dockerfile.fedora . - - docker push $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora + - scripts/pull-or-rebuild.sh Dockerfile.fedora igt-fedora #################### BUILD #########################
scripts/pull-or-rebuild.sh new file +50 -0
50 lines not on this page · raw message
Signature · 6 lines
2.22.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v2 3/3 gitlab-ci: introduce final containers
In reply to Oleg VasilevCurrently, the containers are used only to build IGT. We also want to have an option to run IGT inside a container. For this, new build stage is added.
--- .gitlab-ci.yml | 25 ++++++++++++++++++++++++- Dockerfile.final | 16 ++++++++++++++++ scripts/docker-help.sh | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.final create mode 100755 scripts/docker-help.sh
.gitlab-ci.yml +24 -1
@@ -16,6 +16,7 @@ stages: - build - test - deploy + - final-containers ################# CONTAINERS #######################
@@ -85,12 +86,15 @@ containers:igt-fedora: build:tests-fedora: stage: build script: - - meson $MESON_OPTIONS build + - meson --prefix=`pwd`/opt-igt $MESON_OPTIONS build - ninja -C build + - ninja -C build install - ninja -C build igt-gpu-tools-doc + - ls opt-igt artifacts: paths: - build + - opt-igt build:tests-fedora-no-libunwind: stage: build
@@ -273,3 +277,22 @@ pages: only: - master +############## FINAL CONTAINERS #################### + + +final-containers:igt-final: + stage: final-containers + image: docker:stable + services: + - docker:dind + dependencies: + - build:tests-fedora + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + FORCE_REBUILD: 1 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker pull $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora + - docker tag $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora igt-fedora + - scripts/pull-or-rebuild.sh Dockerfile.final igt-final
Dockerfile.final new file +16 -0
@@ -0,0 +1,16 @@ +# Version number to bump for force image rebuild: 0 +FROM igt-fedora + +RUN dnf install -y findutils && \ + dnf clean all + +COPY opt-igt /opt/igt +COPY scripts/docker-help.sh /usr/local/bin/docker-help.sh + +ENV PATH="/opt/igt/bin:${PATH}" +ENV LD_LIBRARY_PATH="/opt/igt/lib:/opt/igt/lib64:${LD_LIBRARY_PATH}" +ENV IGT_TEST_ROOT="/opt/igt/libexec/igt-gpu-tools" + +COPY scripts/docker-help.sh /usr/local/bin/docker-help.sh + +CMD docker-help.sh
scripts/docker-help.sh new file +34 -0
@@ -0,0 +1,34 @@ +#!/bin/sh +# +# Copyright © 2019 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +TEST_LIST=$(find /opt/igt/libexec -type f -printf "%f ") +cat << END +This is a docker container, packaged with intel-gpu-tools. + - IGT runner is available in PATH. In order for results to be available on a + host system, the directory has to be mounted inside, e.g. + docker run -v results:/tmp/results igt-final igt_runner /tmp/results + - Test lists are available in /opt/igt/share/igt-gpu-tools + - Test binaries are available in IGT_TEST_ROOT=/opt/igt/libexec. + +Contents of /opt/igt/libexec: $TEST_LIST +END
Signature · 6 lines
2.22.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for series starting with [v2,1/3] gitlab-ci: move containers section to the up
In reply to Oleg Vasilev== Series Details ==
== Series Details ==
Series: series starting with [v2,1/3] gitlab-ci: move containers section to the up
URL : https://patchwork.freedesktop.org/series/65480/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6745 -> IGTPW_3368
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/65480/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_3368 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_switch@legacy-render:
- fi-bxt-dsi: [PASS][1] -> [INCOMPLETE][2] ([fdo#103927])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/fi-bxt-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/fi-bxt-dsi/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u2: [PASS][3] -> [FAIL][4] ([fdo#103167])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/fi-icl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@gem_sync@basic-store-each:
- fi-cfl-8109u: [INCOMPLETE][5] ([fdo#111427]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/fi-cfl-8109u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/fi-cfl-8109u/igt@[email protected]
* {igt@i915_selftest@live_gt_timelines}:
- fi-bsw-kefka: [DMESG-WARN][7] ([fdo#111373]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/fi-bsw-kefka/igt@i915_selftest@live_gt_timelines.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/fi-bsw-kefka/igt@i915_selftest@live_gt_timelines.html
* igt@kms_busy@basic-flip-a:
- fi-kbl-7567u: [SKIP][9] ([fdo#109271] / [fdo#109278]) -> [PASS][10] +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/fi-kbl-7567u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/fi-kbl-7567u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][11] ([fdo#102614]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/fi-hsw-peppy/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/fi-hsw-peppy/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#111373]: https://bugs.freedesktop.org/show_bug.cgi?id=111373
[fdo#111427]: https://bugs.freedesktop.org/show_bug.cgi?id=111427
Participating hosts (56 -> 47)
------------------------------
Missing (9): fi-kbl-soraka fi-ilk-m540 fi-tgl-u fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5145 -> IGTPW_3368
CI-20190529: 20190529
CI_DRM_6745: 001f02411223cb625aed43fbed5c1bbcecc447f7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3368: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/
IGT_5145: 50251bcb2e8783f86ebdd86ce38adc9e3777f82f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for series starting with [v2,1/3] gitlab-ci: move containers section to the up
In reply to Oleg Vasilev== Series Details ==
== Series Details ==
Series: series starting with [v2,1/3] gitlab-ci: move containers section to the up
URL : https://patchwork.freedesktop.org/series/65480/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6745_full -> IGTPW_3368_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/65480/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_3368_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@in-flight-suspend:
- shard-snb: [PASS][1] -> [INCOMPLETE][2] ([fdo#105411]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-snb2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-snb6/igt@[email protected]
* igt@gem_eio@reset-stress:
- shard-kbl: [PASS][3] -> [FAIL][4] ([fdo#109661])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-kbl4/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-kbl4/igt@[email protected]
* igt@gem_exec_balancer@smoke:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#110854])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@preempt-bsd1:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#109276]) +17 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb8/igt@[email protected]
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#111325]) +5 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb4/igt@[email protected]
* igt@i915_suspend@fence-restore-untiled:
- shard-apl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +4 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-apl4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-apl8/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-128x128-onscreen:
- shard-apl: [PASS][13] -> [INCOMPLETE][14] ([fdo#103927])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-apl2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-apl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen:
- shard-apl: [PASS][15] -> [FAIL][16] ([fdo#103167])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-apl4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-apl7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html
- shard-kbl: [PASS][17] -> [FAIL][18] ([fdo#103167])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-kbl7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-kbl7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-pwrite:
- shard-iclb: [PASS][19] -> [FAIL][20] ([fdo#103167]) +6 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-pwrite.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-pwrite.html
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][21] -> [SKIP][22] ([fdo#109441]) +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb4/igt@kms_psr@psr2_cursor_render.html
* igt@tools_test@sysfs_l3_parity:
- shard-hsw: [PASS][23] -> [SKIP][24] ([fdo#109271])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-hsw6/igt@tools_test@sysfs_l3_parity.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-hsw2/igt@tools_test@sysfs_l3_parity.html
#### Possible fixes ####
* igt@gem_exec_schedule@independent-bsd1:
- shard-iclb: [SKIP][25] ([fdo#109276]) -> [PASS][26] +17 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb4/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-bsd:
- shard-iclb: [SKIP][27] ([fdo#111325]) -> [PASS][28] +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb7/igt@[email protected]
* igt@gem_tiled_swapping@non-threaded:
- shard-hsw: [FAIL][29] ([fdo#108686]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-hsw2/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-hsw5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-stridechange:
- shard-iclb: [FAIL][31] ([fdo#103167]) -> [PASS][32] +4 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb7/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb2/igt@[email protected]
* igt@kms_plane@pixel-format-pipe-c-planes-source-clamping:
- shard-iclb: [INCOMPLETE][33] ([fdo#107713] / [fdo#110036 ]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb7/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb8/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-apl: [DMESG-WARN][35] ([fdo#108566]) -> [PASS][36] +4 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-apl5/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-apl5/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][37] ([fdo#109441]) -> [PASS][38] +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb5/igt@kms_psr@psr2_primary_mmap_cpu.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
#### Warnings ####
* igt@gem_mocs_settings@mocs-settings-bsd2:
- shard-iclb: [SKIP][39] ([fdo#109276]) -> [FAIL][40] ([fdo#111330]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb3/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb4/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [DMESG-WARN][41] ([fdo#107724]) -> [SKIP][42] ([fdo#109349])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb2/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb3/igt@[email protected]
* igt@prime_busy@hang-bsd2:
- shard-iclb: [INCOMPLETE][43] ([fdo#107713]) -> [SKIP][44] ([fdo#109276])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6745/shard-iclb1/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/shard-iclb5/igt@[email protected]
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661
[fdo#110036 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110036
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
Participating hosts (10 -> 6)
------------------------------
Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5145 -> IGTPW_3368
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_6745: 001f02411223cb625aed43fbed5c1bbcecc447f7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3368: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/
IGT_5145: 50251bcb2e8783f86ebdd86ce38adc9e3777f82f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3368/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH v2 2/3] gitlab-ci: rebuild images only on Dockerfile changes
In reply to Oleg VasilevQuoted 6 lines · Oleg Vasilev
Base images rarely change, there is not much sense in rebuilding it on every commit. GitLab already has mechanism for detecting such changes. However, it is only able to prevent rebuilding whenever there is no changes within the same ref. Since in our CI system, git tag is created on every series, the mechanism doesn't work.
Quoted 8 lines
One possible way to workaround that is to compute a checksum of a Dockerfile, and rebuilding only if there was no image built with the same checksum.
Signed-off-by Oleg Vasilev <[email protected]>--- .gitlab-ci.yml | 39 +++++------------------------ scripts/pull-or-rebuild.sh | 50 ++++++++++++++++++++++++++++++++++++++
I would hide this helper a bit since it's only for gitlab pipeline.
How about .gitlab-ci/ ?
Other than that:
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH v2 3/3] gitlab-ci: introduce final containers
In reply to Oleg VasilevQuoted 43 lines · Oleg Vasilev
Currently, the containers are used only to build IGT. We also want to have an option to run IGT inside a container. For this, new build stage is added.
Signed-off-by Oleg Vasilev <[email protected]>--- .gitlab-ci.yml | 25 ++++++++++++++++++++++++- Dockerfile.final | 16 ++++++++++++++++ scripts/docker-help.sh | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.final create mode 100755 scripts/docker-help.sh.gitlab-ci.yml +5
-1@@ -16,6 +16,7 @@ stages: - build - test - deploy + - final-containers ################# CONTAINERS #######################@@ -85,12 +86,15 @@ containers:igt-fedora: build:tests-fedora: stage: build script: - - meson $MESON_OPTIONS build + - meson --prefix=`pwd`/opt-igt $MESON_OPTIONS build - ninja -C build + - ninja -C build install - ninja -C build igt-gpu-tools-doc + - ls opt-igt artifacts: paths: - build + - opt-igt build:tests-fedora-no-libunwind: stage: build
.gitlab-ci.yml pages: · line 283
Quoted 7 lines
.gitlab-ci.yml +4
-0@@ -273,3 +277,22 @@ pages: only: - master +############## FINAL CONTAINERS #################### + + +final-containers:igt-final:
I am sceptical about having it named igt-final.
How about just igt-x86_64?
If you need further clarification on what people should use then you can add "build-env-" to the name of the *base* images.
Quoted 25 lines
.gitlab-ci.yml +15
-0+ stage: final-containers + image: docker:stable + services: + - docker:dind + dependencies: + - build:tests-fedora + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + FORCE_REBUILD: 1 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker pull $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora + - docker tag $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora igt-fedora + - scripts/pull-or-rebuild.sh Dockerfile.final igt-finalDockerfile.final new file +4
-0@@ -0,0 +1,16 @@ +# Version number to bump for force image rebuild: 0 +FROM igt-fedora + +RUN dnf install -y findutils && \
Dockerfile.final line 14
Quoted 10 lines
Dockerfile.final new file +10
-0+ dnf clean all + +COPY opt-igt /opt/igt +COPY scripts/docker-help.sh /usr/local/bin/docker-help.sh + +ENV PATH="/opt/igt/bin:${PATH}" +ENV LD_LIBRARY_PATH="/opt/igt/lib:/opt/igt/lib64:${LD_LIBRARY_PATH}" +ENV IGT_TEST_ROOT="/opt/igt/libexec/igt-gpu-tools" + +COPY scripts/docker-help.sh /usr/local/bin/docker-help.sh
I would also put this one in .gitlab-ci/
Quoted 22 lines
Dockerfile.final new file +2
-0+ +CMD docker-help.shscripts/docker-help.sh new file +14
-0@@ -0,0 +1,34 @@ +#!/bin/sh +# +# Copyright © 2019 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software.
scripts/docker-help.sh line 24
Quoted 10 lines
scripts/docker-help.sh new file +10
-0+# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +TEST_LIST=$(find /opt/igt/libexec -type f -printf "%f ")
Shouldn't it be /opt/igt/libexec/igt-gpu-tools?
scripts/docker-help.sh line 31
Quoted 7 lines
scripts/docker-help.sh new file +7
-0+cat << END +This is a docker container, packaged with intel-gpu-tools. + - IGT runner is available in PATH. In order for results to be available on a + host system, the directory has to be mounted inside, e.g. + docker run -v results:/tmp/results igt-final igt_runner /tmp/results + - Test lists are available in /opt/igt/share/igt-gpu-tools + - Test binaries are available in IGT_TEST_ROOT=/opt/igt/libexec.
Can you mention --priviledged/seccomp shenanigans for testing real HW from inside the container?
scripts/docker-help.sh line 33
Quoted 1 line
scripts/docker-help.sh new file +1
-0+Contents of /opt/igt/libexec: $TEST_LIST
Also print PATH, LD_LIBRARY_PATH, IGT_TEST_ROOT so people know what they are getting set for free.
Signature · 6 lines
Cheers, Arek _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH v2 1/3] gitlab-ci: move containers section to the up
In reply to Oleg VasilevQuoted 4 lines · Oleg Vasilev
No functional changes. This order is consistent with the order of execution stages.
Signed-off-by Oleg Vasilev <[email protected]>
with s/up/top/ in the subject
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH v2 3/3] gitlab-ci: introduce final containers
In reply to Arkadiusz HilerQuoted 1 line · Arkadiusz Hiler
On Tue, Aug 20, 2019 at 04:19:36PM +0300, Oleg Vasilev wrote:
...
Quoted 8 lines
.gitlab-ci.yml pages: · line 283
Quoted 5 lines
.gitlab-ci.yml +4
-0+############## FINAL CONTAINERS #################### + + +final-containers:igt-final:I am sceptical about having it named igt-final.
Quoted 5 lines
How about just igt-x86_64?
If you need further clarification on what people should use then you can
add "build-env-" to the name of the *base* images.
Hi,
I could rename igt-final to igt and igt-* to igt-base-*. Would it break any preexiting automatization?
Quoted 33 lines
Quoted 33 lines
.gitlab-ci.yml +12
-0+ stage: final-containers + image: docker:stable + services: + - docker:dind + dependencies: + - build:tests-fedora + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + FORCE_REBUILD: 1 + script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN$CI_REGISTRY
(quoted diff) +2
-0+ - docker pull $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora + - docker tag $CI_REGISTRY/$CI_PROJECT_PATH/igt-fedora igt-fedora
.gitlab-ci.yml +1
-0+ - scripts/pull-or-rebuild.sh Dockerfile.final igt-finalDockerfile.final new file +9
-0@@ -0,0 +1,16 @@ +# Version number to bump for force image rebuild: 0 +FROM igt-fedora + +RUN dnf install -y findutils && \ + dnf clean all + +COPY opt-igt /opt/igt +COPY scripts/docker-help.sh /usr/local/bin/docker-help.sh +
Quoted 8 lines
Dockerfile.final line 14
Quoted 6 lines
Dockerfile.final new file +2
-0+ENV PATH="/opt/igt/bin:${PATH}" +ENVLD_LIBRARY_PATH="/opt/igt/lib:/opt/igt/lib64:${LD_LIBRARY_PATH}"
Dockerfile.final new file +3
-0+ENV IGT_TEST_ROOT="/opt/igt/libexec/igt-gpu-tools" + +COPY scripts/docker-help.sh /usr/local/bin/docker-help.shI would also put this one in .gitlab-ci/
This not technically CI-related, but docker-related. Why not leave it in scripts/?
Oleg
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH v2 3/3] gitlab-ci: introduce final containers
Quoted 13 lines · Oleg
Quoted 1 line · Arkadiusz Hiler
On Tue, Aug 20, 2019 at 04:19:36PM +0300, Oleg Vasilev wrote:
...
Quoted 10 lines
.gitlab-ci.yml pages: · line 283
Quoted 5 lines
.gitlab-ci.yml +4
-0+############## FINAL CONTAINERS #################### + + +final-containers:igt-final:I am sceptical about having it named igt-final.
How about just igt-x86_64?
Quoted 7 lines
Quoted 3 lines
If you need further clarification on what people should use then you can
add "build-env-" to the name of the *base* images.Hi,
I could rename igt-final to igt and igt-* to igt-base-*. Would it break any preexiting automatization?
AFAIK nothing uses those containers outside of Gitlab's CI, so we should be good.
Thinking about naming, I believe we should have more clear separation. "igt-$(ARCH/OTHERSUFFIXES)" for the containers having IGT inside. With that I would like to avoid using "igt" for containers without IGT.
So what about:
builder-fedora
builder-debian
builder-debian-mips
...?
Signature · 6 lines
Cheers, Arek _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH v2 3/3] gitlab-ci: introduce final containers
In reply to Vasilev, OlegQuoted 8 lines · Oleg
Quoted 3 lines
Quoted 1 line
+COPY
scripts/docker-help.sh/usr/local/bin/docker-help.shI would also put this one in .gitlab-ci/
This not technically CI-related, but docker-related. Why not leave it in
scripts/?Oleg
Because it explains how to use container when you first try to run it without any parameters. It makes no sense outside of this scope.
If you keep it in scripts/ then someone will see it there along run-tests.sh, will try run it and get confused :-)
Signature · 6 lines
Cheers, Arek _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev