Skip to content

Better logging on webstandard job errors on CI. #2961

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
merged 1 commit into from
Mar 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/jobs/webstandard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,20 @@ RET=$?
section_end

section_start "Archive downloaded site"
set +e
cp -r localhost $ARTIFACTS/
set -e
section_end

section_start "Analyse failures"
#https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html
# https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html
# Exit code 4 is network error which we can ignore
# Exit code 8 can also be because of HTTP404 or 400
if [ $RET -ne 4 ] && [ $RET -ne 0 ] && [ $RET -ne 8 ]; then
# Exit code 8 can also be because of HTTP 400 or 404
if [ $RET -ne 0 ] && [ $RET -ne 4 ] && [ $RET -ne 8 ]; then
echo "Server log"
tail -n1000 /opt/domjude/domserver/webapp/var/log/prod.log
section_end

exit $RET
fi

Expand Down
Loading