Skip to content

Commit

Permalink
Merge pull request #265 from vkucera/setup
Browse files Browse the repository at this point in the history
Add script for generating setup summary for troubleshooting support
  • Loading branch information
ddobrigk authored Sep 25, 2024
2 parents ae60772 + a582eb6 commit be30a6c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/troubleshooting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ You can inspect a failing [AliHyperloop test](../hyperloop/userdocumentation.md#

See the [Support](../gettingstarted/support.md) section for the list of Mattermost channels where you can ask for help.

When asking for help with compilation or with running a local analysis, it may be useful to provide basic information about your O2Physics setup.
You can generate it by running the [`summarise_o2p_setup.sh`](summarise_o2p_setup.sh) bash script in your `alice` directory.

When posting on Mattermost:

- Do not paste the entire content of files or any long blocks of log lines or code directly in the message. If needed, attach the file.
Expand Down
22 changes: 22 additions & 0 deletions docs/troubleshooting/summarise_o2p_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Summarise O2Physics setup

if [[ -n "$(which aliBuild)" ]]; then
echo "aliBuild location: $(which aliBuild)"
# echo "all aliBuild locations: $(whereis aliBuild)"
aliBuild version
else
echo "aliBuild not found."
fi

for repo in alidist O2 O2Physics; do
[[ -d "${repo}" ]] || { echo "Directory ${repo} not found."; continue; }
echo "Last commit of ${repo}: $(cd "${repo}" && git log -n 1 --pretty="format:%ci %h")"
done

for pkg in O2 O2Physics; do
log="$ALIBUILD_WORK_DIR/BUILD/${pkg}-latest/log"
[[ -f "${log}" ]] || { echo "Log file ${log} not found."; continue; }
echo "Last build of ${pkg}: $(stat -c "%y" "${log}")"
done

0 comments on commit be30a6c

Please sign in to comment.