Skip to content

gdb/testsuite/rocm/runtime-core: ensure all or no test run#177

Merged
lancesix merged 1 commit into
amd-stagingfrom
users/lancesix/ensure-all-runtime-core-test-run-or-none
Jul 17, 2026
Merged

gdb/testsuite/rocm/runtime-core: ensure all or no test run#177
lancesix merged 1 commit into
amd-stagingfrom
users/lancesix/ensure-all-runtime-core-test-run-or-none

Conversation

@lancesix

Copy link
Copy Markdown
Collaborator

When working on coredump related issue, it was noticed that some runtime changes could work in some conditions but fail in others. The gdb.rocm/runtime-core.exp testcase was not really complaining about that, it would validate the core dumps when produced and skip the test if the core was absent.

It is expected that if the system configuration is not adequate, none of the runtime-core cases would run, but if at least one can run, it means all must also run.

This test ensures that we run either all or none of the testcase, and issue a FAIL if this property is not satisfied.

Change-Id: Ic79b958a0991b21dc1dfeb6bb13b3f292c53261f

@lancesix
lancesix requested a review from a team as a code owner June 18, 2026 10:44
Comment thread gdb/testsuite/gdb.rocm/runtime-core.exp Outdated
@lancesix
lancesix force-pushed the users/lancesix/ensure-all-runtime-core-test-run-or-none branch from e02b7f1 to 04093d6 Compare June 18, 2026 11:18
@lumachad

Copy link
Copy Markdown
Collaborator

With the fix I now see the following:

Running /develop/work/repos/TheRock/build/dist/rocm/tests/rocgdb/gdb/testsuite/gdb.rocm/runtime-core.exp ...
FAIL: gdb.rocm/runtime-core.exp: coredump consistently produced

                === gdb Summary ===

# of expected passes            53
# of unexpected failures        1
# of untested testcases         2

Probably need an extra fix to rocr-runtime?

@lumachad lumachad assigned lancesix and unassigned lumachad Jun 18, 2026

@lumachad lumachad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself is OK for me.

@lancesix

Copy link
Copy Markdown
Collaborator Author

With the fix I now see the following:

Running /develop/work/repos/TheRock/build/dist/rocm/tests/rocgdb/gdb/testsuite/gdb.rocm/runtime-core.exp ...
FAIL: gdb.rocm/runtime-core.exp: coredump consistently produced

                === gdb Summary ===

# of expected passes            53
# of unexpected failures        1
# of untested testcases         2

Probably need an extra fix to rocr-runtime?

would you have the gdb.log with those 2 untested entries I could look at?

Comment thread gdb/testsuite/gdb.rocm/runtime-core.exp Outdated
Comment thread gdb/testsuite/gdb.rocm/runtime-core.exp
When working on coredump related issue, it was noticed that some runtime
changes could work in some conditions but fail in others.  The
gdb.rocm/runtime-core.exp testcase was not really complaining about
that, it would validate the core dumps when produced and skip the test
if the core was absent.

It is expected that if the system configuration is not adequate, none of
the runtime-core cases would run, but if at least one can run, it means
all must also run.

This test ensures that we run either all or none of the testcase, and
issue a FAIL if this property is not satisfied.

Change-Id: Ic79b958a0991b21dc1dfeb6bb13b3f292c53261f
@lancesix
lancesix force-pushed the users/lancesix/ensure-all-runtime-core-test-run-or-none branch from 04093d6 to be26f87 Compare June 18, 2026 22:15
@lancesix

Copy link
Copy Markdown
Collaborator Author

Applied suggestions to comments.

@lancesix lancesix assigned palves and unassigned lancesix Jun 18, 2026

@aktemur aktemur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

@palves palves assigned lancesix and unassigned palves Jul 3, 2026
@aktemur

aktemur commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@lancesix, can this be merged?

@lumachad

Copy link
Copy Markdown
Collaborator

We need to re-trigger CI and see if the tests pass. The previous run skipped rocgdb testing.

@lancesix

Copy link
Copy Markdown
Collaborator Author

@lancesix, can this be merged?

I think so. If I emember correctly, it was help as it could start to issues fails due to some other bug, but should be ok now (otherwise, CI will eventually let me know).

@lumachad

Copy link
Copy Markdown
Collaborator

We need to re-trigger CI and see if the tests pass. The previous run skipped rocgdb testing.

Actually, this is a corefile test. Se we should validate it locally.

@lancesix
lancesix merged commit cd18601 into amd-staging Jul 17, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants