Skip to content
Draft
Show file tree
Hide file tree
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
File renamed without changes.
6 changes: 3 additions & 3 deletions .github/workflows/scan-logs.sh → .ci/scan-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# The markup in the output is a GitHub Actions logging command
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions
LOGS=${1-logs}
for a in $(find "$LOGS" -type f -name "*.log"); do
if tail -100 "$a" 2>/dev/null | grep "^[A-Za-z]*Error" >/dev/null; then
for a in $(find "$LOGS" -type f -name "*.log" | sort); do
if tail -100 "$a" 2>/dev/null | grep -E "^(([[][^]]*[]] *)*[A-Za-z]*Error|configure: exit)" >/dev/null; then
echo :":"error file=$a:":" ==== ERROR IN LOG FILE $a ====
echo "::group::$a"
cat "$a"
echo "::endgroup::"
elif tail -20 "$a" 2>/dev/null | grep -E "^(Warning: Error testing|^sage .*doctest.*failed)" >/dev/null; then
elif tail -20 "$a" 2>/dev/null | grep -E "^([[][^]]*[]] *)*(Warning: Error testing|^sage .*doctest.*failed)" >/dev/null; then
echo :":"warning file=$a:":" ==== TESTSUITE FAILURE IN LOG FILE $a ====
echo "::group::$a"
cat "$a"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,6 @@ jobs:
- name: Print out logs for immediate inspection
# and markup the output with GitHub Actions logging commands
run: |
.github/workflows/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"
if [ -x .ci/scan-logs.sh ]; then .ci/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"; fi
if [ -x .github/workflows/scan-logs.sh ]; then .github/workflows/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"; fi
if: always()
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ jobs:
- name: Print out logs for immediate inspection
# and markup the output with GitHub Actions logging commands
run: |
.github/workflows/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"
if [ -x .ci/scan-logs.sh ]; then .ci/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"; fi
if [ -x .github/workflows/scan-logs.sh ]; then .github/workflows/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"; fi
if: always()
- name: List Docker images
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ jobs:
# This is macOS tar -- cannot use --listed-incremental
run: |
export SAGE_LOCAL=$(pwd)/.tox/$TOX_ENV/local
.github/workflows/extract-sage-local.sh sage-local-artifact/sage-local-*.tar
if [ -x .ci/extract-sage-local.sh ]; then .ci/extract-sage-local.sh sage-local-artifact/sage-local-*.tar; fi
if [ -x .github/workflows/extract-sage-local.sh ]; then .github/workflows/extract-sage-local.sh sage-local-artifact/sage-local-*.tar; fi
if: contains(inputs.stage, '2')
- name: Build and test with tox
# We use a high parallelization on purpose in order to catch possible parallelization bugs in the build scripts.
Expand Down Expand Up @@ -157,7 +158,8 @@ jobs:
- name: Print out logs for immediate inspection
# and markup the output with GitHub Actions logging commands
run: |
.github/workflows/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"
if [ -x .ci/scan-logs.sh ]; then .ci/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"; fi
if [ -x .github/workflows/scan-logs.sh ]; then .github/workflows/scan-logs.sh "artifacts/$LOGS_ARTIFACT_NAME"; fi
if: always()
- name: Prepare sage-local artifact
# This also includes the copies of homebrew or conda installed in the tox environment.
Expand Down