Marc Bonnici
1425a6f6c9
Implement caching of ApkInfo
...
Allow caching of ApkInfo to prevent the requirement of re-parsing
of APK files.
2020-07-15 15:04:31 +01:00
Marc Bonnici
f664a00bdc
config/core: Fix handling of depreciated parameters
...
Provide warning to user when attempting to set a depreciated
parameter instead of during validation and only raise the warning
if a value has been explicitly provided.
2020-06-12 09:24:51 +01:00
Marc Bonnici
6ff5abdffe
fw/config: Remove whitespace
2020-05-21 12:39:25 +01:00
Marc Bonnici
82d09612cb
fw/config: Add default to `assets_repository'
2020-05-21 12:39:25 +01:00
Marc Bonnici
62ca7c0c36
fw/SSHConnection: Deprecated parameters for Parimiko implementation
...
Deprecate parameters for the new implementation of the SSHConnection
based on Parimiko.
2020-03-06 17:34:30 +00:00
Marc Bonnici
d0f099700a
fw/ConfigutationPoints: Add support for deprecated parameters
...
Allow specifying a ConfigutationPoint is deprecated. This means that any
supplied configuration will not be used however execution will continue
with a warning displayed to the user.
2020-03-06 17:34:30 +00:00
Marc Bonnici
8ee924b896
fw/config/core: Implement Configuration structures as Podable
...
Ensure that the various Configuration structures now have serialization versions.
2018-12-07 08:46:12 +00:00
Marc Bonnici
891ef60f4d
configuration: Add support for section groups
...
Now allows for specifying a `group` value for each section which will
cross product the sections within that group with the sections in each
other group. Additionally classifiers will automatically be added to
each job spec with the relevant group information.
2018-09-24 10:17:26 +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
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
03eafe6b33
framework: pep8 fixes
...
Fix issues reported by flake8.
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
22fcc42903
fw/core: Correct parameter description
2018-06-25 18:19:30 +01:00
Marc Bonnici
c255576fd7
fw/core: Allow for a user_directory
to be specified using ~
...
Previously if a path for the `user_directory` was specified using `~`
this would not be expanded causing issues due to incorrect path joining.
2018-06-25 13:45:43 +01:00
Marc Bonnici
1879dd62f1
fw/core: Fix description of 'label' CongfigPoint
...
Update reference of result processors to output processors.
2018-06-11 08:10:07 +01:00
Sergei Trofimov
b3de85455a
Add support for Python 3
...
Add support for running under Python 3, while maintaining compatibility
with Python 2.
See http://python-future.org/compatible_idioms.html for more details
behind these changes.
2018-06-07 14:48:40 +01:00
Marc Bonnici
c3e4bdc964
config/core: Re-add by_spec
reboot policy
...
The `by_spec` reboot policy was removed in commit
0a549bd28e01a800566e9ad05a9420e1e4db3adc however this is still
desirable so re-add.
2018-05-25 10:02:17 +01:00
Marc Bonnici
f49dfeac70
config/core: Remove JobGenerator unused sections
attribute
...
Remove the used attribute `sections` from the JobGenerator
2018-05-24 11:49:10 +01:00
Marc Bonnici
a13e205280
fw/configuration: Allow for numerical ids to be used
...
Previously WA would fail if a purely numerical id was used, now
explicitly convert the id to a string before use.
2018-05-24 11:49:10 +01:00
Marc Bonnici
78d5b18182
framework/execution: Implement reboot policies
...
Although the configuration of reboot policies was present the actual
implementation was missing.
2018-05-23 10:14:34 +01:00
Marc Bonnici
1a67a3a4e5
config/core: Rename each_iteration
RebootPolicy to each_job
...
Rename the parameter to be clearer on the effect of the policy, as this
will cause WA to reset the device for each new job it runs regardless of
the iteration number.
2018-05-23 10:14:34 +01:00
Marc Bonnici
9d8f1ec68e
config/core: Remove by_spec
reboot policy
...
This reboot policy was left over from previous versions of WA and
is no longer relevant.
2018-05-23 10:14:34 +01:00
Marc Bonnici
2a95a198b0
framework/config: Rename by_spec
to by_workload
execution order
...
Rename the `by_spec` execution order to `by_workload` and update
description for clarification.
2018-05-23 10:14:34 +01:00
Marc Bonnici
04fe3768af
doc: Misc fixes
...
Fix typos, formatting and irrelevant information.
2018-05-21 10:26:28 +01:00
Sergei Trofimov
b1b2131b0c
doc: fix build warnings
2018-05-18 10:32:08 +01:00
sergei Trofimov
ecc68ee367
utils/log: add indentcontext
...
Add indentcontext context manager to save having to add try/finally
clauses around indenting code just to ensure dedenting.
2018-05-09 15:06:31 +01:00
sergei Trofimov
aacba47f9a
utils/types: toggle_set: add "~~" semantics
...
Add support for "~~" special value that indicates that, when merging
into another set, all values from that set should in fact be dropped.
Apart from the unique merge semantics, "~~" just like any other "~"
value.
2018-05-08 10:50:48 +01:00
sergei Trofimov
5b03ac3afd
config/core: JobsGenerator: delay augmentation split
...
Delay the split of augmentations into instruments and output processors
until they are actually being accessed; keep them as a single set until
then. This makes tracking of merges from various configurations sources
easier
2018-05-08 10:50:48 +01:00
sergei Trofimov
f19ca4c00c
fw/config: add logging to parsers
...
Add logging to config/agenda parsing.
2018-04-25 16:25:37 +01:00
Marc Bonnici
4ab75bf722
config/core: Update decription of execution order
...
Remove reference to "classic" execution order.
2018-04-10 18:07:20 +01:00
Marc Bonnici
80f2e8c78b
configuration/core: Fix logging rst indentation
2018-04-10 18:07:20 +01:00
Sergei Trofimov
be43d5d9b7
fw/config: add plugin_paths property to settings
...
Add plugin_paths property to settings which combines plugins_directory
with extra_plugin_paths, and use that inside pluginloader.
2018-04-10 10:29:44 +01:00
Sergei Trofimov
ed9dcdedd7
fw/config: add extra_plugin_paths setting
...
Add extra_plugin_paths setting which gets populated from WA_PLUGIN_PATHS
environment variable. This allows specifying additional locations to
scan for WA plugins.
2018-04-10 10:29:44 +01:00
Sergei Trofimov
ed74ae6654
fw/config: ensure params are obj_dict's
...
As part of finalizing a job spec, ensure all *_parameters are
obj_dict's.
2018-04-10 10:01:07 +01:00
Sergei Trofimov
d572e5210d
fw/config: ensure boot/runtime_params are initialized
...
Ensure that boot and runtime parameters always get initialized to an
obj_dict even when not explicitly specified. This will ensure they get
serialized and deserialized properly.
2018-03-29 18:01:28 +01:00
Sergei Trofimov
3d7984412a
fw/config: better message on config setting error
...
Catch exceptions raised when attempting to set value of a config point,
and re-raise as ConfigError with name associated with the value in the
config file.
2018-03-22 12:28:48 +00:00
Marc Bonnici
b103ae34ce
configuration/core: Add missing initialization for classifiers
2018-02-16 14:43:52 +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
Marc Bonnici
ad5fd0076c
configuration/core: Add missing parameter
alias for workload_parmeters
2018-02-14 17:03:21 +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
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
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
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