Marc Bonnici
5dcac0c8ef
output_processors/postgres: Do not process output if not connected
...
Only try to process the run output if the processor is connected to a
database.
2018-09-21 15:06:30 +01:00
Marc Bonnici
9a9a2c0742
commands/create: Add version check for Postgres Server
...
The 'jsonB' datatype was only added in v9.4 so ensure that the Postgres
server to is running this or later and inform the user if this is not
the case.
2018-09-21 15:06:30 +01:00
Marc Bonnici
57aa5ca588
fw/version: Add developement tag to version number
2018-09-21 15:06:30 +01:00
Marc Bonnici
fb42d11a83
setup: Update devlib dependency version number
...
Ensure that a sufficiently up to date version of devlib is installed and
enable of installing directly from github to satisfy the requirements.
2018-09-21 15:06:30 +01:00
Marc Bonnici
fce506eb02
instruments/misc: Fix typo
2018-09-21 15:06:30 +01:00
Marc Bonnici
a1213cf84e
commands/create: Use class name rather than user supplied name
...
Use the actual name of the plugin instead of the user supplied value,
for consistency and ensure that duplicate entries cannot be specified.
2018-09-21 15:06:30 +01:00
Marc Bonnici
a7d0b6fdbd
target/descriptor: Do not convert the module list to strings
...
Change the type of the `modules` to `list` so that additional
configuration can be supplied to individual modules as a dict of values.
2018-09-21 15:06:30 +01:00
Marc Bonnici
f5fed26758
doc/device_setup: Fix typo
2018-09-21 15:06:30 +01:00
Marc Bonnici
7d01258bce
fw/target/manager: Do no finalize target if not instantiated
...
In the case of an error occurring during target initialization do not
try and check for disconnecting upon finalizing.
2018-09-21 15:06:30 +01:00
scott
ccaca3d6d8
Speedometer: Extending teardown function
...
Some devices throw errors if too many browser tabs are open. Have
added a method to close down the tabs in the teardown function.
2018-09-20 10:26:34 +01:00
Waleed El-Geresy
6d654157b2
Add Postgres Output Processor
...
The Output processor which is used to upload the results found in the
wa_output folder to a Postgres database, whose schema is defined by the
WA Create Database command.
2018-09-12 10:13:34 +01:00
Waleed El-Geresy
bb255de9ad
Add WA Create Database Command
...
Add a command to create a PostgreSQL database with supplied parameters
which draws its structure from the supplied schema (Version 1.1). This
database is of a format intended to be used with the forthcoming WA
Postgres output processor.
2018-09-12 10:13:34 +01:00
Marc Bonnici
ca03f21f46
workloads/jankbench: Update to clear logcat using devlib
...
Leftover code from WA2 meant that logcat was cleared on the device by
the workload directly instead of using devlib, this caused issues if logcat was
still being cleared from other areas of the code.
2018-09-10 13:30:59 +01:00
Marc Bonnici
59e29de285
workloads/jankbench: Replace errors during decoding
...
When running jankbench invalid bytes can be read from the device causing
decoding in the monitor to fail, now replace any invalid sequences.
2018-09-10 13:30:59 +01:00
scott
0440c41266
Googleslides: Updating the workload to support the new range of huawei devices
2018-09-06 18:01:24 +01:00
Marc Bonnici
b20b9f9cad
instruments/perf: Port the perf instrument to WA3
2018-09-06 08:39:09 +01:00
Marc Bonnici
8cd79f2ac4
fw/instrument: Fix compatibility with Python2
...
The Python2 inspect module does not contain the `getfullargspec` method so call
the appropriate method depending on Python version.
2018-09-05 15:44:48 +01:00
Waleed El-Geresy
6239f6ab2f
Update documentation
...
Update documentation with new API for Output Processors which includes
the context in the intialize and finalize methods.
2018-09-05 14:40:42 +01:00
Waleed El-Geresy
718f2c1c90
Expose context in OP initialize and finalize
...
Expose the context to the initialize and finalize functions for Output
Processors. This was found to be necessary for the upcoming PostgreSQL
Output Processor.
2018-09-05 14:40:42 +01:00
scott
4c4fd2a267
Gmail: Minor change to allow workload to run correctly on Huawei devices
2018-09-05 14:01:01 +01:00
Marc Bonnici
6366a2c264
framework/version: Specify default encoding when parsing commit id
2018-08-22 14:41:12 +01:00
Marc Bonnici
42b3f4cf9f
commands/create: Add special case for EnergyInstruemntBackends
...
Previously when using the create command for adding
EnergyInstruemntBackends they were treated like any other plugin and
generated incorrect configuration. Now automatically add the
`energy_measurement` instrument and populate it's configuration with the
relevant defaults for the specified Backend.
2018-08-14 13:41:39 +01:00
Marc Bonnici
1eaffb6744
commands/create: Only add instruments/output processors once
...
Ensure that instruments and output processors are only added to the
generated agenda once.
2018-08-14 13:41:39 +01:00
Marc Bonnici
4a9b24a9a8
instruments/energy_measurments: Improve instrument description
...
Add note to users that all configuration for the backends should be
added through this instrument rather than directly.
2018-08-14 13:41:39 +01:00
Marc Bonnici
5afc96dc4d
workloads/pcmark: Fix reading results in python3
...
Ensure that the results file is decoded when using python3.
2018-08-14 13:39:04 +01:00
Marc Bonnici
d858435c3d
utils/version: Fix check to only decode bytes
...
When using Python3 the returned value of the commit is a byte string and
therefore needs to be decoded.
2018-07-27 10:11:32 +01:00
Marc Bonnici
caf805e851
setup.py: Update minimum version of devlib to be v1.0.0
2018-07-27 10:11:32 +01:00
Marc Bonnici
973be6326a
Travis: Update to exercise wa commands
...
Add tests for additional wa commands.
2018-07-26 12:07:17 +01:00
Marc Bonnici
778bc46217
commands/process: Add dummy method to ProcessContext
...
In commit d2ece we are now tracking augmentations which are used during a
run in the run_config via the context when installing augmentations.
Update the Process command and its ProcessContext with a dummy method
to relect this change.
2018-07-26 12:07:17 +01:00
Marc Bonnici
fc226fbb6e
fw/execution: Ensure that identifiers are used when retrieving plugins.
...
Make sure that when retrieving plugin information from the plugin
cache the name is converted to an identifier first.
2018-07-24 11:34:19 +01:00
Marc Bonnici
d007b283df
instruments/trace_cmd: Fix reporting on target
...
If reporting on the target the extracted trace data file was not
defined, now locate the file correctly.
2018-07-24 11:34:00 +01:00
Sergei Trofimov
8464c32808
tests: add unit test for includes
2018-07-23 16:47:10 +01:00
Sergei Trofimov
e4a856ad03
fw/config: preserve included config files
...
Save included config files, along with the explicitly-specified config
that included them, under run output's __meta/raw_config/.
2018-07-23 16:47:10 +01:00
Sergei Trofimov
7d833ec112
fw/config: add includes
...
Add the ability to include other YAML files inside agendas and config
files using "include#:" entries.
2018-07-23 16:47:10 +01:00
Marc Bonnici
b729f7c9e4
fw/parsers: Ensure plug-in names are converted to an identifier
...
Ensure that a plug-ins config entry is converted to an identifier before being
stored in the PluginCache so that the relevant configuration can be
retrieved appropriately. For example this allows for both 'trace-cmd' and
'trace_cmd' to be used as config entries to provide configuration for the
'trace-cmd' plugin.
2018-07-19 17:15:26 +01:00
Marc Bonnici
fbfd81caeb
commands/revent: Fix missing target initialization
...
In commit 8da911 the initialization of the target was split into a
separate method of the TargetManger. Ensure that we call the relevant
method after creating the manager.
2018-07-19 12:13:14 +01:00
Marc Bonnici
0e69a9808d
commands/record: Fix argument validation
...
When ensuring that at least one stage for a workload recording was
present there was a missing check to see if recording for a workload was
specified.
2018-07-19 12:13:14 +01:00
Marc Bonnici
4478bd4574
travis: Force version 1.9.2 of pylint to be used
...
Force version 1.9.2 of pylint to be used rather than 2.0.0. Currently
there appears to be issues raising errors that are explicitly ignored.
2018-07-19 08:13:55 +01:00
Sergei Trofimov
0e84cf6d64
dev_scripts/pylint: fix default path
...
Fix the default scan path used if one has not been specified.
2018-07-18 11:20:48 +01:00
Sergei Trofimov
6d9ec3138c
In lint we trust
...
Quieten pylint with regard to import order.
2018-07-18 11:20:48 +01:00
Sergei Trofimov
e8f545861d
fw: cache target info
...
Cache target info after pulling it from the device. Attempt to retrieve
from cache before querying target.
2018-07-13 15:53:01 +01:00
Sergei Trofimov
770d2b2f0e
fw: add cache subdir under $WA_USER_DIRECTORY
...
Add a sub-directory for caching stuff.
2018-07-13 15:53:01 +01:00
Marc Bonnici
8a2c660fdd
Travis: Improve testing organisation
...
Split the tests into their own jobs so it is easier to see what test is
failing, also only run pep8 and pylint tests with python 3.6 as it is
uncessary to run with both python versions.
2018-07-13 13:32:41 +01:00
Sergei Trofimov
dacb350992
fw/target: add system_id to TargetInfo
...
Add target's system_id to TargetInfo. This ID is intended to be unique
of the combination of hardware and software on the target.
2018-07-13 13:28:50 +01:00
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