Skip to main content

Identify system resource drift across many Koji builders

Project description

This tool queries Koji and ensures that every builder host in a channel has the same CPU and memory resources. It scrapes Mock’s hw-info logs for recent buildArch tasks.

The purpose of this tool is to identify system resource drift across many Koji builders.

Installation

pip installation

The KojiChannelValidation tool can be installed from PyPi using pip:

pip install KojiChannelValidator

Linux

Create a python virtual environments and then activate it:

python3 -m venv venv
. venv/bin/activate

Install the dependencies in requirements.txt in the virtual environment:

pip install -r requirements.txt

Mac

Check your python3 version, and make sure it is up-to-date:

python3 -V

If you do not have a virtual environment, use the following command to create one:

python3 -m venv my_venv

Once your python virtual environment has been created activate it:

source my_venv/bin/activate

Install the dependencies in requirements.txt in the virtual environment:

pip3 install -r requirements.txt

Running

If installed through pip, the tool can be run from the command line as “kcv”. It must be provided a koji channel name through the -c/–channel argument.

## Testing Tests can be found in the tests directory. To run them, enable the virtual environment and run: ` python -m pytest `

Run the following script to test connection with koji when encountered with certification verification error ` import koji mykoji = koji.get_profile_module("brew") opts = vars(mykoji.config) session = mykoji.ClientSession(mykoji.config.server, opts) # connecting to server & ensuring you can make calls to it session.echo("test") # should return ["test"] `

Contributers: Rory Wirch, Gabriella Roman, Jennifer Kim

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

KojiChannelValidator-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

KojiChannelValidator-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file KojiChannelValidator-0.1.1.tar.gz.

File metadata

  • Download URL: KojiChannelValidator-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.6.4 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for KojiChannelValidator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e85012d59edb3bd25c143f8eca1f327a24be5e39b99cf22198da31fc6f5a1ec6
MD5 754d6f6e3889c86df2ace63553e19dd1
BLAKE2b-256 2a0e74d56b2ac9043fbc35027b891da00835d17f875dd57aceba179aa6a27465

See more details on using hashes here.

File details

Details for the file KojiChannelValidator-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: KojiChannelValidator-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.6.4 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for KojiChannelValidator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea37a04db1eeaa63fc4a2c40cea69a242c943a542fe4f2cd862a546c829ada2
MD5 9475bec6486256489324ae9ac2bbc9c1
BLAKE2b-256 16d4406726a83855779b47a084a15ad9e67a1cee387de74696649f27e362e69f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page