Add Fuchsia perf output and fix upload

Bug: b/263477303
Change-Id: Ifabfd1c015788e944d1b78ba2a0454c29426c5e3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/290993
Commit-Queue: Christoffer Jansson <jansson@google.com>
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#39140}
This commit is contained in:
Christoffer Jansson 2023-01-18 14:46:34 +01:00 committed by WebRTC LUCI CQ
parent 9ece54fa73
commit 73918995a4
5 changed files with 36 additions and 6 deletions

View File

@ -730,13 +730,13 @@ if (rtc_include_tests && !build_with_chromium) {
testonly = true
deps = [
#TODO(fxbug.dev/115601) - Enable when fixed
#"call:call_perf_tests",
#"video:video_pc_full_stack_tests",
"call:call_perf_tests",
"modules/audio_coding:audio_coding_perf_tests",
"modules/audio_processing:audio_processing_perf_tests",
"pc:peerconnection_perf_tests",
"test:test_main",
"video:video_full_stack_tests",
"video:video_pc_full_stack_tests",
]
data = webrtc_perf_tests_resources

View File

@ -317,7 +317,11 @@
"isolated_scripts": [
{
"args": [
"--nologs"
"--nologs",
"--isolated-script-test-perf-output=${ISOLATED_OUTDIR}/perftest-output.json",
"--test-launcher-summary-output=${ISOLATED_OUTDIR}/gtest_output.json",
"--test-arg=--gtest_output=json:/custom_artifacts/gtest_output.json",
"--test-arg=--undefok=test_launcher_summary_output"
],
"isolate_name": "fuchsia_perf_tests",
"merge": {

View File

@ -51,6 +51,15 @@
}
}
},
'fuchsia-gtest-output': {
'$mixin_append': {
'args': [
'--test-launcher-summary-output=${ISOLATED_OUTDIR}/gtest_output.json',
'--test-arg=--gtest_output=json:/custom_artifacts/gtest_output.json',
'--test-arg=--undefok=test_launcher_summary_output'
]
}
},
'has_native_resultdb_integration': {
'resultdb': {
'enable': True,
@ -168,7 +177,10 @@
'args': ['--test-suite', 'fuchsia_perf_tests']
},
'$mixin_append': {
'args': ['--nologs']
'args': [
'--nologs',
'--isolated-script-test-perf-output=${ISOLATED_OUTDIR}/perftest-output.json'
]
}
},
'perf-low-bandwidth-audio-perf-test': {

View File

@ -35,6 +35,17 @@
}
}
},
# Hack to use the test-launcher-summary-output flag + emulator folders for gtest-output
# but it's currently the only way to get the file out of the emulator.
'fuchsia-gtest-output': {
'$mixin_append': {
'args': [
'--test-launcher-summary-output=${ISOLATED_OUTDIR}/gtest_output.json',
'--test-arg=--gtest_output=json:/custom_artifacts/gtest_output.json',
'--test-arg=--undefok=test_launcher_summary_output'
],
},
},
'ios-device-15.7': {
'swarming': {
'dimensions': {
@ -73,7 +84,10 @@
'args': ['--test-suite', 'fuchsia_perf_tests'],
},
'$mixin_append': {
'args': ['--nologs'],
'args': [
'--nologs',
'--isolated-script-test-perf-output=${ISOLATED_OUTDIR}/perftest-output.json',
],
},
},
'perf-low-bandwidth-audio-perf-test': {

View File

@ -118,7 +118,7 @@
},
'fuchsia_compatible_perf_tests': {
'fuchsia_perf_tests': {
'mixins': ['perf-fuchsia-perf-tests'],
'mixins': ['perf-fuchsia-perf-tests', 'fuchsia-gtest-output'],
},
},
'fuchsia_compatible_tests': {