Skip to content

ci: save integration logs artifacts #956

ci: save integration logs artifacts

ci: save integration logs artifacts #956

Workflow file for this run

name: integration
on:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Make archive directory
run: mkdir /tmp/archive_dir
- name: Test using docker-compose
run: ./start.sh
working-directory: ./docs/docker-compose
- name: Rename Directory
# Replace ":" with "_" everywhere in directory path.
# This needs to be done because GA does not support ":" colon character in artifacts (like in /root-2025-03-06_18:47:26-teuthology:no-ceph-main-distro-default-testnode).
# Invalid characters include: Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?, Carriage return \r, Line feed \n
if: always()
run: |
DIR=$(ls -d /tmp/archive_dir/root-*)
SAFE_DIR=${DIR//:/_} # Replace ":" with "_"
mv "$DIR" "$SAFE_DIR"
echo "ARCHIVE_DIR=$SAFE_DIR" >> $GITHUB_ENV
- name: Upload teuthology archive logs
uses: actions/upload-artifact@v4
if: always()
with:
name: teuthology-logs
path: |
${{ env.ARCHIVE_DIR }}/*