-
Notifications
You must be signed in to change notification settings - Fork 36
tests: add tests for ipc #897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's GuideThis PR adds a complete IPC-based testing framework for QM components using Unix domain sockets, implemented through new Python server and client scripts with systemd activation support, containerization via Containerfiles, shell-based orchestration of IPC scenarios, and accompanying documentation and FMF metadata. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @dougsland - I've reviewed your changes - here's some feedback:
- scripts/asil-to-qm and scripts/qm-to-qm are empty – please implement these test scripts so test_ipc.sh can actually exercise your IPC client/server.
- main.fmf is currently empty – add FMF metadata to define your IPC tests and configure the test harness to discover and run them.
- Consider ensuring proper startup and teardown of the IPC server (e.g. cleaning up stale socket files or adding a timeout/shutdown mechanism) to avoid flakiness between test runs.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- scripts/asil-to-qm and scripts/qm-to-qm are empty – please implement these test scripts so test_ipc.sh can actually exercise your IPC client/server.
- main.fmf is currently empty – add FMF metadata to define your IPC tests and configure the test harness to discover and run them.
- Consider ensuring proper startup and teardown of the IPC server (e.g. cleaning up stale socket files or adding a timeout/shutdown mechanism) to avoid flakiness between test runs.
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
1933f04
to
f13109b
Compare
FYI, there is an effort to move these script from python to c: https://gitlab.com/CentOS/automotive/sig-docs/-/merge_requests/362 Also, afaik there is an effort in place to run sig-docs setups in qm, which would make this PR partially redundant (cc @pbrilla-rh ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see QM -> QM logs running at all
And i do not know why /var partition check is failing
In other MR s it is passing
Thanks, @aesteve-rh. It's okay to close this one, but I'm wondering why such tests aren't run in the QM git tree before merging any patches. Also, we still need QM-to-QM as well. |
spoke with @engelmi and we agreed that might be a conflict but as we need this in qm upstream it's okay to have both. |
e52423d
to
5f8bece
Compare
800c754
to
be7583a
Compare
- qm-to-qm - asil-to-qm Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Albert Esteve <aesteve@redhat.com> Signed-off-by: Roberto Majadas <rmajadas@redhat.com>
ecf5a77
to
a313785
Compare
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
a313785
to
a2e6576
Compare
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
05d644b
to
fcf6ba1
Compare
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary by Sourcery
Introduce tests for IPC by adding a Unix domain socket server, client, container definitions, FMF metadata, and shell scripts to automate QM-to-QM and ASIL-to-QM IPC test workflows.
New Features:
Build:
Documentation:
Tests:
Chores: