Skip to contentSkip to conversation

gitlab: remove gdb from MacOS jobs

PATCH Applied Alex Bennée 4 participants 6 messages Jul 20 – Jul 21

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gitlab: remove gdb from MacOS jobs

The gdb jobs fail on CI and although I can't replicate locally on the machine I have access to it definitely fixes it for the gitlab CI machines.

---
v2
- better commit message.

---
 .gitlab-ci.d/macos.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/macos.yml +1 -1
index 53b6e6c4d8f..641a48b3832 100644
@@ -22,7 +22,7 @@
     - export PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     - brew update
     - brew install $PKGS
-    - brew install gdb aarch64-elf-gcc i686-elf-gcc x86_64-elf-gcc
+    - brew install aarch64-elf-gcc i686-elf-gcc x86_64-elf-gcc
     - if test -n "$PYPI_PKGS" ; then PYLIB=$($PYTHON -c 'import sysconfig; print(sysconfig.get_path("stdlib"))'); rm -f $PYLIB/EXTERNALLY-MANAGED; $PIP3 install --break-system-packages $PYPI_PKGS ; fi
   script:
     - mkdir build
Signature · 1 line
2.47.3
#2 lore raw
In reply to Alex Bennée

Hi Alex,

Quoted 1 line · Alex Bennée

The gdb jobs fail on CI

What is the CI failure? Could we at least record where the CI console fail?

I'm worried to recall what was the issue when trying to fix this in the future.

Quoted 18 lines

and although I can't replicate locally on the
machine I have access to it definitely fixes it for the gitlab CI machines.

---
v2
- better commit message.

---
  .gitlab-ci.d/macos.yml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/macos.yml +0 -0
index 53b6e6c4d8f..641a48b3832 100644

.gitlab-ci.d/macos.yml line 25

Quoted 5 lines
.gitlab-ci.d/macos.yml +1 -1
@@ -22,7 +22,7 @@
      - export PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
      - brew update
      - brew install $PKGS
-    - brew install gdb aarch64-elf-gcc i686-elf-gcc x86_64-elf-gcc
+    - brew install aarch64-elf-gcc i686-elf-gcc x86_64-elf-gcc

Maybe add a comment "# we ought to install gdb but ..."

Quoted 3 lines
.gitlab-ci.d/macos.yml +0 -0
      - if test -n "$PYPI_PKGS" ; then PYLIB=$($PYTHON -c 'import sysconfig; print(sysconfig.get_path("stdlib"))'); rm -f $PYLIB/EXTERNALLY-MANAGED; $PIP3 install --break-system-packages $PYPI_PKGS ; fi
    script:
      - mkdir build
#3 lore raw
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 1 line · Alex Bennée

The gdb jobs fail on CI

What is the CI failure? Could we at least record where the CI console fail?

I'm worried to recall what was the issue when trying to fix this in the future.

I added the following to the commit message when merging this for -rc1:

This fixes the following CI jobs: aarch64-macos-15-build and aarch64-macos-26-build.

Removing gdb from macOS jobs skips the softmmu gdbstub tests which currently hang on GitLab's macOS runners:

qemu-system-aarch64: -gdb
unix:path=/var/folders/fc/8_hzw5tx3n7c9c04tzd6tv_40000gn/T/tmpes3paikrqemu-gdbstub/gdbstub.socket,server=on:
info: QEMU waiting for connection on:
disconnected:unix:/var/folders/fc/8_hzw5tx3n7c9c04tzd6tv_40000gn/T/tmpes3paikrqemu-gdbstub/gdbstub.socket,server=on
gmake[1]: ***
[/Users/gitlab/builds/qemu-project/qemu/tests/tcg/multiarch/system/Makefile.softmmu-target:35:
run-gdbstub-interrupt] Error 137
gmake: *** [/Users/gitlab/builds/qemu-project/qemu/tests/Makefile.include:75:
run-tcg-tests-aarch64-softmmu] Error 2

The following GitLab work item tracks solving the underlying issue that is hanging softmmu gdbstub tests:
https://gitlab.com/qemu-project/qemu/-/work_items/4063

Stefan

#4 lore raw
Quoted 29 lines · Stefan Hajnoczi
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 1 line · Alex Bennée

The gdb jobs fail on CI

What is the CI failure? Could we at least record where the CI console fail?

I'm worried to recall what was the issue when trying to fix this in the future.

I added the following to the commit message when merging this for -rc1:

This fixes the following CI jobs: aarch64-macos-15-build and aarch64-macos-26-build.

Removing gdb from macOS jobs skips the softmmu gdbstub tests which currently hang on GitLab's macOS runners:

qemu-system-aarch64: -gdb
unix:path=/var/folders/fc/8_hzw5tx3n7c9c04tzd6tv_40000gn/T/tmpes3paikrqemu-gdbstub/gdbstub.socket,server=on:
info: QEMU waiting for connection on:
disconnected:unix:/var/folders/fc/8_hzw5tx3n7c9c04tzd6tv_40000gn/T/tmpes3paikrqemu-gdbstub/gdbstub.socket,server=on
gmake[1]: ***
[/Users/gitlab/builds/qemu-project/qemu/tests/tcg/multiarch/system/Makefile.softmmu-target:35:
run-gdbstub-interrupt] Error 137
gmake: *** [/Users/gitlab/builds/qemu-project/qemu/tests/Makefile.include:75:
run-tcg-tests-aarch64-softmmu] Error 2

Quoted 3 lines

The following GitLab work item tracks solving the underlying issue that is hanging softmmu gdbstub tests:

   https://gitlab.com/qemu-project/qemu/-/work_items/4063

Thank you Stefan! :)