Skip to main content

🐙 hexaqueue-github-runner

GitHub Actions Dynamic Self-Hosted Runner Autoscaler & Webhook Bridge.

PyPI: hexaqueue-github-runner Python 3.13+ Coverage Part of Hexaqueue Built with Hexastack Governed by Hexaqual License: Apache 2.0

Part of the Hexaqueue Scheduler · Built on Hexastack · Governed by Hexaqual.


🏗️ Architecture & Dependencies

graph TD
    subgraph S1["hexaqueue-github-runner"]
        WEBHOOK["GitHub Webhook Ingress (workflow_job.queued)"]
        AUTOSCALER["Dynamic GitHub Runner Autoscaler"]
        JIT["GitHub App JIT Runner Token Minting"]
    end

    subgraph S2["Internal Dependencies"]
        HQ_CORE["hexaqueue-core"]
    end

    S1 --> HQ_CORE

🚀 Quickstart & Usage

1. Ingress Webhook Router Setup (FastAPI)

from fastapi import FastAPI
from hexaqueue_github_runner import (
    DynamicGitHubRunnerAutoscaler,
    GitHubApiClient,
    GitHubAppCredentials,
    GitHubWebhookAdapter,
    HmacSha256WebhookVerifier,
    create_github_webhook_router,
)

app = FastAPI()

credentials = GitHubAppCredentials(
    app_id="123456",
    installation_id=7890,
    private_key_pem="<PEM_ENCODED_APP_PRIVATE_KEY>",
)
api_client = GitHubApiClient(credentials=credentials)
autoscaler = DynamicGitHubRunnerAutoscaler(api_client=api_client)
verifier = HmacSha256WebhookVerifier()

adapter = GitHubWebhookAdapter(
    verifier=verifier,
    autoscaler=autoscaler,
    secret="your-github-webhook-secret",
)

# Mount webhook route at /webhooks/github
app.include_router(create_github_webhook_router(adapter))

2. Supported Runner Labels

Hexaqueue translates GitHub Actions runs-on labels dynamically:

  • runs-on: [self-hosted, linux, 16-cores, 64gb, gpu-h100, 100gb-scratch, 2h-walltime]
  • CPU: 16-cores, cpu-8, 4-cpu
  • RAM: 64gb, ram-32gb, 512mb-ram
  • GPU: gpu-h100, a100, l4, t4, v100, 4-gpu-a100
  • Scratch: 100gb-scratch, scratch-50gb
  • Walltime: 2h-walltime, 90m-walltime
  • Cloud Routing & Free-Tier: oci, gcp, aws, azure, local, arm64, paid

3. Multi-CSP Free-Tier Mesh Autoscaling ($0.00 Spend Invariant)

To burst GitHub Actions runner matrices beyond the standard 2 vCPU limit at zero cloud cost, configure the autoscaler with MultiCspFreeTierGovernor:

from hexaqueue_core.adapters.freetier.governor import MultiCspFreeTierGovernor
from hexaqueue_github_runner import DynamicGitHubRunnerAutoscaler

governor = MultiCspFreeTierGovernor()
autoscaler = DynamicGitHubRunnerAutoscaler(
    api_client=api_client,
    free_tier_governor=governor,
)

The mesh pools Always-Free compute across all participating providers:

  • OCI Always-Free: 4 Ampere A1 ARM vCPUs / 24 GB RAM (runs-on: [self-hosted, arm64, 4-cores])
  • GCP Always-Free: 2 x86 vCPUs / 1 GB RAM (runs-on: [self-hosted, gcp, 2-cores])
  • AWS Free Tier: 1 x86 vCPU / 1 GB RAM (runs-on: [self-hosted, aws, 1-core])
  • Azure Free Tier: 1 x86 vCPU / 1 GB RAM (runs-on: [self-hosted, azure, 1-core])
  • Local Workstation: 2 vCPUs / 2 GB RAM (runs-on: [self-hosted, local, 2-cores])

Key Invariants:

  1. 10 Total Pooled Free vCPUs: Matrix jobs dynamically fan out across OCI, GCP, AWS, Azure, and Local nodes concurrently at $0.00 spend.
  2. Instant Quota Recycling: When an ephemeral runner exits, single-job scratch storage is wiped and provider quota is freed immediately.
  3. Step Summary Verification: Automatically attaches Check Run summaries documenting the assigned CSP provider, resource footprint, and verified $0.00 cost claim.

Metadata

Release files for hexaqueue-github-runner 0.8.4

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

Source distribution (sdist)

Source distribution for hexaqueue-github-runner 0.8.4
File Size Uploaded Provenance Actions
hexaqueue_github_runner-0.8.4.tar.gz 19.7 kB Without provenance Details for hexaqueue_github_runner-0.8.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hexaqueue-github-runner 0.8.4
File Interpreter ABI Platform Actions
hexaqueue_github_runner-0.8.4-py3-none-any.whl Python 3 none any Details for hexaqueue_github_runner-0.8.4-py3-none-any.whl

Total release size: 47.7 kB

Release files / hexaqueue_github_runner-0.8.4.tar.gz

Download URL hexaqueue_github_runner-0.8.4.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4cb86baa03285580fe85163d02c6b8cd79f4ec3dba20a1f41a37a1fda8318ccf
BLAKE2b-256 checksum
How to use checksums
49e0ce8c8b69c602b8a1981b1b790532993f3eb1e69cb583259a51cad33baf48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hexaqueue_github_runner-0.8.4-py3-none-any.whl

Download URL hexaqueue_github_runner-0.8.4-py3-none-any.whl
Size 28.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97f0d95bd968e07859957813fc0205d55a467c1804538df620c3973a50aa3bed
BLAKE2b-256 checksum
How to use checksums
3c3f6aa9c37ad6ec338d14c62cd26f95f0d2e5d01372cb0a93215a4722982bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for hexaqueue-github-runner 0.8.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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