Sergei Trofimov
12a33c8aeb
framework: move instruments -> instrument
...
Use the singular to be consistent with other modules in wa.framework.
2018-02-22 08:41:04 +00:00
Marc Bonnici
b7aa7d68b5
config/plugin_cache: Add specific error for global
and config
entries
...
Add a special error for finding `global` or `config`` entries in
configuration to provide a more helpful error message.
2018-02-16 15:32:41 +00:00
Marc Bonnici
b103ae34ce
configuration/core: Add missing initialization for classifiers
2018-02-16 14:43:52 +00:00
Sergei Trofimov
7313ed5cb5
framework/output: load job_specs
...
- Load job_specs from jobsfile on reload of RunOutput
- Attach the corresponding spec to a JobOutput
2018-02-16 13:56:03 +00:00
Sergei Trofimov
03328f0456
framework/output: improve access to config
...
Make it easier to access a run's configuration but automatically
deserializing it on reload of RunOutput, and exposing it via appropriate
settings.
2018-02-16 13:56:03 +00:00
Sergei Trofimov
8466b77d5b
framework/config: fix deserialization
...
- RebootPolicy: correctly handle being passed another instance of
RebootPolicy on creation; this a requirement for it to be usable as a
ConfigurationPoint kind.
- RebootPolicy: move static method to above __init__ (consistency).
- RunConfiguration: handle deserialization of 'device_config' entry.
- RunConfiguration: move static method to above __init__ (consistency).
2018-02-16 13:56:03 +00:00
Sergei Trofimov
1e21bd2ca8
framework/output: save classifiers in Result
...
Save classifiers at Result as well as Metric level. Reason: when
processing output, one might want to filter complete results, as well as
individual metrics. While it is in theory possible to get the
classifiers for a job by simply extracting the common classifiers
between all metrics, this fails when there are no metrics generated for
a job (note that one might still want to process the output in this
case, e.g. for the artifacts).
2018-02-16 13:56:03 +00:00
Marc Bonnici
4b6297e7ea
configuration/plugin_cache: Fix incorrect parmeter name
2018-02-15 13:42:48 +00:00
Marc Bonnici
ed75764445
configuration/plugin_cache: Add target names as allowed plugin configs
...
Allow setting of device configuration by specifying target name.
2018-02-15 13:42:48 +00:00
Marc Bonnici
52dca17fef
target/descriptor: Fix generate target default config
...
Was previously expecting a dictionary of parameter attributes however the
actual type is a list.
2018-02-15 13:42:48 +00:00
Marc Bonnici
4703dc616a
framework/agenda: Remove unused code
2018-02-14 17:03:21 +00:00
Marc Bonnici
ad5fd0076c
configuration/core: Add missing parameter
alias for workload_parmeters
2018-02-14 17:03:21 +00:00
Sergei Trofimov
b1b379982c
framework/output: fix job status
...
After loading (or attempting to load) job output, update the status from
the state, as that will be more accurate.
2018-02-14 11:13:05 +00:00
Sergei Trofimov
c87d016025
framework/output: handle missing/corrupt result files.
...
Do not explode if a result file for a job is missing when loading a
RunOutput. Specify job status as "UNKNOWN" and add the exception from
attempting to load the file to the events.
2018-02-14 11:13:05 +00:00
Marc Bonnici
0543982f29
framework/host: Generate default config.yaml upon first init
2018-02-14 09:13:04 +00:00
Marc Bonnici
dfce5ca7ba
configuration/default: Update to use augmentation
terminology
2018-02-14 09:13:04 +00:00
Marc Bonnici
73416d40c2
configuration/core: Remove unused RTParam code
2018-02-14 09:13:04 +00:00
Marc Bonnici
1ec1bd14a5
configuration/core: Remove unnecessary config point
...
`Augmentations` configuration point should be used instead of `output_processors`
entry which is already specified elsewhere.
2018-02-14 09:13:04 +00:00
Marc Bonnici
965f8e2218
configuration/core: Make generic_android
default device
2018-02-14 09:13:04 +00:00
Marc Bonnici
d7f28da71e
configuration/core: Add missing description to doc string
2018-02-14 09:13:04 +00:00
Sergei Trofimov
b33defbfea
framework/workload: fix "no matching package" error
...
Fix an issue introduced by commit 42fb3eb
framework/workload: make "no matching package" message more useful
PackageHandler was incorrectly passing self.name into the error message
instead of self.owner.name.
2018-02-12 11:45:03 +00:00
Sergei Trofimov
42fb3eb148
framework/workload: make "no matching package" message more useful
...
Make the error message reported when no matching Android app package
could be found more useful by including the workload name, and, if
applicable, sought version.
2018-02-09 17:45:04 +00:00
Marc Bonnici
22a2ccf7d6
target/logcatpoller: Make capitalisation consistent
2018-02-07 10:01:12 +00:00
Marc Bonnici
728057dbba
target/androidassistant: Fix Logcat poller creation
...
Threads cannot be restarted therfore we need to create a new polling
thread for each time the poller is started.
2018-02-07 10:01:12 +00:00
Marc Bonnici
07cd770288
framework/plugin_cache: Fix missing assistant parameters
2018-02-07 10:01:12 +00:00
Marc Bonnici
36309a4cf2
target/assistant: Fix logcat poller
...
Rename the `start` method to `run` as this is what is what is called
by the threading module's `start` method, otherwise this causes the
polling to be done in the main thread blocking execution.
2018-02-07 10:01:12 +00:00
Sergei Trofimov
c5df74eb56
framework/config: load plugins from extra packages
...
Add support for loading plugins from packages that register themselves
with WA by writing their names into $WA_USER_DIRECTORY/packages.
This is functionality that existed in WA2 and was omitted in WA3 until
now.
2018-02-06 17:30:49 +00:00
Sergei Trofimov
58c4ae609c
framework/output_processor: fix get_output_processor()
...
Output processor names are converted to identifiers when they are
loaded. Ensure the same thing happens when looking up installed output
processors with get_output_processor().
2018-02-06 09:49:58 +00:00
Marc Bonnici
9a556721b6
Augmentations: Allow configuring of augmentations per workload
...
Add support for enabling and disabling of augmentations (instruments and
output processors) on a per workload basis.
2018-02-01 14:26:08 +00:00
Marc Bonnici
557d62ce86
framework/configuration: Fix disabling of augmentations
...
Previously disabling of augmentaions via using the `--disable`
flag or by using the "~" notation in agendas was ignored.
2018-02-01 14:26:08 +00:00
Sergei Trofimov
dae4d9a934
framework/execution: add context to job signals
...
Pass the execution context to job execution signal callbacks.
2018-01-25 10:50:02 +00:00
Sergei Trofimov
a2c113e0f9
framework/signal: log on connect/disconnect
...
Add debug level logging for connect() and disconnect() functions.
2018-01-25 10:50:02 +00:00
Sergei Trofimov
fc56de8842
framework/instruments: add ManagedCallback __repr__
...
Add a __repr__ for ManagedCallback callback to prove a useful
representation in logging.
2018-01-25 10:50:02 +00:00
Marc Bonnici
1101c358d0
framework/rt_config: Add support for chromeos for some AndroidRTConfig
...
Allows setting of select android runtime configuration for devices running
chromeos and which support android. Currently only 'brightness' is functioning
correctly therefore the other parameters are only enable for standard android devices.
2018-01-25 06:32:37 +00:00
Marc Bonnici
320da77ac0
framework/workload: Adds support for ChromeOs Targets
...
Adds a check if the target is running ChromeOs and if so only use the
Android Container portion for running thr workload.
2018-01-25 06:32:37 +00:00
Marc Bonnici
b4d6017dd4
framework/descriptor: Add ChromeOsTarget
2018-01-25 06:32:37 +00:00
Marc Bonnici
a7bf5c2df9
ChromeOsAssistant: Add assistant for ChromeOS
2018-01-25 06:32:37 +00:00
Marc Bonnici
776a4d850b
framework/rt_config: Remove over cautious error checking.
...
Previously when validating cpufreq runtime parameters it would check too
early whether the cpu was online, not allowing for the fact that the cpu
might be being onlined before the parameter was committed to the device.
2018-01-18 16:16:45 +00:00
Marc Bonnici
3cf789e352
framework/rt_config: Fix not being able to turn off all cpus in cluster
...
Add missing equality sign in constraint for runtime parameters.
2018-01-18 16:16:45 +00:00
Marc Bonnici
60c16c802f
framework/rt_config: Fix typo in hotplug big.LITTLE RT Params
2018-01-18 16:16:45 +00:00
Marc Bonnici
7100165376
configuration/core: Fix alias for 'results_processors'
...
Adds missing 's' for alias name.
2018-01-17 16:41:49 +00:00
Marc Bonnici
446a1cfbb0
wa: Rename Instrumentation
to Instruments
...
To be maintain a consistent naming scheme, rename all instances of
`Instrumentation` to `Instruments`
2018-01-15 10:24:03 +00:00
Marc Bonnici
987f4ec4f1
wa: Rename update_results
reference to update_output
...
To be consistant with the rename of output_processors, old references
to `update_results` have now been changed to `update_output`.
2018-01-15 10:24:03 +00:00
Marc Bonnici
538cd8d332
wa: Rename results_processors
to output_processors
...
For clarity and to better reflect their purpose, rename
`results_processors` to `output_processors`.
2018-01-15 10:24:03 +00:00
Marc Bonnici
a688c9120e
framework/configuration: Fix missing return statements for Jobspec properties
2018-01-12 17:28:56 +00:00
Marc Bonnici
bd9189f26a
framework/getters: Fix missing return in Filer Getter
2018-01-12 17:28:56 +00:00
Marc Bonnici
58131c1a6d
framework/plugin: Fix clearing of loaded plugin
...
`self.plugins` should be a dictionary and when being cleared was being
reinitialized as a list.
2018-01-12 17:28:56 +00:00
Marc Bonnici
4fc39dedbc
framework/execution: Fix message parameter order
2018-01-12 17:28:56 +00:00
Marc Bonnici
937d417a42
framework/parsers: Fix whitespace
2018-01-12 17:28:56 +00:00
Marc Bonnici
ad530a8925
framework/parsers: Fix incorrect method name
2018-01-12 17:28:56 +00:00