-
Notifications
You must be signed in to change notification settings - Fork 65
CI: Various Improvements to CI #1209
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
Merged
markbrown314
merged 1 commit into
Sandia-OpenSHMEM:main
from
markbrown314:1206/submission
Jul 1, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set pagination off | ||
info threads | ||
list | ||
thread apply all backtrace 50 | ||
detach | ||
quit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
# Copyright(c) 2025 Intel Corporation. All rights reserved. | ||
|
||
CORE_DIR="/tmp/core" | ||
CORE_OUTPUT=$(mktemp /tmp/debug.XXXXXX) | ||
CORE_ARCHIVE=${GITHUB_WORKSPACE}/archives | ||
CORE_ARCHIVE_DUMP=${CORE_ARCHIVE}/core_files | ||
|
||
case $1 in | ||
init) | ||
echo "notice: enabling core dump artifacts support" | ||
mkdir "${CORE_ARCHIVE}" ${CORE_DIR} | ||
if [ ! -e "${CORE_ARCHIVE}" ] || [ ! -e "${CORE_DIR}" ]; then | ||
echo "error: creating core archive" | ||
exit 2 | ||
fi | ||
|
||
sudo bash -c 'echo '"${CORE_DIR}"'/%E.%p.core > /proc/sys/kernel/core_pattern' | ||
echo "set debuginfod enabled on" > "${HOME}"/.gdbinit | ||
;; | ||
scan) | ||
echo "notice: scanning for core dump files" | ||
mkdir -p "${CORE_ARCHIVE}" "${CORE_ARCHIVE_DUMP}" | ||
|
||
if [ ! -e "${CORE_ARCHIVE}" ] || [ ! -e "${CORE_ARCHIVE_DUMP}" ]; then | ||
echo "error: creating core archive" | ||
exit 2 | ||
fi | ||
|
||
core_list=$(find ${CORE_DIR} -name '*.core' -type f -printf '%f;') | ||
IFS=';' | ||
|
||
if [ "${core_list}" == "" ]; then | ||
echo "notice: no core dump files found" | ||
exit 0 | ||
fi | ||
|
||
for core in ${core_list} | ||
do | ||
exe=$(echo "${core}" | sed 's/\.[0-9]*\.core$//' | sed 's/\!/\//g') | ||
echo -e "\n---\nDumping core dump info for: ${exe}\n---\n" >> "${CORE_OUTPUT}" | ||
gdb --batch -x "${GITHUB_WORKSPACE}"/.github/scripts/gdb_dump_info.cmd -c "${CORE_DIR}"/"${core}" "${exe}" >> "${CORE_OUTPUT}" | ||
# copy core file to artifact location | ||
core_file_demangled=$(echo "${CORE_DIR}"/"${core}" | sed 's/\!/\//g') | ||
core_file=$(basename "$core_file_demangled") | ||
cp "${CORE_DIR}"/"${core}" "${CORE_ARCHIVE_DUMP}"/"${core_file}" | ||
done | ||
|
||
echo "notice: core dump files detected" | ||
cat "${CORE_OUTPUT}" | ||
|
||
cd "${GITHUB_WORKSPACE}" || exit 3 | ||
tar -cvzf "${CORE_ARCHIVE}"/sos_test.tar.gz build | ||
cp "${CORE_OUTPUT}" "${CORE_ARCHIVE}"/output.txt | ||
;; | ||
*) | ||
echo "error: invalid parameter specified" | ||
exit 1 | ||
;; | ||
esac |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just checking - Any issues with sudo being used in the CI script?
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.
Yes, sudo is required to modify sysfs. Sudo is okay in github runners