zephyr/scripts
Dmitrii Golovanov d9f567051e ci: elasticsearch: Upload script improvements
Multiple improvements of the `upload_test_results_es.py` script:

 * JSON objects flattening.

   This feature allows `twister.json` file preprocessing to simplify
   its Elasticsearch index structure for complex hierarhical objects,
   for example with memory footprint, or code coverage data.

   A new command line option `--flatten` is added to change testsuite data
   structure in regard of one of its list objects: either `testcases` or
   `recording`, so each item there becomes an independent data record
   inheriting all other testsuite properties, whereas the children
   object's properties are renamed with the parent object's name
   as a prefix: 'testcases_' or 'recording_' respectively.
   Only one testsuite property can be flattened this way per index upload.
   Other children objects will be treated accorging to the index structure.

   Related new command line options (with help text explanations):
    `--flatten-dict-name`,
    `--flatten-list-names`,
    `--flatten-separator`,
    `--transpose-separator`,
    `--escape-separator`

 * A new command line option `--transform` is added to allow regexp group
   parsing in string propertites extracting additional derived properties.

 * A new command line option `--exclude` is added to exclude testsuite
   properties not needed to store at Elasticsearch index.

 * Branch name `--run-branch` and Workflow ID `--run-workflow` command
   line options as additional key fields to allow data from different
   branches, workflows and triggering events in the same index.

 * A new command line option `--map-file` is added to apply
   an explicit index structure to the `twister.json` input data.

 * Add bulk operation timeout parameter for heavy/long uploads.

Other changes:
  * batch upload error handling and logging;
  * inline documentation improvements;
  * some corner case fixes on empty objects.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2024-09-09 15:24:26 +03:00
..
build everywhere: replace double words 2024-06-25 06:05:35 -04:00
checkpatch scripts: checkpatch: add `stdio.h` `FILE` typedef 2024-06-20 14:07:14 -04:00
ci ci: elasticsearch: Upload script improvements 2024-09-09 15:24:26 +03:00
coccinelle scripts: coccinelle: add errno as a reserved name 2024-08-22 14:21:53 -04:00
coredump coredump: Enable thread understanding for arm cortex m 2024-08-02 03:32:09 -04:00
dts everywhere: replace double words 2024-06-25 06:05:35 -04:00
footprint scripts: fixed missing argument in parse_from_attribute call. 2024-06-20 17:03:21 -04:00
generate_usb_vif USB-C: genVIF: Cleanup and add support to pick static data from input 2023-05-26 13:54:43 -04:00
gitlint gitlint: do not allow treewide as an area in commit messages 2024-04-10 09:22:24 +02:00
kconfig scripts: hardenconfig: Improve deprecated and experimental detection 2024-08-14 09:41:00 +02:00
logging/dictionary scripts: logging/dictionary: fix annoying pylint warning 2024-06-28 21:14:14 +02:00
native_simulator arch posix: Implement arch_thread_name_set() 2024-08-23 08:01:33 -04:00
net tests|scripts/net: Change native_posix references to native_sim 2024-03-20 15:43:05 +01:00
profiling scripts: profiling: Add stackcollapse script 2024-08-13 18:28:44 -04:00
pylib scripts: twister: Elevate Status Error 2024-09-09 09:28:37 +02:00
pylint/checkers scripts: pylint: Add argument parser abbreviation checker 2023-01-26 20:12:36 +09:00
release scripts: drop list_issues.py 2023-07-25 16:45:15 +02:00
schemas scripts: west robot & simulation: Fix OOT 2024-07-01 16:10:35 -04:00
support treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
tests scripts: twister: Elevate Status Error 2024-09-09 09:28:37 +02:00
tracing tracing: scripts: Fix spelling 2023-02-08 01:09:31 +09:00
utils doc: release: posix: deprecate non-normative POSIX Kconfig 2024-06-04 16:27:12 -05:00
west_commands bindesc: Add support for the build version values 2024-09-04 07:03:47 -04:00
.gitignore
checkpatch.pl scripts: checkpatch.pl: treat `.overlay` files as dts 2024-06-21 08:46:12 -04:00
checkstack.pl
coccicheck
dump_bugs_pickle.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_gcov_files.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
get_maintainer.py scripts: get_maintainer: check maintenance status 2024-06-28 07:19:49 -04:00
github_helpers.py scripts: add github_helpers.py 2022-05-24 18:48:03 +02:00
list_boards.py scripts: Loader change 2024-05-07 09:38:00 +02:00
list_hardware.py scripts: list_hardware: Find all SoCs before checking runner configs 2024-07-10 11:46:52 -04:00
list_shields.py scripts: list_shields: add script for listing the supported shields 2024-05-21 16:47:24 -04:00
make_bugs_pickle.py ci: scripts: do not count PRs labeled as bug in snapshot 2024-07-12 16:10:13 -04:00
requirements-base.txt commands: add the 'sdk' command to manage SDK. 2024-08-21 16:54:56 -04:00
requirements-build-test.txt scripts: coverage: gcovr to ignore negative counters 2023-11-03 07:57:10 -04:00
requirements-compliance.txt scripts: Minimum clang-format version 2024-08-26 14:39:02 -04:00
requirements-extras.txt scripts: Remove duplicate clang-format pip package 2024-08-20 18:57:57 -04:00
requirements-run-test.txt scripts: requirements: run-tests: add python-can 2024-06-03 15:37:49 +02:00
requirements.txt doc: move requirements to doc/ 2023-07-12 09:13:49 -04:00
series-push-hook.sh
set_assignees.py ci: set_assignee: pick next area when submitter = assignee 2024-07-10 19:14:17 -04:00
snippets.py terminology: adopt CMake, python, and Kconfig code to use qualifiers 2024-03-21 15:32:17 +01:00
spelling.txt scripts: RISCV instruction SEPC 2024-08-27 10:48:58 -04:00
tags.sh
twister twister: Add Twister execution options to twister.json 2024-05-15 14:56:59 +02:00
valgrind.supp valgrind: Update `POSIX soc no cpu cleanup` suppression 2023-11-29 15:33:49 +01:00
west-commands.yml commands: add the 'sdk' command to manage SDK. 2024-08-21 16:54:56 -04:00
zephyr_module.py scripts: zephyr_module: Add Kconfig symbol for blobs presence 2024-08-30 11:45:56 -04:00