Skip to content

Commit

Permalink
CI: get pprof after test (#11699)
Browse files Browse the repository at this point in the history
  • Loading branch information
guguducken authored Sep 7, 2023
1 parent fc904c8 commit 449399b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/merge-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -846,10 +846,15 @@ jobs:
mkdir -p $GITHUB_WORKSPACE/upload && cd $GITHUB_WORKSPACE/upload
dn_ip=$(kubectl -n mo-checkin-regression-${{ github.event.pull_request.number }} get pods -l matrixorigin.io/component=DNSet -o=jsonpath='{range .items[*]}{.status.podIP}{"\n"}{end}')
curl "http://$dn_ip:6060/debug/pprof/trace?seconds=30" -o dn_trace.out
curl "http://$dn_ip:6060/debug/pprof/goroutine?debug=2" -o dn_groutine.out
cn_0_ip=$(kubectl -n mo-checkin-regression-${{ github.event.pull_request.number }} get pods -l matrixorigin.io/component=CNSet -o=jsonpath='{range .items[*]}{.status.podIP}{"\n"}{end}' | head -n 1)
curl "http://$cn_0_ip:6060/debug/pprof/trace?seconds=30" -o cn_0_trace.out
curl "http://$cn_0_ip:6060/debug/pprof/goroutine?debug=2" -o cn_0_groutine.out
cn_1_ip=$(kubectl -n mo-checkin-regression-${{ github.event.pull_request.number }} get pods -l matrixorigin.io/component=CNSet -o=jsonpath='{range .items[*]}{.status.podIP}{"\n"}{end}' | grep -v $cn_0_ip)
curl "http://$cn_1_ip:6060/debug/pprof/trace?seconds=30" -o cn_1_trace.out
curl "http://$cn_1_ip:6060/debug/pprof/goroutine?debug=2" -o cn_1_groutine.out
- uses: actions/upload-artifact@v3
if: ${{ needs.docker_image_build.result == 'success' }}
continue-on-error: true
Expand Down

0 comments on commit 449399b

Please sign in to comment.