Skip to content

Add core dump extraction from container in docker plugin - #124

Open
Tejaswini-Janjale25 wants to merge 2 commits into
eclipse-score:mainfrom
Tejaswini-Janjale25:tj_itf_test_extract_core_changes
Open

Add core dump extraction from container in docker plugin#124
Tejaswini-Janjale25 wants to merge 2 commits into
eclipse-score:mainfrom
Tejaswini-Janjale25:tj_itf_test_extract_core_changes

Conversation

@Tejaswini-Janjale25

Copy link
Copy Markdown

Add optional core dump extraction from Docker containers on teardown. Generic plugin change, currently used for ITF tests in bigdata.

@Tejaswini-Janjale25
Tejaswini-Janjale25 force-pushed the tj_itf_test_extract_core_changes branch from 1bdd4a4 to 6f63983 Compare July 21, 2026 10:23
@Tejaswini-Janjale25
Tejaswini-Janjale25 marked this pull request as ready for review July 21, 2026 10:25
Comment thread score/itf/plugins/docker.py Outdated
"--extract-core",
action="store_true",
default=False,
help="Extract core dump files from the container before teardown.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

message can be improved e.g. help="Directory where extracted core dumps are stored.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I have updated the message

return

for remote_path in core_paths:
local_path = os.path.join(output_base, remote_path.lstrip("/"))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should we check Path.is_dir() before attempting extraction?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added a check — if the given output directory isn't a valid directory, we log a warning and skip extraction instead of trying to download into an invalid path.

@Tejaswini-Janjale25
Tejaswini-Janjale25 force-pushed the tj_itf_test_extract_core_changes branch from 6f63983 to 88da2c0 Compare July 23, 2026 04:53
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.

2 participants