Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build-python-packages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ runs:
run: chmod uog+rwX packages/*.*

- name: Upload opencue packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: opencue_packages
path: packages
2 changes: 2 additions & 0 deletions .github/workflows/docs-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
# Build job
build:
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
matrix:
include:
Expand Down Expand Up @@ -184,6 +185,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-24.04
timeout-minutes: 5
needs: build
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
steps:
Expand Down
74 changes: 68 additions & 6 deletions .github/workflows/maestro-sim-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ name: OpenCue Maestro Sim Pipeline
# too: its farm is small, but its verdict is a mean tier gap over a
# throughput window, not a binary invariant.
#
# COMPLETIONSTORM and SOLOFILL are report-only for now: their thresholds
# fail on the shared runner (COMPLETIONSTORM's peak tick most nights), so
# their verdicts are recorded but do not fail the run until the thresholds
# are recalibrated from the collected metrics.
#
# Deliberately NOT gated anywhere:
# - the full-farm scenarios (PRODENV, OOM, DEPENDS, LOCALITY, TAGS_GPU,
# TAGMAX, FAILOVER): 1553 hosts is too much for a 2-vCPU runner, and their
Expand Down Expand Up @@ -81,11 +86,10 @@ concurrency:
jobs:
sim:
runs-on: ubuntu-24.04
# A scenario is ~4 minutes of simulation on top of a cuebot build and a
# fresh database; the ceiling is for a hang, not for normal slowness.
# MIGRATE (three cuebots) and COMPLETIONSTORM (80 hosts) run longer, so
# the ceiling covers the nightly set too.
timeout-minutes: 40
# A scenario job takes 3-7 minutes including the cuebot build and a fresh
# database; the ceiling is for a hang, not for normal slowness. Manual runs
# can pick the full-farm scenarios and longer windows.
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 60 || 25 }}

strategy:
# One scenario per job: the wall clock is then the slowest single scenario
Expand Down Expand Up @@ -143,7 +147,9 @@ jobs:
run: ./gradlew assemble -g "${SIM_GRADLE_HOME}" --no-daemon --console=plain

- name: Run scenario ${{ matrix.scenario }}
id: run
working-directory: sandbox/maestro-sim
continue-on-error: ${{ contains(fromJSON('["COMPLETIONSTORM","SOLOFILL"]'), matrix.scenario) }}
env:
SIM_VERIFY_ONLY: ${{ github.event.inputs.scenarios || matrix.scenario }}
SIM_VERIFY_SECONDS: ${{ github.event.inputs.seconds || '180' }}
Expand All @@ -158,6 +164,9 @@ jobs:
run: |
{
echo "### ${{ matrix.scenario }}"
if [[ "${{ steps.run.outcome }}" == failure && "${{ job.status }}" == success ]]; then
echo "Report-only scenario: this verdict does not gate the run."
fi
echo '```'
# The battery's own summary block: the verdict plus the throughput
# the scenario actually achieved, which is half of what it certifies.
Expand All @@ -166,10 +175,63 @@ jobs:
echo '```'
} >> "${GITHUB_STEP_SUMMARY}"

- name: Record scenario metrics
# One JSON file per run, so thresholds can be set from the observed
# distribution on the hosted runner rather than from real hardware.
if: ${{ always() }}
env:
SCENARIO: ${{ matrix.scenario }}
OUTCOME: ${{ steps.run.outcome }}
run: |
python3 - <<'EOF' | tee /tmp/maestro-sim-metrics.json
import json, os, re
patterns = {
"frames_done": r"(\d+) frames done",
"frames_per_s": r"frames done \(([0-9.]+)/s\)",
"peak_avg_tick_ms": r"peak avgTick (\d+)ms",
"final_post_queue": r"final postQ (\d+)",
"lost_reports": r"lost (\d+)",
"fill_ratio_a_b": r"A/B ([0-9.]+)",
}
try:
log = open("/tmp/maestro-sim-run.log", errors="ignore").read()
except OSError:
log = ""
scenario = os.environ["SCENARIO"]
verdict = re.search(rf"(?m)^{re.escape(scenario)}\s*: (PASS|FAIL|INCONCLUSIVE)\s+(.*)$",
log.split("=== SIM VERIFY ===")[-1])
detail = verdict.group(2) if verdict else ""
record = {
"scenario": scenario,
"verdict": verdict.group(1) if verdict else None,
"outcome": os.environ["OUTCOME"],
"detail": detail,
"sha": os.environ["GITHUB_SHA"],
"event": os.environ["GITHUB_EVENT_NAME"],
"run_id": os.environ["GITHUB_RUN_ID"],
"run_attempt": os.environ["GITHUB_RUN_ATTEMPT"],
"runner_cpus": os.cpu_count(),
}
for key, pattern in patterns.items():
match = re.search(pattern, detail)
if match:
record[key] = float(match.group(1))
print(json.dumps(record, indent=2))
EOF

- name: Upload scenario metrics
if: ${{ always() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: maestro-sim-metrics-${{ matrix.scenario }}
path: /tmp/maestro-sim-metrics.json
retention-days: 90
if-no-files-found: warn

- name: Archive scenario logs and graphs
# Only on failure: the graphs and per-scenario logs are what make a
# behavioural failure diagnosable after the runner is gone.
if: ${{ failure() }}
if: ${{ failure() || steps.run.outcome == 'failure' }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: maestro-sim-${{ matrix.scenario }}
Expand Down
29 changes: 18 additions & 11 deletions .github/workflows/packaging-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build_opencue_packages:
name: Build Python Packages
runs-on: ubuntu-24.04
timeout-minutes: 10
container: python:3.7
outputs:
opencue_proto_path: ${{ steps.package_outputs.outputs.opencue_proto_path }}
Expand Down Expand Up @@ -56,12 +57,13 @@ jobs:
- target: x86_64-unknown-linux-musl
os: ubuntu-22.04
- target: x86_64-apple-darwin
os: macos-14
os: macos-15
- target: aarch64-apple-darwin
os: macos-14
os: macos-15
- target: x86_64-pc-windows-msvc
os: windows-2022
runs-on: ${{ matrix.os }}
timeout-minutes: 15
outputs:
rust_binaries_artifact: rust-binaries-${{ github.sha }}
steps:
Expand Down Expand Up @@ -89,7 +91,7 @@ jobs:
fi

- name: Install dependencies (macOS)
if: matrix.os == 'macos-14'
if: matrix.os == 'macos-15'
run: |
brew install protobuf

Expand Down Expand Up @@ -118,7 +120,7 @@ jobs:
cp rust/target/${{ matrix.target }}/release/openrqd release/openrqd-${{ env.BUILD_ID }}-${{ matrix.target }}

- name: Copy binaries (macOS)
if: matrix.os == 'macos-14'
if: matrix.os == 'macos-15'
run: |
cp rust/target/${{ matrix.target }}/release/openrqd release/openrqd-${{ env.BUILD_ID }}-${{ matrix.target }}

Expand All @@ -138,6 +140,7 @@ jobs:
needs: build_opencue_packages
name: Run Integration Test
runs-on: ubuntu-24.04
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v7
Expand Down Expand Up @@ -198,16 +201,17 @@ jobs:

name: Build ${{ matrix.NAME }}
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
# Fetch all Git history, otherwise the current version number will
# not be correctly calculated.
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -217,7 +221,7 @@ jobs:
continue-on-error: true

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
Expand Down Expand Up @@ -312,6 +316,7 @@ jobs:

name: Build ${{ matrix.NAME }}
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v7
Expand All @@ -328,7 +333,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
Expand Down Expand Up @@ -366,6 +371,7 @@ jobs:
- integration_test
- build_opencue_packages
runs-on: ubuntu-24.04
timeout-minutes: 10
container: python:3.11
name: "Upload python packages to testpypi repo"
environment: testpypi
Expand Down Expand Up @@ -394,17 +400,18 @@ jobs:
- build_opencue_packages
- build_rust_binaries
runs-on: ubuntu-24.04
timeout-minutes: 10
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
# Fetch all Git history, otherwise the current version number will
# not be correctly calculated.
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -428,7 +435,7 @@ jobs:
- name: Create build metadata
run: |
mkdir -p "${GITHUB_WORKSPACE}/artifacts/"
echo "{\"git_commit\": \"$(BUILD_SOURCEVERSION)\"}" | tee "${GITHUB_WORKSPACE}/artifacts/build_metadata.json"
echo "{\"git_commit\": \"${GITHUB_SHA}\"}" | tee "${GITHUB_WORKSPACE}/artifacts/build_metadata.json"

- name: Download Python packages artifact
uses: actions/download-artifact@v8
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/post-release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
create_blog_post:
runs-on: ubuntu-24.04
timeout-minutes: 5
name: Create Blog Post
steps:
- name: Trigger blog post workflow
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
check_opencue_licenses:
name: Check Licenses of OpenCue Dependencies
runs-on: ubuntu-24.04
timeout-minutes: 10
container: python:3.9
steps:
- uses: actions/checkout@v7
Expand All @@ -24,6 +25,7 @@ jobs:
build_opencue_packages:
name: Build Python Packages
runs-on: ubuntu-24.04
timeout-minutes: 10
container: python:3.7
outputs:
opencue_proto_path: ${{ steps.package_outputs.outputs.opencue_proto_path }}
Expand Down Expand Up @@ -81,12 +83,13 @@ jobs:
- target: x86_64-unknown-linux-musl
os: ubuntu-22.04
- target: x86_64-apple-darwin
os: macos-14
os: macos-15
- target: aarch64-apple-darwin
os: macos-14
os: macos-15
- target: x86_64-pc-windows-msvc
os: windows-2022
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
Expand Down Expand Up @@ -126,7 +129,7 @@ jobs:
fi

- name: Install dependencies (macOS)
if: matrix.os == 'macos-14'
if: matrix.os == 'macos-15'
run: |
brew install protobuf

Expand Down Expand Up @@ -155,7 +158,7 @@ jobs:
cp rust/target/${{ matrix.target }}/release/openrqd release/openrqd-${{ env.BUILD_ID }}-${{ matrix.target }}

- name: Copy binaries (macOS)
if: matrix.os == 'macos-14'
if: matrix.os == 'macos-15'
run: |
cp rust/target/${{ matrix.target }}/release/openrqd release/openrqd-${{ env.BUILD_ID }}-${{ matrix.target }}

Expand All @@ -174,6 +177,7 @@ jobs:
upload_python_packages_pypi:
needs: build_opencue_packages
runs-on: ubuntu-24.04
timeout-minutes: 10
container: python:3.11
name: "Upload python packages to pypi repo"
environment: release
Expand All @@ -196,6 +200,7 @@ jobs:
release_docker_images:
# needs: preflight
runs-on: ubuntu-24.04
timeout-minutes: 10
environment: release
# The rest-gateway and cueweb Docker Hub repositories do not exist yet and
# CI cannot create them, so their release must not fail the pipeline.
Expand Down Expand Up @@ -247,7 +252,7 @@ jobs:
docker pull opencuebuild/${{ matrix.component }}:${BUILD_ID}

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
Expand Down Expand Up @@ -275,14 +280,15 @@ jobs:
name: Create Release
environment: release
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
Loading
Loading