testing and gdbstub updates
The following changes since commit a66f28df650166ae8b50c992eea45e7b247f4143:
Merge tag 'migration-20240909-pull-request' of https://gitlab.com/peterx/qemu into staging (2024-09-10 11:19:22 +0100)
are available in the Git repository at:
https://gitlab.com/stsquad/qemu.git tags/pull-testing-gdbstub-oct-100924-1
for you to fetch changes up to 06dd94e84336d2c5a86c99049dc9abb4a1d6b2e5:
tests/tcg/aarch64: Extend MTE gdbstub tests to system mode (2024-09-10 23:34:03 +0100)
----------------------------------------------------------------
testing and gdbstub updates:
- remove docker-armel-cross
- update i686 and mipsel images to bookworm
- use docker-all-test-cross for mips64le tests
- fix duplicated line in docs
- update gitlab-runner ansible script
- support MTE in gdbstub for system mode
----------------------------------------------------------------
Alex Bennée (5):
tests/docker: remove debian-armel-cross tests/docker: update debian i686 and mipsel images to bookworm tests/docker: use debian-all-test-cross for mips64el tests docs/devel: fix duplicate line
scripts/ci: update the gitlab-runner playbook
Gustavo Romero (5):
gdbstub: Use specific MMU index when probing MTE addresses
gdbstub: Add support for MTE in system mode tests/guest-debug: Support passing arguments to the GDB test script tests/tcg/aarch64: Improve linker script organization tests/tcg/aarch64: Extend MTE gdbstub tests to system mode
docs/devel/testing/main.rst | 6 - configure | 7 +- target/arm/gdbstub64.c | 23 ++- .gitlab-ci.d/container-cross.yml | 6 - .gitlab-ci.d/crossbuilds.yml | 7 - scripts/ci/setup/gitlab-runner.yml | 39 +++-- tests/docker/dockerfiles/debian-armel-cross.docker | 179 --------------------- tests/docker/dockerfiles/debian-i686-cross.docker | 10 +- .../docker/dockerfiles/debian-mipsel-cross.docker | 10 +- tests/guest-debug/run-test.py | 6 + tests/guest-debug/test_gdbstub.py | 5 + tests/lcitool/refresh | 10 +- tests/tcg/aarch64/Makefile.softmmu-target | 49 +++++- tests/tcg/aarch64/Makefile.target | 3 +- tests/tcg/aarch64/gdbstub/test-mte.py | 71 +++++--- tests/tcg/aarch64/system/boot.S | 11 ++ tests/tcg/aarch64/system/kernel.ld | 33 ++-- tests/tcg/aarch64/system/mte.S | 109 +++++++++++++ 18 files changed, 310 insertions(+), 274 deletions(-) delete mode 100644 tests/docker/dockerfiles/debian-armel-cross.docker create mode 100644 tests/tcg/aarch64/system/mte.S
Signature · 1 line
2.39.2
[PULL 07/10] gdbstub: Add support for MTE in system mode
From: Gustavo Romero <[email protected]>
This commit makes handle_q_memtag, handle_q_isaddresstagged, and handle_Q_memtag stubs build for system mode, allowing all GDB 'memory-tag' subcommands to work with QEMU gdbstub on aarch64 system mode.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/620
Message-Id: <[email protected]>
Message-Id: <[email protected]>
target/arm/gdbstub64.c +4 -2
@@ -430,7 +430,9 @@ int aarch64_gdb_set_tag_ctl_reg(CPUState *cs, uint8_t *buf, int reg)return 0 ;#endif } +#endif /* CONFIG_USER_ONLY */ +#ifdef CONFIG_TCG static void handle_q_memtag (GArray *params,void *user_ctx) {ARMCPU *cpu =ARM_CPU (user_ctx);
@@ -600,13 +602,13 @@ static const GdbCmdParseEntry cmd_handler_table[NUM_CMDS] = { .need_cpu_context = true }, }; -#endif /* CONFIG_USER_ONLY */ +#endif /* CONFIG_TCG */ void aarch64_cpu_register_gdb_commands (ARMCPU *cpu,GString *qsupported,GPtrArray *qtable,GPtrArray *stable) { -#ifdef CONFIG_USER_ONLY /* MTE */ +#ifdef CONFIG_TCG if (cpu_isar_feature (aa64_mte, cpu)) {g_string_append (qsupported,";memory-tagging+" );
Signature · 1 line
2.39.2
[PULL 09/10] tests/tcg/aarch64: Improve linker script organization
In reply to Alex BennéeFrom: Gustavo Romero <[email protected]>
Improve kernel.ld linker script organization by using MEMORY command.
Message-Id: <[email protected]>
Message-Id: <[email protected]>
tests/tcg/aarch64/system/kernel.ld +12 -12
@@ -1,23 +1,23 @@ ENTRY(__start) -SECTIONS -{ - /* virt machine, RAM starts at 1gb */ - . = (1 << 30); +MEMORY { + /* On virt machine RAM starts at 1 GiB. */ + + /* Align text and rodata to the 1st 2 MiB chunk. */ + TXT (rx) : ORIGIN = 1 << 30, LENGTH = 2M + /* Align r/w data to the 2nd 2 MiB chunk. */ + DAT (rw) : ORIGIN = (1 << 30) + 2M, LENGTH = 2M +} + +SECTIONS { .text : { *(.text) - } - .rodata : { *(.rodata) - } - /* align r/w section to next 2mb */ - . = ALIGN(1 << 21); + } >TXT .data : { *(.data) - } - .bss : { *(.bss) - } + } >DAT /DISCARD/ : { *(.ARM.attributes) }
Signature · 1 line
2.39.2
[PULL 10/10] tests/tcg/aarch64: Extend MTE gdbstub tests to system mode
In reply to Alex BennéeFrom: Gustavo Romero <[email protected]>
Extend MTE gdbstub tests to also run in system mode (share tests between user mode and system mode). The tests will only run if a version of GDB that supports MTE on baremetal is available in the test environment and if available compiler supports the 'memtag' flag (-march=armv8.5-a+memtag).
For the tests running in system mode, a page that supports MTE ops. is necessary. Therefore, an MTE-enabled page is made available (mapped) in the third 2 MB chunk of the second 1 GB space in the flat mapping set in boot.S. A new binary, mte.S, is also introduced for the tests. It links against boot.S and is executed by QEMU in system mode.
Message-Id: <[email protected]>
Message-Id: <[email protected]>
configure +5 -0
@@ -1679,6 +1679,11 @@ for target in $target_list; do echo "GDB_HAS_MTE=y" >> $config_target_mak fi + if test "${gdb_arches#*aarch64}" != "$gdb_arches" && version_ge $gdb_version 16.0; then + # GDB has to support MTE in baremetal to allow debugging MTE in QEMU system mode + echo "GDB_SUPPORTS_MTE_IN_BAREMETAL=y" >> $config_target_mak + fi + echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> Makefile.prereqs tcg_tests_targets="$tcg_tests_targets $target" fi
tests/tcg/aarch64/Makefile.softmmu-target +45 -4
69 lines not on this page · raw message
tests/tcg/aarch64/Makefile.target +2 -1
@@ -138,7 +138,8 @@ run-gdbstub-mte: mte-8 $(call run-test, $@, $(GDB_SCRIPT) \ --gdb $(GDB) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-mte.py, \ + --bin $< --test $(AARCH64_SRC)/gdbstub/test-mte.py \ + -- --mode=user, \ gdbstub MTE support) EXTRA_RUNS += run-gdbstub-mte
tests/tcg/aarch64/gdbstub/test-mte.py +48 -23
124 lines not on this page · raw message
tests/tcg/aarch64/system/boot.S +11 -0
@@ -135,6 +135,17 @@ __start: orr x1, x1, x3 str x1, [x2] /* 2nd 2mb (.data & .bss)*/ + /* Third block: at 'mte_page', set in kernel.ld */ + adrp x1, mte_page + add x1, x1, :lo12:mte_page + bic x1, x1, #(1 << 21) - 1 + and x4, x1, x5 + add x2, x0, x4, lsr #(21 - 3) + /* attr(AF, NX, block, AttrIndx=Attr1) */ + ldr x3, =(3 << 53) | 0x401 | (1 << 2) + orr x1, x1, x3 + str x1, [x2] + /* Setup/enable the MMU. */ /*
tests/tcg/aarch64/system/kernel.ld +9 -0
@@ -7,6 +7,8 @@ MEMORY { TXT (rx) : ORIGIN = 1 << 30, LENGTH = 2M /* Align r/w data to the 2nd 2 MiB chunk. */ DAT (rw) : ORIGIN = (1 << 30) + 2M, LENGTH = 2M + /* Align the MTE-enabled page to the 3rd 2 MiB chunk. */ + TAG (rw) : ORIGIN = (1 << 30) + 4M, LENGTH = 2M } SECTIONS {
@@ -18,6 +20,13 @@ SECTIONS { *(.data) *(.bss) } >DAT + .tag : { + /* + * Symbol 'mte_page' is used in boot.S to setup the PTE and in the mte.S + * test as the address that the MTE instructions operate on. + */ + mte_page = .; + } >TAG /DISCARD/ : { *(.ARM.attributes) }
tests/tcg/aarch64/system/mte.S new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
2.39.2
[PULL 06/10] gdbstub: Use specific MMU index when probing MTE addresses
In reply to Alex BennéeFrom: Gustavo Romero <[email protected]>
Use cpu_mmu_index() to determine the specific translation regime (MMU index) before probing addresses using allocation_tag_mem_probe().
Currently, the MMU index is hardcoded to 0 and only works for user mode. By obtaining the specific MMU index according to the translation regime, future use of the stubs relying on allocation_tag_mem_probe in other regimes will be possible, like in EL1.
This commit also changes the ptr_size value passed to allocation_tag_mem_probe() from 8 to 1. The ptr_size parameter actually represents the number of bytes in the memory access (which can be as small as 1 byte), rather than the number of bits used in the address space pointed to by ptr.
Message-Id: <[email protected]>
Message-Id: <[email protected]>
target/arm/gdbstub64.c +13 -4
@@ -435,6 +435,7 @@ static void handle_q_memtag(GArray *params, void *user_ctx) {ARMCPU *cpu =ARM_CPU (user_ctx);CPUARMState *env = &cpu->env; +uint32_t mmu_index;uint64_t addr =gdb_get_cmd_param (params,0 )->val_ull;uint64_t len =gdb_get_cmd_param (params,1 )->val_ul;
@@ -458,8 +459,10 @@ static void handle_q_memtag(GArray *params, void *user_ctx)gdb_put_packet ("E03" ); } +/* Find out the current translation regime for probe. */ + mmu_index =cpu_mmu_index (env_cpu (env), false);/* Note that tags are packed here (2 tags packed in one byte). */ - tags =allocation_tag_mem_probe (env,0 , addr,MMU_DATA_LOAD ,8 /* 64-bit */ , + tags =allocation_tag_mem_probe (env, mmu_index, addr,MMU_DATA_LOAD ,1 ,MMU_DATA_LOAD , true,0 );if (!tags) {/* Address is not in a tagged region. */
@@ -478,13 +481,16 @@ static void handle_q_isaddresstagged(GArray *params, void *user_ctx) {ARMCPU *cpu =ARM_CPU (user_ctx);CPUARMState *env = &cpu->env; +uint32_t mmu_index;uint64_t addr =gdb_get_cmd_param (params,0 )->val_ull;uint8_t *tags;const char *reply; - tags =allocation_tag_mem_probe (env,0 , addr,MMU_DATA_LOAD ,8 /* 64-bit */ , +/* Find out the current translation regime for probe. */ + mmu_index =cpu_mmu_index (env_cpu (env), false); + tags =allocation_tag_mem_probe (env, mmu_index, addr,MMU_DATA_LOAD ,1 ,MMU_DATA_LOAD , true,0 ); reply = tags ?"01" :"00" ;
@@ -495,6 +501,7 @@ static void handle_Q_memtag(GArray *params, void *user_ctx) {ARMCPU *cpu =ARM_CPU (user_ctx);CPUARMState *env = &cpu->env; +uint32_t mmu_index;uint64_t start_addr =gdb_get_cmd_param (params,0 )->val_ull;uint64_t len =gdb_get_cmd_param (params,1 )->val_ul;
@@ -527,8 +534,10 @@ static void handle_Q_memtag(GArray *params, void *user_ctx)* Get all tags in the page starting from the tag of the start address. * Note that there are two tags packed into a single byte here. */ - tags =allocation_tag_mem_probe (env,0 , start_addr,MMU_DATA_STORE , -8 /* 64-bit */ ,MMU_DATA_STORE , true,0 ); +/* Find out the current translation regime for probe. */ + mmu_index =cpu_mmu_index (env_cpu (env), false); + tags =allocation_tag_mem_probe (env, mmu_index, start_addr,MMU_DATA_STORE , +1 ,MMU_DATA_STORE , true,0 );if (!tags) {/* Address is not in a tagged region. */ gdb_put_packet ("E04" );
Signature · 1 line
2.39.2
[PULL 02/10] tests/docker: update debian i686 and mipsel images to bookworm
In reply to Alex BennéeWhatever issues there were which stopped these being updates when the rest were have now been resolved. However mips64el continues to be broken so don't update it here.
Message-Id: <[email protected]>
tests/docker/dockerfiles/debian-i686-cross.docker +4 -6
@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile --layers all --cross-arch i686 debian-11 qemu +# $ lcitool dockerfile --layers all --cross-arch i686 debian-12 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/debian:11-slim +FROM docker.io/library/debian:12-slim RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \
@@ -48,16 +48,15 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ python3-opencv \ python3-pillow \ python3-pip \ - python3-setuptools \ python3-sphinx \ python3-sphinx-rtd-theme \ python3-venv \ - python3-wheel \ python3-yaml \ rpm2cpio \ sed \ socat \ sparse \ + swtpm \ tar \ tesseract-ocr \ tesseract-ocr-eng \
@@ -69,8 +68,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ dpkg-reconfigure locales && \ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED -RUN /usr/bin/pip3 install tomli - ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make"
@@ -145,6 +142,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ libvdeplug-dev:i386 \ libvirglrenderer-dev:i386 \ libvte-2.91-dev:i386 \ + libxdp-dev:i386 \ libzstd-dev:i386 \ nettle-dev:i386 \ systemtap-sdt-dev:i386 \
tests/docker/dockerfiles/debian-mipsel-cross.docker +4 -6
@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile --layers all --cross-arch mipsel debian-11 qemu +# $ lcitool dockerfile --layers all --cross-arch mipsel debian-12 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/debian:11-slim +FROM docker.io/library/debian:12-slim RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \
@@ -48,16 +48,15 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ python3-opencv \ python3-pillow \ python3-pip \ - python3-setuptools \ python3-sphinx \ python3-sphinx-rtd-theme \ python3-venv \ - python3-wheel \ python3-yaml \ rpm2cpio \ sed \ socat \ sparse \ + swtpm \ tar \ tesseract-ocr \ tesseract-ocr-eng \
@@ -69,8 +68,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ dpkg-reconfigure locales && \ rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED -RUN /usr/bin/pip3 install tomli - ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make"
@@ -143,6 +140,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ libvdeplug-dev:mipsel \ libvirglrenderer-dev:mipsel \ libvte-2.91-dev:mipsel \ + libxdp-dev:mipsel \ libzstd-dev:mipsel \ nettle-dev:mipsel \ systemtap-sdt-dev:mipsel \
tests/lcitool/refresh +2 -2
@@ -159,7 +159,7 @@ try: trailer=cross_build("arm-linux-gnueabihf-", "arm-softmmu,arm-linux-user")) - generate_dockerfile("debian-i686-cross", "debian-11", + generate_dockerfile("debian-i686-cross", "debian-12", cross="i686", trailer=cross_build("i686-linux-gnu-", "x86_64-softmmu,"
@@ -171,7 +171,7 @@ try: trailer=cross_build("mips64el-linux-gnuabi64-", "mips64el-softmmu,mips64el-linux-user")) - generate_dockerfile("debian-mipsel-cross", "debian-11", + generate_dockerfile("debian-mipsel-cross", "debian-12", cross="mipsel", trailer=cross_build("mipsel-linux-gnu-", "mipsel-softmmu,mipsel-linux-user"))
Signature · 1 line
2.39.2
[PULL 04/10] docs/devel: fix duplicate line
In reply to Alex BennéeI guess the same change came in via two patch series. Remove the repetition.
Message-Id: <[email protected]>
docs/devel/testing/main.rst +0 -6
@@ -500,12 +500,6 @@ first to contribute the mapping to the ``libvirt-ci`` project: `CI <https://www.qemu.org/docs/master/devel/ci.html>`__ documentation page on how to trigger gitlab CI pipelines on your change. - * Please also trigger gitlab container generation pipelines on your change - for as many OS distros as practical to make sure that there are no - obvious breakages when adding the new pre-requisite. Please see - `CI <https://www.qemu.org/docs/master/devel/ci.html>`__ documentation - page on how to trigger gitlab CI pipelines on your change. - For enterprise distros that default to old, end-of-life versions of the Python runtime, QEMU uses a separate set of mappings that work with more recent versions. These can be found in ``tests/lcitool/mappings.yml``.
Signature · 1 line
2.39.2
[PULL 08/10] tests/guest-debug: Support passing arguments to the GDB test script
In reply to Alex BennéeFrom: Gustavo Romero <[email protected]>
This commit adds support for passing arguments to the GDB test scripts so it's possible to parse the args in an "argparse way" in the test scripts launched by the runner. The arguments should be preceded by -- when passed to the runner. For example, passing "--help" arg to the GDB_TEST_SCRIPT:
run-test.py [...] --test <GDB_TEST_SCRIPT> -- --help
The test script should not use the argparse module directly but import arg_parser from test_gdbstub module. arg_parser then can be used just like the argparse.ArgumentParser class:
from test_gdbstub import arg_parser
p = arg_parser(prog="test-mytest.py", description="My test.") p.add_argument("--vowel", help="Select vowel",
required=True, choices=['a','e','i','o','u'])
[...]
The arg_parser allows a smooth and informative exit if, for instance, the caller of the runner script passes an invalid argument or misses a required argument by the test script.
Message-Id: <[email protected]>
Message-Id: <[email protected]>
tests/guest-debug/run-test.py +6 -0
@@ -27,6 +27,10 @@ def get_args(): parser.add_argument("--binary", help="Binary to debug", required=True) parser.add_argument("--test", help="GDB test script") + parser.add_argument('test_args', nargs='*', + help="Additional args for GDB test script. " + "The args should be preceded by -- to avoid confusion " + "with flags for runner script") parser.add_argument("--gdb", help="The gdb binary to use", default=None) parser.add_argument("--gdb-args", help="Additional gdb arguments")
@@ -91,6 +95,8 @@ def log(output, msg): gdb_cmd += " -ex 'target remote %s'" % (socket_name) # finally the test script itself if args.test: + if args.test_args: + gdb_cmd += f" -ex \"py sys.argv={args.test_args}\"" gdb_cmd += " -x %s" % (args.test)
tests/guest-debug/test_gdbstub.py +5 -0
@@ -2,6 +2,7 @@ """ from __future__ import print_function +import argparse import gdb import os import sys
@@ -9,6 +10,10 @@ fail_count = 0 +class arg_parser(argparse.ArgumentParser): + def exit(self, status=None, message=""): + print("Wrong GDB script test argument! " + message) + gdb.execute("exit 1") def report(cond, msg): """Report success/fail of a test"""
Signature · 1 line
2.39.2
[PULL 01/10] tests/docker: remove debian-armel-cross
In reply to Alex BennéeAs debian-11 transitions to LTS we are starting to have problems building the image. While we could update to a later Debian building a 32 bit QEMU without modern floating point is niche host amongst the few remaining 32 bit hosts we regularly build for. For now we still have armhf-debian-cross-container which is currently built from the more recent debian-12.
Message-Id: <[email protected]>
.gitlab-ci.d/container-cross.yml +0 -6
@@ -22,12 +22,6 @@ arm64-debian-cross-container: variables: NAME: debian-arm64-cross -armel-debian-cross-container: - extends: .container_job_template - stage: containers - variables: - NAME: debian-armel-cross - armhf-debian-cross-container: extends: .container_job_template stage: containers
.gitlab-ci.d/crossbuilds.yml +0 -7
@@ -1,13 +1,6 @@ include: - local: '/.gitlab-ci.d/crossbuild-template.yml' -cross-armel-user: - extends: .cross_user_build_job - needs: - job: armel-debian-cross-container - variables: - IMAGE: debian-armel-cross - cross-armhf-user: extends: .cross_user_build_job needs:
tests/docker/dockerfiles/debian-armel-cross.docker deleted +0 -179
179 lines not on this page · raw message
tests/lcitool/refresh +0 -6
@@ -154,12 +154,6 @@ try: trailer=cross_build("aarch64-linux-gnu-", "aarch64-softmmu,aarch64-linux-user")) - # migration to bookworm stalled: https://lists.debian.org/debian-arm/2023/09/msg00006.html - generate_dockerfile("debian-armel-cross", "debian-11", - cross="armv6l", - trailer=cross_build("arm-linux-gnueabi-", - "arm-softmmu,arm-linux-user,armeb-linux-user")) - generate_dockerfile("debian-armhf-cross", "debian-12", cross="armv7l", trailer=cross_build("arm-linux-gnueabihf-",
Signature · 1 line
2.39.2
[PULL 03/10] tests/docker: use debian-all-test-cross for mips64el tests
In reply to Alex BennéeWhile the mips64el cross compilation environment is busted in Debian we can use the debian-all-test-cross image for building TCG tests like we do in the CI.
Message-Id: <[email protected]>
configure +1 -1
@@ -1328,7 +1328,7 @@ probe_target_compiler() { container_cross_prefix=microblaze-linux-musl- ;; mips64el) - container_image=debian-mips64el-cross + container_image=debian-all-test-cross container_cross_prefix=mips64el-linux-gnuabi64- ;; tricore)
Signature · 1 line
2.39.2
[PULL 05/10] scripts/ci: update the gitlab-runner playbook
In reply to Alex BennéeThe upstream install instructions:
https://docs.gitlab.com/runner/install/linux-repository.html
Now refer to repositories and a setup script. Modernise the playbook to use the preferred delivery method.
Message-Id: <[email protected]>
scripts/ci/setup/gitlab-runner.yml +30 -9
@@ -49,30 +49,51 @@ - debug: msg: gitlab-runner arch is {{ gitlab_runner_arch }} - - name: Download the matching gitlab-runner (DEB) + # Debian/Ubuntu setup + - name: Get gitlab-runner repo setup script (DEB) get_url: dest: "/root/" - url: "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_{{ gitlab_runner_arch }}.deb" + url: "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" + mode: 0755 when: - ansible_facts['distribution'] == 'Ubuntu' - - name: Download the matching gitlab-runner (RPM) + - name: Run gitlab-runner repo setup script (DEB) + shell: "/root/script.deb.sh" + when: + - ansible_facts['distribution'] == 'Ubuntu' + + - name: Install gitlab-runner (DEB) + ansible.builtin.apt: + name: gitlab-runner + update_cache: yes + state: present + when: + - ansible_facts['distribution'] == 'Ubuntu' + + # RPM setup + - name: Get gitlab-runner repo setup script (RPM) get_url: dest: "/root/" - url: "https://gitlab-runner-downloads.s3.amazonaws.com/latest/rpm/gitlab-runner_{{ gitlab_runner_arch }}.rpm" + url: "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" + mode: 0755 when: - ansible_facts['distribution'] == 'CentOS' - - name: Install gitlab-runner via package manager (DEB) - apt: deb="/root/gitlab-runner_{{ gitlab_runner_arch }}.deb" + - name: Run gitlab-runner repo setup script (RPM) + shell: "/root/script.rpm.sh" when: - - ansible_facts['distribution'] == 'Ubuntu' + - ansible_facts['distribution'] == 'CentOS' - - name: Install gitlab-runner via package manager (RPM) - yum: name="/root/gitlab-runner_{{ gitlab_runner_arch }}.rpm" + - name: Install gitlab-runner (RPM) + yum: + name: gitlab-runner + update_cache: yes + state: present when: - ansible_facts['distribution'] == 'CentOS' + # Register Runners - name: Register the gitlab-runner command: "/usr/bin/gitlab-runner register --non-interactive --url {{ gitlab_runner_server_url }} --registration-token {{ gitlab_runner_registration_token }} --executor shell --tag-list {{ ansible_facts[\"architecture\"] }},{{ ansible_facts[\"distribution\"]|lower }}_{{ ansible_facts[\"distribution_version\"] }} --description '{{ ansible_facts[\"distribution\"] }} {{ ansible_facts[\"distribution_version\"] }} {{ ansible_facts[\"architecture\"] }} ({{ ansible_facts[\"os_family\"] }})'"
Signature · 1 line
2.39.2
Peter Maydell
AppliedQuoted 16 lines · Alex Bennée
The following changes since commit
a66f28df650166ae8b50c992eea45e7b247f4143:Merge tag 'migration-20240909-pull-request' of https://gitlab.com/peterx/qemu into staging (2024-09-10 11:19:22 +0100)
are available in the Git repository at:
https://gitlab.com/stsquad/qemu.git tags/pull-testing-gdbstub-oct-100924-1
for you to fetch changes up to
06dd94e84336d2c5a86c99049dc9abb4a1d6b2e5:tests/tcg/aarch64: Extend MTE gdbstub tests to system mode (2024-09-10 23:34:03 +0100)
----------------------------------------------------------------
testing and gdbstub updates:
Quoted 7 lines
- remove docker-armel-cross
- update i686 and mipsel images to bookworm
- use docker-all-test-cross for mips64le tests
- fix duplicated line in docs
- update gitlab-runner ansible script
- support MTE in gdbstub for system mode
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/9.2
for any user-visible changes.
-- PMM