Marc Bonnici
039758948e
workloads/androbench: Update uiauto apk with fix
2018-07-11 17:32:08 +01:00
Sergei Trofimov
ce93823967
fw/execution: write config after installing augs
...
Add Context.write_config() to write the combined config into run output
__meta. Use it after instruments and result processors get installed to
make sure their configuration gets serialized in the output.
2018-07-11 13:28:04 +01:00
Sergei Trofimov
7755363efd
fw/config: add get_config() to ConfigManager
...
Add a method to allow obtaining the combined config after config
manager has been finalized.
2018-07-11 13:28:04 +01:00
Sergei Trofimov
bcea1bd0af
fw/config: add resource getter to run config
...
Track resource getter configuration as part of the run config.
2018-07-11 13:28:04 +01:00
Sergei Trofimov
a062a39f78
fw/config: add installed aug configs to run config
...
Track configuration used for installed augmentations inside RunConfig.
2018-07-11 13:28:04 +01:00
Sergei Trofimov
b1a01f777f
fw/execution: rename things for clarity
...
- Rename "instrument_name" to "instrument" inside do_execute(), as
ConfigManger.get_instrument() returns a list of Instrument objects,
not names.
- To avoid name clash, rename the imported instrument module to
"instrumentation".
2018-07-11 13:28:04 +01:00
Sergei Trofimov
96dd100b70
utils/toggle_set: fix merge behavior
...
- Change how "source" and "dest" are handled inside merge() to be more
sane and less confusing, ensuring that disabling toggles are merged
correctly.
- Do not drop disabling values during merge, to ensure that merging
is a transitive operation.
- Add unit tests for the above fixes.
2018-07-11 10:48:00 +01:00
Marc Bonnici
e485b9ed39
utils/version: do not decode bytes
...
Check that the resulting output inside get_commit() is a str before
attempting to decode it when running on Python 3.
2018-07-11 10:39:38 +01:00
Marc Bonnici
86dcfbf595
workloads/androbench: Fix Formatting
2018-07-10 15:57:18 +01:00
Marc Bonnici
1b58390ff5
workloads/androbench: Fix for devices running Android 8.1
...
On some devices running Android 8.1 the start benchmark button was
failing to be clicked, this is a workaround to click on the coordinates
of the button instead of the UiObject iteslf.
2018-07-10 15:57:18 +01:00
Marc Bonnici
5714c8e6a1
wa: Additional pylint fixes
2018-07-10 12:56:51 +01:00
Marc Bonnici
791d9496a7
wa: Pylint Fixes for Travis
...
Pylint has trouble using imports from the distutils module in
virtualenvs so we need to explicitly ignore these imports.
2018-07-10 12:56:51 +01:00
Marc Bonnici
e8b0d42758
wa: PEP8 Fixes
2018-07-10 12:56:51 +01:00
Sergei Trofimov
fd1dd789bf
fw/output: update internal state on write_config()
...
Update the internal _combined_config object with the one that
has been written to ensure that the serialized and run time states are
the same.
2018-07-09 16:00:07 +01:00
Sergei Trofimov
c410d2e1a1
I lint, therefore I am
...
Implement fixes for the most recent pylint version.
2018-07-09 15:59:40 +01:00
Marc Bonnici
925bc8b719
wa: pep8 fixes
2018-07-06 14:39:41 +01:00
Sergei Trofimov
4b86fa5aee
commands/show: disable pylint
...
Disable pylint for wa/commands/show.py. Due to changes in recent
versions of pylint, it now takes an excessively long time to
process this file.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
03eafe6b33
framework: pep8 fixes
...
Fix issues reported by flake8.
2018-07-06 14:39:41 +01:00
Marc Bonnici
dbea1d7d09
wa/commands: pylint fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
c6ec7af665
wa/commands: pep8 fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
6afd710bd1
wa/instruments: pylint/fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
0b8501e010
wa/instruments: pep8 fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
30471613de
wa/output_processors: pylint fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
7f9737a844
wa/output_processors: Fix pep8
2018-07-06 14:39:41 +01:00
Marc Bonnici
9b2bc1369c
wa/workloads: pylint fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
6e94cbd36b
wa/workloads: pep8 fixes
2018-07-06 14:39:41 +01:00
Marc Bonnici
185bff9029
wa/utils: Fix pylint errors
2018-07-06 14:39:41 +01:00
Marc Bonnici
1550e9a788
wa/utils: Remove unrequired imports
2018-07-06 14:39:41 +01:00
Marc Bonnici
4d1c03cc5c
utils/types: Rename cls
argument
2018-07-06 14:39:41 +01:00
Marc Bonnici
cbc7b2647f
utils/types: Ignore import errors
2018-07-06 14:39:41 +01:00
Marc Bonnici
1a08b2a6c7
utils: pep8 fixes
2018-07-06 14:39:41 +01:00
Sergei Trofimov
f74b7ae78c
framework: fix pylint issues
...
Fix/disable checks for issues reported by pylint under wa/framework.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
8878cc20d4
Update copyright headers.
...
- Add copyright headers to files that did not already have them
- Update the year to the last year the file was modified in files with
existing headers.
2018-07-04 16:33:31 +01:00
Marc Bonnici
5892b1de18
commands/revent: Fix missing import
2018-07-04 16:33:08 +01:00
Marc Bonnici
452d91b2d6
output_processors/sqlite: Fix incorrect error type and import
2018-07-04 16:33:08 +01:00
Marc Bonnici
c9ff15ca53
wa/workloads: Fix missing imports
2018-07-04 16:33:08 +01:00
Marc Bonnici
3fd40e5f19
utils/types: Fix correct arguments for join
...
Ensure that the join method for a ``str`` is passed a single list
instead of 2 arguments.
2018-07-04 16:33:08 +01:00
Marc Bonnici
cbb8fdab28
utils/diff: Fix missing import for logging
2018-07-04 16:33:08 +01:00
Marc Bonnici
f4838b4466
utils/android: Fix typo in variable assignment
2018-07-04 16:33:08 +01:00
Marc Bonnici
5231bbcf71
fw/exception: Add 'message' property to SerializerSyntaxError
...
Allow for the fact that Exceptions do not have a message attribute in
Python3 so mimic the functionality.
2018-07-04 11:54:17 +01:00
Marc Bonnici
9d34fc0a4d
utils/serializer: Fix exception handling in Python3
...
Allow for the fact that exceptions do not have a 'message' attribute in
Python3.
2018-07-04 11:54:17 +01:00
Marc Bonnici
1648a58c11
framework/workload: Add check for platform
...
Remove unused ``platform`` attributes and add ``supported_platforms``
along with check so that workloads can fail early when attempting to run
on an incorrect platform.
2018-07-02 12:11:00 +01:00
Marc Bonnici
60b37995e0
workloads/jankbench: Update to check if running in a container.
...
Instead of using the os to determine whether the screen state should
be checked, use target flag to see if running inside a container.
2018-07-02 10:59:18 +01:00
scott
68e7fc0b99
workloads: fix mongoperf
...
Mongoperf currently has a non-ASCII character in the file that causes a failure.
This commit rewords the description to remove the incriminating character.
2018-07-02 10:02:01 +01:00
Sergei Trofimov
e55f48089b
fw/output: expose metadata
...
Expose result.metadata as a property of the output.
2018-06-29 17:25:29 +01:00
Marc Bonnici
edfbee291b
workloads/jankbench: Fix typo in method name
...
Fix incorrect method name.
2018-06-29 17:25:09 +01:00
Marc Bonnici
04cbf51a15
workloads/jankbench: Fix screen state for ChromeOS
...
We cannot currently determine the screen state from cannot android
containter so only check on android systems.
2018-06-29 17:25:09 +01:00
Marc Bonnici
d016318a32
workloads: Bump known working version of workloads.
2018-06-29 14:46:16 +01:00
Sergei Trofimov
c69a0f69e6
workloads: add mongoperf
...
Add a workload that runs mongoperf benchmark that measures I/O
performance on a MongoDB server. This workload assumes that mongoperf
is already installed.
2018-06-29 12:39:36 +01:00
Sergei Trofimov
06d351f054
utils/misc: fix write_table column widths
...
Consider headers when calculating column widths. This will ensure proper
alignment in cases where the column header is wider than any of the
column values.
2018-06-28 10:32:36 +01:00