Commit Graph

5 Commits (master)

Author SHA1 Message Date
Al Bailey 4e2a8fcba8 Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now
that this has merged:

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Also fixed the zuul configuration.

Partial-Bug: #2000399

Signed-off-by: Al Bailey <>
Change-Id: Id7f7fb8e75a98df73bf4d14caeeecb9dc5ffb976
2022-12-27 01:20:28 +00:00
Enzo Candotti 36c8ae8395 Add kube-memory tool to summarize memory usage
This tool gathers memory usage information for all
kubernetes containers and system services displayed
in cgroup memory, that are running on current host.

This displays the total resident set size per namespace and container,
the aggregate memory usage per system service, and the platform memory

Closes-Bug: 1886868

Signed-off-by: Enzo Candotti <>
Change-Id: Id130ed0d2794cdd555bdb068e8453cb8e9bd29d2
2021-05-22 18:51:26 -03:00
albailey ee7ae99d41 Use newer flake8 on python3.8 zuul systems
flake8 2.5.5 fails on ubuntu-focal zuul machines running python3.8
with the following error:
AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'

Suppresses the following:
 W503 line break before binary operator
 W504 line break after binary operator
 W605 invalid escape sequence '\d'

 E117 over-indented
 E266 too many leading '#' for block comment
 E305 expected 2 blank lines after class or function definition, found 1
 E402 module level import not at top of file
 E722 do not use bare 'except'
 E741 ambiguous variable name 'I'

 F632 use ==/!= to compare constant literals
 F821 undefined name 'dpdk' (this is a flake8 bug)

Change-Id: I6c2ef05d765b57b7be0b038d6e384cb2af589054
Partial-Bug: 1895054
Signed-off-by: albailey <>
2020-11-05 15:33:28 -06:00
Sharath Kumar K 8ef034919c Tox and Zuul job for the bandit code scan in stx/monitoring
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/monitoring folder.
Expecting this merge will enable zuul job for CI/CD of bandit scan.

Configuration files:
1. tox.ini for adding bandit environment and command.
2. test-requirements.txt for adding bandit version.
3. .zuul.yaml file for adding bandit job and configuring under
   check job to run code scan every time before code commit.

Run tox -e bandit command inside the fault folder to validate the
bandit scan and result.

Story: 2007541
Task: 39684

Change-Id: Ibcbe1dd2e380f80c4cbf6f2a7cf49065dc890803
Signed-off-by: Sharath Kumar K <>
2020-07-14 15:48:17 +00:00
Al Bailey 7e19909172 Adding zuul jobs for new repo
This job adds a single linters tox target.

The linters target is an aggregation of linters for
this repo including:
 - bashate
 - flake8

Other linters such as yamllint can be added to this
repo by later commits.

Certain flake8 codes are suppressed.
They can be enabled by later commits.

This commit also adds basic contributing and hacking docs.

Change-Id: Ib10d84141954f1d39a258913a98d314763c74824
Story: 2006166
Task: 36544
Signed-off-by: Al Bailey <>
2019-09-09 14:37:23 -05:00