-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pbench-move-results to only push valid results
A valid result is defined to be where the name of the result directory in /var/lib/pbench-agent is the same as the value in the metadata.log file under the "name" option of the "pbench" section. Fixes #1039.
- Loading branch information
Showing
10 changed files
with
176 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
+++ setup pbench results dir time stamps | ||
--- setup pbench results dir time stamps | ||
+++ Running test-33 pbench-move-results | ||
tar --create --force-local "pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42" | xz -T0 > "/var/tmp/pbench-test-utils/pbench/tmp/pbench-move-results.NNNNN/testhost/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42.tar.xz" | ||
[warn][1900-01-01T00:00:00.000000] the run in directory /var/tmp/pbench-test-utils/pbench/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.43 has an unexpected metadata name, "pbench-user-benchmark__2019.01.01T12.00.43" - skipping | ||
--- Finished test-33 pbench-move-results (status=0) | ||
+++ pbench tree state | ||
/var/tmp/pbench-test-utils/pbench | ||
/var/tmp/pbench-test-utils/pbench/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.43 | ||
/var/tmp/pbench-test-utils/pbench/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.43/metadata.log | ||
/var/tmp/pbench-test-utils/pbench/pbench.log | ||
/var/tmp/pbench-test-utils/pbench/[email protected]: | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/iostat | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/mpstat | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/perf | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/pidstat | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/proc-interrupts | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/proc-vmstat | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/sar | ||
/var/tmp/pbench-test-utils/pbench/[email protected]:/foo/bar/turbostat | ||
/var/tmp/pbench-test-utils/pbench/tmp | ||
--- pbench tree state | ||
+++ pbench.log file contents | ||
/var/tmp/pbench-test-utils/pbench/pbench.log:Fake log file contents. | ||
/var/tmp/pbench-test-utils/pbench/pbench.log:[debug][1900-01-01T00:00:00.000000] preparing to copy 1 MB of data from /var/tmp/pbench-test-utils/pbench/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42 | ||
/var/tmp/pbench-test-utils/pbench/pbench.log:[warn][1900-01-01T00:00:00.000000] the run in directory /var/tmp/pbench-test-utils/pbench/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.43 has an unexpected metadata name, "pbench-user-benchmark__2019.01.01T12.00.43" - skipping | ||
/var/tmp/pbench-test-utils/pbench/pbench.log:[debug][1900-01-01T00:00:00.000000] successfully moved 1 runs, encountered 0 failures | ||
--- pbench.log file contents | ||
+++ test-execution.log file contents | ||
/var/tmp/pbench-test-utils/test-execution.log:/var/tmp/pbench-test-utils/opt/pbench-agent/unittest-scripts/yum info installed pbench-agent | ||
/var/tmp/pbench-test-utils/test-execution.log:/var/tmp/pbench-test-utils/opt/pbench-agent/unittest-scripts/yum info installed pbench-agent | ||
/var/tmp/pbench-test-utils/test-execution.log:/var/tmp/pbench-test-utils/opt/pbench-agent/unittest-scripts/curl -s -A pbench-agent-unknown-:agent.example.com:nobody:/var/tmp/pbench-test-utils/opt/pbench-agent/util-scripts/pbench-move-results -L http://pbench.example.com/pbench-results-host-info.versioned/pbench-results-host-info.URL002 | ||
/var/tmp/pbench-test-utils/test-execution.log:/var/tmp/pbench-test-utils/opt/pbench-agent/unittest-scripts/ssh -q -i /var/tmp/pbench-test-utils/opt/pbench-agent/id_rsa -o StrictHostKeyChecking=no [email protected] exit | ||
/var/tmp/pbench-test-utils/test-execution.log:/var/tmp/pbench-test-utils/opt/pbench-agent/unittest-scripts/scp -r -o StrictHostKeyChecking=no -i /var/tmp/pbench-test-utils/opt/pbench-agent/id_rsa -o StrictHostKeyChecking=no /var/tmp/pbench-test-utils/pbench/tmp/pbench-move-results.NNNNN/testhost [email protected]:/foo/bar | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/iostat:foo | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/mpstat:bar | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/perf:baz | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/pidstat:hunoz | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/proc-interrupts:hukerz | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/proc-vmstat:foobar | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/sar:foo | ||
/var/tmp/pbench-test-utils/test-execution.log:[email protected]:/foo/bar/turbostat:bar | ||
/var/tmp/pbench-test-utils/test-execution.log:/var/tmp/pbench-test-utils/opt/pbench-agent/unittest-scripts/ssh -i /var/tmp/pbench-test-utils/opt/pbench-agent/id_rsa -o StrictHostKeyChecking=no [email protected] cd /foo/bar/testhost; md5sum --check pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42.tar.xz.md5.check && mv pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42.tar.xz.md5.check pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42.tar.xz.md5 | ||
--- test-execution.log file contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
+++ Running test-34 pbench-move-results | ||
usage: | ||
pbench-move-results [--help] [--user=<user>] [--prefix=<path>] [--xz-single-threaded] [--show-server] | ||
--- Finished test-34 pbench-move-results (status=0) | ||
+++ pbench tree state | ||
/var/tmp/pbench-test-utils/pbench | ||
/var/tmp/pbench-test-utils/pbench/tmp | ||
--- pbench tree state | ||
+++ pbench.log file contents | ||
grep: /var/tmp/pbench-test-utils/pbench/pbench.log: No such file or directory | ||
--- pbench.log file contents | ||
+++ test-execution.log file contents | ||
grep: /var/tmp/pbench-test-utils/test-execution.log: No such file or directory | ||
--- test-execution.log file contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...util-scripts/samples/pbench-move-results/test-33/opt/pbench-agent/config/pbench-agent.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[DEFAULT] | ||
pbench_install_dir = /opt/pbench-agent | ||
pbench_results_redirector = pbench.example.com | ||
pbench_web_server = pbench.example.com | ||
|
||
[pbench-agent] | ||
install-dir = %(pbench_install_dir)s | ||
pbench_user = pbench | ||
pbench_group = pbench | ||
pbench_run = /var/lib/pbench-agent | ||
pbench_log = %(pbench_run)s/pbench.log | ||
|
||
[pbench-agent-internal] | ||
install-dir = /opt/pbench-agent-internal | ||
|
||
[results] | ||
user = pbench | ||
host_path = http://%(pbench_results_redirector)s/pbench-archive-host | ||
dir = /pbench/public_html/incoming | ||
ssh_opts = -o StrictHostKeyChecking=no | ||
webserver = %(pbench_web_server)s | ||
host_info_url = http://%(webserver)s/pbench-results-host-info.versioned/pbench-results-host-info.URL002 | ||
|
||
[pbench/tools] | ||
default-tool-set = sar, iostat, mpstat, pidstat, proc-vmstat, proc-interrupts, turbostat | ||
interval = 3 | ||
|
||
[tools/pidstat] | ||
interval = 30 | ||
|
||
[packages] | ||
|
||
[config] | ||
path = %(pbench_install_dir)s/config | ||
files = pbench-agent-default.cfg |
1 change: 1 addition & 0 deletions
1
agent/util-scripts/samples/pbench-move-results/test-33/opt/pbench-agent/id_rsa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
foo |
Empty file.
32 changes: 32 additions & 0 deletions
32
...-results/test-33/pbench/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42/metadata.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[pbench] | ||
name = pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.42 | ||
script = pbench-user-benchmark | ||
config = ndk-test-1 | ||
date = 2018-05-23T03:21:32 | ||
rpm-version = 0.50-1g799ea025 | ||
iterations = 1, 1 | ||
|
||
[tools] | ||
hosts = alphaville | ||
group = default | ||
|
||
[tools/alphaville] | ||
hostname-s = alphaville | ||
iostat = --interval=3 | ||
mpstat = --interval=3 | ||
perf = --record-opts=record -a --freq=100 | ||
pidstat = --interval=30 | ||
proc-interrupts = --interval=3 | ||
proc-vmstat = --interval=3 | ||
sar = --interval=3 | ||
turbostat = --interval=3 | ||
|
||
[run] | ||
controller = alphaville.usersys.redhat.com | ||
start_run = 2018-05-23T03:21:32.387628370 | ||
end_run = 2018-05-23T03:22:39.538437410 | ||
|
||
[iterations/1] | ||
iteration_name = 1 | ||
user_script = sleep | ||
|
32 changes: 32 additions & 0 deletions
32
...-results/test-33/pbench/pbench-user-benchmark_ndk-test-1_2019.01.01T12.00.43/metadata.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[pbench] | ||
name = pbench-user-benchmark__2019.01.01T12.00.43 | ||
script = pbench-user-benchmark | ||
config = | ||
date = 2018-05-23T03:21:32 | ||
rpm-version = 0.50-1g799ea025 | ||
iterations = 1, 1 | ||
|
||
[tools] | ||
hosts = alphaville | ||
group = default | ||
|
||
[tools/alphaville] | ||
hostname-s = alphaville | ||
iostat = --interval=3 | ||
mpstat = --interval=3 | ||
perf = --record-opts=record -a --freq=100 | ||
pidstat = --interval=30 | ||
proc-interrupts = --interval=3 | ||
proc-vmstat = --interval=3 | ||
sar = --interval=3 | ||
turbostat = --interval=3 | ||
|
||
[run] | ||
controller = alphaville.usersys.redhat.com | ||
start_run = 2018-05-23T03:21:32.387628370 | ||
end_run = 2018-05-23T03:22:39.538437410 | ||
|
||
[iterations/1] | ||
iteration_name = 1 | ||
user_script = sleep | ||
|
1 change: 1 addition & 0 deletions
1
agent/util-scripts/samples/pbench-move-results/test-33/pbench/pbench.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fake log file contents. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters