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.11.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 hexaqueue-github-runner 0.11.0
File Size Uploaded Provenance Actions
hexaqueue_github_runner-0.11.0.tar.gz 19.7 kB Without provenance Details for hexaqueue_github_runner-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 47.7 kB

Release files / hexaqueue_github_runner-0.11.0.tar.gz

Download URL hexaqueue_github_runner-0.11.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4809aa04790cf3eca7dce95177777a310c076223b7a3072e30191d26efb34c34
BLAKE2b-256 checksum
How to use checksums
376dbe07e0daabb0bfed7f07985324f9cbec183762799729b3368e01282d6a22
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.11.0-py3-none-any.whl

Download URL hexaqueue_github_runner-0.11.0-py3-none-any.whl
Size 28.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e7d6b641ab654243b1b7e1118e55c73936cc1523ea68ab1149eb9876cb0f9e1
BLAKE2b-256 checksum
How to use checksums
aef13abbcaf525b17512c94d80687cddfffb7fa52cf41275e43dad028d323ea0
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.11.0

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