Skip to content

fix: QEMU: return correct PID for process under test - #127

Open
danth wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:fix/qemu-pid
Open

fix: QEMU: return correct PID for process under test#127
danth wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:fix/qemu-pid

Conversation

@danth

@danth danth commented Jul 30, 2026

Copy link
Copy Markdown
Member

In lifecycle we use a signal to shut down our daemon gracefully at the end of each test.

Currently:

  • The Docker plugin returns the PID of the process under test
  • The QEMU plugin returns the PID of a parent shell process

This makes it difficult to send the signal as we would have to detect which plugin is in use, then on QEMU run more commands to figure out the PID of the child.

This tiny change makes QEMU plugin behave the same as the Docker plugin in this regard.

danth added a commit to etas-contrib/score_lifecycle that referenced this pull request Aug 3, 2026
danth added a commit to etas-contrib/score_lifecycle that referenced this pull request Aug 3, 2026
danth added a commit to etas-contrib/score_lifecycle that referenced this pull request Aug 3, 2026
danth added a commit to etas-contrib/score_lifecycle that referenced this pull request Aug 3, 2026
danth added a commit to etas-contrib/score_lifecycle that referenced this pull request Aug 4, 2026
MaciejKaszynski pushed a commit to eclipse-score/lifecycle that referenced this pull request Aug 4, 2026
* Run integration tests on QNX via QEMU

* Avoid `junitparser` dependency in tests

Our Bazel toolchain for Python does not work with QNX, so we need to use built-in libraries to parse the results instead.

* Mark some build targets as incompatible with QNX

* Work around QNX unit test flags breaking integration tests

With proper use of Bazel platforms rather than configs, I think it would be possible to do this in a much cleaner way.
However that would require deeper changes across our codebase and possibly in the test frameworks as well.

* Work around eclipse-score/itf#125

* Mention QEMU tests in README

* Work around eclipse-score/itf#127

* Always cleanly skip incompatible tests

This decouples the choice of Docker/QEMU/native from the choice of
Linux/QNX. Then, targets are marked as compatible only if the current
combination is known to work.

The existing bazelrc shortcuts are updated to set the new flags, so
what you actually type at the command line has not changed.

The benefit is that running QNX tests with the wrong shortcut will now
just list them as skipped, rather than giving a cryptic error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant