Capture and archive sar data for autorelease jobs 78/55878/3
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 24 Apr 2017 01:17:24 +0000 (11:17 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 24 Apr 2017 11:42:00 +0000 (21:42 +1000)
Archive sar data for autorelease jobs to further analyse any memory
issues and print a summary memory stats at the end of the autorelease
build console logs. ksar can be used to generate relevent graphs
depending on the parameter analysed.

Change-Id: Ie93c954aebd7166befd7cb9d5abe10abf89df47c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/autorelease/autorelease-macros.yaml
jjb/autorelease/autorelease-templates.yaml

index f128bd4d323fcb34571f51ee1a6f20597456fbd4..ffde68726a0d7fde0ce824e1ea70cfa4741aa738 100644 (file)
       - shell: |
           uname -a
           df -h
+          # generate accounting summary
+          sudo LC_ALL=C /usr/lib64/sa/sa2 -A
+          sar -r
 
 - builder:
     name: autorelease-get-integration-test-variables
index e3398db4ac9a36ed37c426f8a43f0dbcb9b9cd06..bba7d4f0b0361fd3dac1a66d2b16be6ecac0cd4e 100644 (file)
       - autorelease-sys-stats
       - shell: |
           mkdir -p archives/
-          cp *.log *.prop $_
+          cp /var/log/sa/* *.log *.prop $_
 
     publishers:
       - opendaylight-infra-notify-status
           # in their builds.
           # TODO stop archiving **/*.zip once we figure out why artifacts are
           #      not deploying to Nexus
-          artifacts: 'dependencies.log, **/*.zip'
+          artifacts: 'dependencies.log, **/*.zip, /var/log/sa/*'
       - trigger-parameterized-builds:
           - project: 'integration-distribution-test-{integration-test}'
             condition: UNSTABLE_OR_BETTER