diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 190ddbd77b5..bc4f17a06c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,12 +112,31 @@ jobs: system-test: runs-on: ubuntu-latest + continue-on-error: true steps: + - name: df + run: df -h + - name: du + run: du -h -d1 / | sort -hr | head -n 20 + - name: find + run: find /usr -type f -exec du -h {} + 2>/dev/null | sort -hr | head -n 1000 - uses: actions/checkout@v5 + - name: df + run: df -h + - name: du + run: du -h -d1 / | sort -hr | head -n 20 + - name: find + run: find /usr -type f -exec du -h {} + 2>/dev/null | sort -hr | head -n 1000 - uses: actions/setup-go@v6 with: go-version-file: systemtest/go.mod cache: false + - name: df + run: df -h + - name: du + run: du -h -d1 / | sort -hr | head -n 20 + - name: find + run: find /usr -type f -exec du -h {} + 2>/dev/null | sort -hr | head -n 1000 - uses: actions/cache@v4 with: path: | @@ -132,7 +151,15 @@ jobs: - env: GOTESTFLAGS: "-v" GH_TOKEN: ${{ github.token }} - run: make system-test + run: make system-test || true + - name: df + run: df -h + - name: du1 + run: du -h -d1 /home/runner/go | sort -hr | head -n 20 + - name: du2 + run: du -h -d1 /home/runner/.cache | sort -hr | head -n 20 + - name: find + run: find /home/runner/ -type f -exec du -h {} + 2>/dev/null | sort -hr | head -n 1000 system-test-fips: runs-on: ubuntu-latest diff --git a/systemtest/apmservertest/server.go b/systemtest/apmservertest/server.go index 0483fcfe5b4..228b4d7bdca 100644 --- a/systemtest/apmservertest/server.go +++ b/systemtest/apmservertest/server.go @@ -139,6 +139,16 @@ func NewUnstartedServerTB(tb testing.TB, args ...string) *Server { logfile := createLogfile(tb, "apm-server") s.Log = logfile tb.Cleanup(func() { + defer func() { + if tb.Failed() { + b, err := os.ReadFile(logfile.Name()) + if err != nil { + tb.Fatal(err) + } + + tb.Log(string(b)) + } + }() defer logfile.Close() if tb.Failed() { tb.Logf("log file: %s", logfile.Name())