Correct runner labels and optimize job distribution for proper execution

- Fix label capitalization: linux,x64 → Linux,X64 to match actual runner
- Strategic job distribution: heavy tasks on self-hosted, light tasks on GitHub 4-core
- Ensures jobs are picked up by homeserver runner instead of queuing indefinitely

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jonathan Flatt
2025-05-25 16:11:09 -05:00
parent 04bd4b5624
commit 38c7acee3c
5 changed files with 18 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ jobs:
# Lint job - fast and independent
lint:
name: Lint & Format Check
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout code
@@ -40,7 +40,7 @@ jobs:
# Unit tests - fastest test suite
test-unit:
name: Unit Tests
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout code
@@ -67,7 +67,7 @@ jobs:
# Integration tests - moderate complexity
test-integration:
name: Integration Tests
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout code
@@ -94,7 +94,7 @@ jobs:
# E2E tests - most complex, run on self-hosted for better performance
test-e2e:
name: E2E Tests
runs-on: self-hosted
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout code
@@ -121,7 +121,7 @@ jobs:
# Coverage generation - depends on unit tests
coverage:
name: Test Coverage
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest-4-cores
needs: [test-unit]
steps:
@@ -157,7 +157,7 @@ jobs:
# Security scans - run in parallel with tests
security:
name: Security Scan
runs-on: [self-hosted, linux, x64]
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout code
@@ -187,7 +187,7 @@ jobs:
# Docker builds - move to self-hosted for better performance
docker:
name: Docker Build & Test
runs-on: self-hosted
runs-on: [self-hosted, Linux, X64]
# Only need unit tests to pass for Docker builds
needs: [test-unit, lint]

View File

@@ -21,7 +21,7 @@ jobs:
test:
name: Run Tests
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest-4-cores
strategy:
matrix:
node-version: [18.x, 20.x]
@@ -53,7 +53,7 @@ jobs:
build:
name: Build Docker Image
runs-on: self-hosted
runs-on: [self-hosted, Linux, X64]
needs: test
outputs:
@@ -107,7 +107,7 @@ jobs:
security-scan:
name: Security Scanning
runs-on: [self-hosted, linux, x64]
runs-on: ubuntu-latest-4-cores
needs: build
if: github.event_name != 'pull_request'
@@ -140,7 +140,7 @@ jobs:
name: Deploy to Staging
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: [build, security-scan]
runs-on: self-hosted
runs-on: [self-hosted, Linux, X64]
environment: staging
steps:
@@ -193,7 +193,7 @@ jobs:
name: Deploy to Production
if: startsWith(github.ref, 'refs/tags/v')
needs: [build, security-scan]
runs-on: self-hosted
runs-on: [self-hosted, Linux, X64]
environment:
name: production
url: https://webhook.yourdomain.com

View File

@@ -25,7 +25,7 @@ env:
jobs:
build:
runs-on: self-hosted
runs-on: [self-hosted, Linux, X64]
permissions:
contents: read
packages: write
@@ -91,7 +91,7 @@ jobs:
# Additional job to build and push the Claude Code container
build-claudecode:
runs-on: self-hosted
runs-on: [self-hosted, Linux, X64]
if: github.event_name != 'pull_request'
permissions:
contents: read

View File

@@ -11,7 +11,7 @@ on:
jobs:
security-audit:
runs-on: [self-hosted, linux, x64]
runs-on: [self-hosted, Linux, X64]
name: Security Audit
steps:

View File

@@ -12,7 +12,7 @@ on:
jobs:
dependency-scan:
name: Dependency Security Scan
runs-on: [self-hosted, linux, x64]
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout code
@@ -36,7 +36,7 @@ jobs:
secret-scan:
name: Secret Scanning
runs-on: [self-hosted, linux, x64]
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout code
@@ -54,7 +54,7 @@ jobs:
codeql:
name: CodeQL Analysis
runs-on: [self-hosted, linux, x64]
runs-on: [self-hosted, Linux, X64]
permissions:
actions: read
contents: read