Skip to content
Open
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
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions systemtest/apmservertest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Loading