prplos/.gitlab/scripts
Petr Štetiar 357923dfd2
ci: cdrouter: add check_connectivity command
Currently we're sometime seeing the following error:

  $ .gitlab/scripts/testbed-cdrouter.py package_stop
  Traceback (most recent call last):
  ...
  urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<redacted>', port=80): Max retries exceeded with url: /api/v1/results/?filter=status~%28running%7Cpaused%29 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6380682358>: Failed to establish a new connection: [Errno 113] No route to host'))

So lets add a `check_connectivity` command to , which uses exponential backoff
 retry logic to verify CDRouter API connectivity within a fixed 30 seconds timeout.

Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2025-10-11 13:54:16 +00:00
..
build.d ci: build: enable exception tracing on arm64 targets 2025-07-31 10:36:01 +00:00
dut-init ci: cdrouter: provide configuration for prplOS Network Test Plan 2025-10-11 13:54:13 +00:00
prplMesh CI: easymesh: add prplMesh smoke test 2025-07-31 15:29:01 +00:00
cdrouter-pretty-failures.awk
prpl-jira.py
README.md
requirements.txt
testbed-cdrouter.py ci: cdrouter: add check_connectivity command 2025-10-11 13:54:16 +00:00
testbed-device.py ci: testbed-device.py: improve error reporting during the board bringup 2025-10-11 07:52:28 +00:00

Content

This directory contains files used mainly during testing on the GitLab CI.

requirements.txt

This requirements.txt file is used for specifying what Python packages are required to run the scripts in this directory. Usually used with pip install -f requirements.txt command.

prpl-jira.py

This helper Python script creates new or updates existing Jira ticket when something goes wrong during GitLab CI testing process. Currently only supports reporting of build test failures.

Needs Python version 3.6+ due to use of f-strings feature.

testbed-device.py

This helper Python scripts allows managing of device under test (DUT) via labgrid framework.