Skip to content

Commit

Permalink
Add script for generating setup summary
Browse files Browse the repository at this point in the history
  • Loading branch information
vkucera committed Sep 11, 2024
1 parent fa96db1 commit cbff49d
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, provide basic information about your 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 cbff49d

Please sign in to comment.