Skip to main content

Info

Community Platform Engineering team (of Red Hat) is working on revamping this project and thus, have cleaned this repository by

  • marking other branches stale
  • Clean branch created for development

to see the current deployed version of Duffy in CentOS CI Infra, check stale/master branch.

Duffy

Duffy is the middle layer running ci.centos.org that manages the provisioning, maintenance and teardown / rebuild of the Nodes (physical hardware for now, VMs coming soon) that are used to run the tests in the CI Cluster.

Development

Installation

To install Duffy:

  1. Clone the repository and navigate into the project directory.
    git clone https://github.com/CentOS/duffy.git
    cd duffy
    
  2. Set up and activate a virtual environment.
    • Using native virtual environment
      python3 -m venv duffyenv
      source duffyenv/bin/activate
      
    Or
    • Using virtualenv wrapper
      virtualenv duffyenv
      source duffyenv/bin/activate
      
    Or
    • Using Poetry virtual environment shell
      poetry shell
      
  3. Install using Poetry
    poetry install
    

Running Duffy server

Viewing CLI usage

duffy --help
Usage: duffy [OPTIONS]

  Duffy is the middle layer running ci.centos.org that manages the
  provisioning, maintenance and teardown / rebuild of the Nodes (physical
  hardware for now, VMs coming soon) that are used to run the tests in the CI
  Cluster.

Options:
  -p, --portnumb INTEGER          Set the port value [0-65536]
  -6, --ipv6                      Start the server on an IPv6 address
  -4, --ipv4                      Start the server on an IPv4 address
  -l, --loglevel [critical|error|warning|info|debug|trace]
                                  Set the log level
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Starting the server at port 8080 using IP version 4 and setting the log level to trace

duffy -p 8000 -4 -l trace
 * Starting Duffy...
 * Port number : 8000
 * IP version  : 4
 * Log level   : trace
INFO:     Started server process [104283]
INFO:     Waiting for application startup.
TRACE:    ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}}
TRACE:    ASGI [1] Receive {'type': 'lifespan.startup'}
TRACE:    ASGI [1] Send {'type': 'lifespan.startup.complete'}
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

Exit out of the server using Ctrl + C

Metadata

Release files for duffy 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duffy 3.4.0
File Size Uploaded
duffy-3.4.0.tar.gz 48.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for duffy 3.4.0
File Interpreter ABI Platform
duffy-3.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 113.7 kB

Release files / duffy-3.4.0.tar.gz

Download URL duffy-3.4.0.tar.gz
Size 48.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a7da5e82790166535baea0405070aef7c7a614844d4fa34b90e1c1c838bf55f9
BLAKE2b-256 checksum
How to use checksums
bebf30663dbfa774f030e7f1449f2a2b96a052de8f1180fa0ebe0d78a363fb53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.13.2 Linux/6.13.6-200.fc41.x86_64

Release files / duffy-3.4.0-py3-none-any.whl

Download URL duffy-3.4.0-py3-none-any.whl
Size 65.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e8de4fac8913f071b463bd4875e1718b4cdac04038be5d5bd01a0db4985f4e7
BLAKE2b-256 checksum
How to use checksums
29a31f80e3df895f5c6def43c68af42943fa5af84231b96f4c1d986d35d8878b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.13.2 Linux/6.13.6-200.fc41.x86_64

Release history Release notifications | RSS feed

This release

3.4.0 This release

2 release files

3.3.9

2 release files

3.3.8

2 release files

3.3.7

2 release files

3.3.6

2 release files

3.3.5

2 release files

3.3.4

2 release files

3.3.3

2 release files

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page