Skip to content

Commit be30a6c

Browse files
authored
Merge pull request #265 from vkucera/setup
Add script for generating setup summary for troubleshooting support
2 parents ae60772 + a582eb6 commit be30a6c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

docs/troubleshooting/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ You can inspect a failing [AliHyperloop test](../hyperloop/userdocumentation.md#
4747

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

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

5255
- 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.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# Summarise O2Physics setup
4+
5+
if [[ -n "$(which aliBuild)" ]]; then
6+
echo "aliBuild location: $(which aliBuild)"
7+
# echo "all aliBuild locations: $(whereis aliBuild)"
8+
aliBuild version
9+
else
10+
echo "aliBuild not found."
11+
fi
12+
13+
for repo in alidist O2 O2Physics; do
14+
[[ -d "${repo}" ]] || { echo "Directory ${repo} not found."; continue; }
15+
echo "Last commit of ${repo}: $(cd "${repo}" && git log -n 1 --pretty="format:%ci %h")"
16+
done
17+
18+
for pkg in O2 O2Physics; do
19+
log="$ALIBUILD_WORK_DIR/BUILD/${pkg}-latest/log"
20+
[[ -f "${log}" ]] || { echo "Log file ${log} not found."; continue; }
21+
echo "Last build of ${pkg}: $(stat -c "%y" "${log}")"
22+
done

0 commit comments

Comments
 (0)