1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00
Commit Graph

1659 Commits

Author SHA1 Message Date
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
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
Sergei Trofimov
ae4fdb9e77 dev_scripts: pylint: check both Python Versions
Check both "python" and "python3" for the pylint package, as it is
possible that pylint will be installed via Python 3 on Python 2 systems.
2018-07-10 12:56:51 +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
Marc Bonnici
97cf0ac059 travis: Enable pylint and pep8 checkers 2018-07-10 12:56:51 +01:00
Marc Bonnici
f3dc94b95e travis: Remove tests for Python 3.4
Testing with Python3.4 takes significantly longer than with 2.7 or 3.6
due to having to compile some dependencies from source each time.
2018-07-10 12:56:51 +01:00
Marc Bonnici
ad87a40e06 Travis: Run the idle workload as part of the tests. 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
Sergei Trofimov
0e0d4e0ff0 dev_scripts: port pylint plugins to Python 3 2018-07-09 15:59:40 +01:00
Marc Bonnici
915c363fd9 wa: 3.0.0 Release preparation
- Update 'setup.py' package name to 'wlauto' as 'wa' is already taken on
  PyPi and update documentation accordingly.
- Update old references to Python 2.7
2018-07-06 17:39:26 +01:00
Sergei Trofimov
4043631abf setup.py: prepare for the 3.0.0 release
- Add URL for the package pointing to the GitHub repo
- Add -s option to sdist command that strips away the git commit
  hash from the generated package version (needed for upload to
  PyPI).
2018-07-06 17:15:02 +01:00
Marc Bonnici
0a42f24590 README: Update with WA3 Information 2018-07-06 15:22:12 +01:00
Marc Bonnici
ac01bf38d5 extras/Dockerfile: Update to use latest releases
Update to use the latest release version of WA and devlib.
2018-07-06 14:42:14 +01:00
Marc Bonnici
4a10ea1065 dev_scripts/pep8: Update error message to flake8 2018-07-06 14:39:41 +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
109daa7f8c dev_scripts: pylint fixes
- Add "set -e" to abort on error
- Update the required version
- Fix path for the "default" runs
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
Sergei Trofimov
88c5005b38 dev_scripts: pylint: ignore errors per subdir
Add the ability to ignore specific pylint errors on per-subpackage or
per-module basis by adding a plugin that checks the path of the module
against pre-defined sub-paths and inserts disable tags as needed.
2018-07-06 14:39:41 +01:00