Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
483d8c8
[ci] Remove SonarCloud
DiegoTavares Nov 19, 2026
daa1f7f
[ci] Move Apple Rust builds to the macos-15 runner
DiegoTavares Nov 19, 2026
7271c2f
[rust] Stop the rqd integration tests from hanging
DiegoTavares Nov 19, 2026
fdb130e
[ci] Build integration test images once and fail loudly
DiegoTavares Nov 19, 2026
4469cbf
[ci] Make COMPLETIONSTORM and SOLOFILL report-only in Maestro sim
DiegoTavares Nov 19, 2026
85d0a00
[ci] Fix small workflow defects
DiegoTavares Nov 19, 2026
616c90a
[ci] Bound every job and cancel superseded PR runs
DiegoTavares Nov 19, 2026
493cacc
[rust] Use a single silent process in the monitor timeout test on Win…
DiegoTavares Nov 19, 2026
ec563ee
[ci] Install CueGUI test deps with the interpreter that runs them
DiegoTavares Nov 19, 2026
1f1b496
[cuegui] Mock the Cuebot stub in tests that build wrappers
DiegoTavares Nov 19, 2026
8708f81
[ci] Build integration test images through compose
DiegoTavares Nov 19, 2026
fb1bf56
[ci] Keep Maestro metrics steps from failing the job
DiegoTavares Nov 19, 2026
cb36bab
[ci] Skip interpreter teardown after the CueGUI tests
DiegoTavares Nov 19, 2026
a9becc9
[rust] Retry the flaky rqd restart integration tests
DiegoTavares Nov 19, 2026
133a82f
[ci] Explain the os._exit workaround in run_gui_test.sh
DiegoTavares Nov 19, 2026
7e7d045
[rust] Apply cargo fmt
DiegoTavares Nov 19, 2026
e2bc731
[cueweb] Make the lint and test scripts pass
DiegoTavares Nov 19, 2026
5b13c54
[ci] Map changed paths to PR jobs
DiegoTavares Nov 19, 2026
8a0736d
[ci] Let run_python_lint.sh lint chosen packages
DiegoTavares Nov 19, 2026
60b52f7
[ci] Add reusable workflows for each component
DiegoTavares Nov 19, 2026
5586d90
[ci] Run pull requests through pr.yml and a single pr-gate check
DiegoTavares Nov 19, 2026
229cf74
[ci] Build the PR wheels on the oldest Python they install on
DiegoTavares Nov 20, 2026
d38f19d
[ci] Close three gaps in the PR job planner
DiegoTavares Nov 20, 2026
c4740e3
[ci] Run the integration test on images built with a layer cache
DiegoTavares Nov 20, 2026
db8d19d
[ci] Let master export the web images and Cuebot coverage
DiegoTavares Nov 20, 2026
98d6bf9
[ci] Run the heavy Maestro scenarios weekly instead of nightly
DiegoTavares Nov 20, 2026
7378257
[ci] Move the repository checks into checks.yml
DiegoTavares Nov 20, 2026
66e17b8
[ci] Replace the master pipelines with master.yml
DiegoTavares Nov 20, 2026
c743382
[all] Require Python 3.9 or newer
DiegoTavares Nov 20, 2026
8667582
[ci] Keep the intermediate Cuebot packages artifact for a week
DiegoTavares Nov 20, 2026
1bb2a9f
[ci] Stage master pushes that skip the Maestro scenarios
DiegoTavares Nov 20, 2026
7fc8ed9
[ci] Save the buildx, Rust and uv caches only from master
DiegoTavares Nov 20, 2026
106a6e0
[ci] Check the wheels against the Python floor and the build ID
DiegoTavares Nov 20, 2026
5fd2d94
[docs] State Python 3.9 as the minimum on the remaining pages
DiegoTavares Nov 20, 2026
2f8639a
[ci] Don't import cuegui in the headless install legs
DiegoTavares Nov 20, 2026
8d566ee
[rust] Show the restarted rqd's output when a restart test fails
DiegoTavares Nov 20, 2026
913351c
[rust] Drop exited processes from rqd's Linux process cache
DiegoTavares Nov 20, 2026
f558e12
[rust] Stop retrying the rqd restart integration tests
DiegoTavares Nov 20, 2026
67749ab
Merge branch 'ci/phase-1-pr-tier' into ci/phase-2-master-tier
DiegoTavares Nov 20, 2026
f179179
Merge branch 'ci/phase-0-fixes' into ci/phase-1-pr-tier
DiegoTavares Nov 20, 2026
ba7ac7a
[ci] Install protoc with setup-protoc in the Rust jobs
DiegoTavares Nov 20, 2026
dd208bb
Merge master into ci/phase-1-pr-tier
DiegoTavares Nov 20, 2026
4972204
[ci] Keep Phase 1's workflow triggers after merging master
DiegoTavares Nov 20, 2026
1b01e86
[ci] Keep run_gui_test.sh's python fallback reachable under set -e
DiegoTavares Nov 20, 2026
0252c8d
[rust] Stop the integration test monitor at its deadline while output…
DiegoTavares Nov 20, 2026
8c45a59
[rust] Keep a live session leader cached when reading its stats fails
DiegoTavares Nov 20, 2026
11e6da3
[ci] Run each scenario a manual Maestro run picks in its own job
DiegoTavares Nov 20, 2026
41237ed
[ci] Run every PR job when the file list may be over the files API limit
DiegoTavares Nov 20, 2026
6dff248
[ci] Pass the path filter outputs to the PR planner on stdin
DiegoTavares Nov 20, 2026
eb48f41
[cueweb] Lint .jsx files too
DiegoTavares Nov 20, 2026
03ad839
Merge ci/phase-1-pr-tier into ci/phase-2-master-tier
DiegoTavares Nov 20, 2026
ba5ff21
[ci] Keep run_integration_test.sh working with macOS's Bash 3.2
DiegoTavares Nov 20, 2026
7af3178
[cueadmin/cueman] Drop py38 from the tox envlist
DiegoTavares Nov 20, 2026
744d4cf
[rust] Name ProcessData in the live session leader test
DiegoTavares Nov 20, 2026
6d3de25
Merge ci/phase-1-pr-tier into ci/phase-2-master-tier
DiegoTavares Nov 20, 2026
6ed75fe
[rust] Count a live session leader with its last sample when its read…
DiegoTavares Nov 20, 2026
b0aab14
[maestro-sim] Fail when SIM_VERIFY_ONLY names an unknown scenario
DiegoTavares Nov 20, 2026
4e29feb
[ci] Read tracked files unquoted in the path filter test
DiegoTavares Nov 20, 2026
e1b1662
Merge ci/phase-1-pr-tier into ci/phase-2-master-tier
DiegoTavares Nov 20, 2026
fb79f84
Merge master into ci/phase-2-master-tier
DiegoTavares Nov 20, 2026
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
5 changes: 3 additions & 2 deletions .github/path-filters.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changed paths to filters, for dorny/paths-filter in .github/workflows/pr.yml.
# Changed paths to filters, for dorny/paths-filter in .github/workflows/pr.yml and master.yml.
#
# ci/plan_pr_jobs.py turns the matched filters into the PR jobs that run. A change matched by
# ci/plan_pr_jobs.py turns the matched filters into the PR jobs that run. master.yml runs
# everything, and uses `scheduler` and `ci` only to decide whether the Maestro scenarios run. A change matched by
# `ci`, the ci:full label, or a changed file no filter below matches turns every job on, so an
# unmapped path runs more, not less. ci/tests/test_plan_pr_jobs.py fails if a tracked file is
# unmapped.
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Checks

# Repository checks that cover the whole tree: changed files, migrations, the version bump,
# the CI scripts' own tests and, optionally, the dependency licenses. The changed-file and
# version-bump checks look at the last commit (for a pull request, its merge commit).

on:
workflow_call:
inputs:
licenses:
description: Also check the licenses of the Python dependencies.
type: boolean
default: false

jobs:
checks:
name: Version, migration and changed-file checks
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 2
persist-credentials: false

- name: Check changed files
run: |
readarray -t changed_files < <(git diff --name-status HEAD^1 HEAD | grep '^M' | awk '{print $2}')
ci/check_changed_files.py "${changed_files[@]}"

- name: Check database migration files
run: ci/check_database_migrations.py

- name: Check for version bump
run: |
readarray -t changed_files < <(git diff --name-status HEAD^1 HEAD | awk '{print $2}')
ci/check_version_bump.py "${changed_files[@]}"

- name: Test CI scripts and path filters
run: python3 -m unittest discover -s ci/tests -v

licenses:
name: Check Licenses of OpenCue Dependencies
if: inputs.licenses
runs-on: ubuntu-24.04
timeout-minutes: 10
container: python:3.9
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- name: Run license check
run: ci/check_licenses.sh
14 changes: 13 additions & 1 deletion .github/workflows/cuebot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ name: Cuebot

on:
workflow_call:
inputs:
coverage:
description: Also write the JaCoCo coverage report and upload it as cuebot-coverage.
type: boolean
default: false

jobs:
build:
Expand All @@ -24,4 +29,11 @@ jobs:

- name: Build with Gradle
working-directory: cuebot
run: ./gradlew build --stacktrace
run: ./gradlew build ${{ inputs.coverage && 'jacocoTestReport' || '' }} --stacktrace

- name: Upload coverage report
if: inputs.coverage
uses: actions/upload-artifact@v7
with:
name: cuebot-coverage
path: cuebot/build/reports/jacoco/
37 changes: 34 additions & 3 deletions .github/workflows/cueweb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ name: CueWeb

on:
workflow_call:
inputs:
build-id:
description: >-
Tag the image opencuebuild/cueweb:<build-id> and upload it as the image-cueweb artifact.
type: string
default: ""
outputs:
image-id:
description: Image ID of the built image.
value: ${{ jobs.image.outputs.image-id }}

jobs:
test:
Expand Down Expand Up @@ -38,6 +48,8 @@ jobs:
image:
name: Build image
runs-on: ubuntu-24.04
outputs:
image-id: ${{ steps.build.outputs.imageid }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
Expand All @@ -46,12 +58,31 @@ jobs:

- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1

# The About dialog shows the short SHA.
- name: Get short SHA
id: sha
run: echo "short=${GITHUB_SHA::7}" >> "${GITHUB_OUTPUT}"

- name: Build CueWeb image
id: build
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: cueweb
build-contexts: project_root=.
build-args: NEXT_PUBLIC_GIT_SHA=${{ github.sha }}
tags: opencue/cueweb:test
build-args: NEXT_PUBLIC_GIT_SHA=${{ steps.sha.outputs.short }}
tags: opencuebuild/cueweb:${{ inputs.build-id || 'ci' }}
outputs: ${{ inputs.build-id != '' && format('type=docker,dest={0}/cueweb.tar', runner.temp) || '' }}
cache-from: type=gha,scope=cueweb
cache-to: type=gha,scope=cueweb,mode=max
# Only master writes the cache, which every pull request can read.
cache-to: ${{ github.ref == 'refs/heads/master' && 'type=gha,scope=cueweb,mode=max' || '' }}

- name: Upload image
if: inputs.build-id != ''
uses: actions/upload-artifact@v7
with:
name: image-cueweb
path: ${{ runner.temp }}/cueweb.tar
compression-level: 1
retention-days: 7
if-no-files-found: error
overwrite: true
96 changes: 95 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,70 @@
name: Integration

# Starts the sandbox with docker compose and runs a job through it.
# Builds the Cuebot and RQD images, starts the sandbox with docker compose on them and runs a
# job through it.

on:
workflow_call:
inputs:
build-id:
description: >-
Version to bake into the images and tag them with (opencuebuild/<name>:<build-id>).
When set, the tested images and the Cuebot jar and RPM are uploaded as artifacts.
type: string
default: ""
outputs:
cuebot-image-id:
description: Image ID of the tested Cuebot image.
value: ${{ jobs.test.outputs.cuebot-image-id }}
rqd-image-id:
description: Image ID of the tested RQD image.
value: ${{ jobs.test.outputs.rqd-image-id }}

jobs:
test:
name: Integration test
runs-on: ubuntu-24.04
timeout-minutes: 25
outputs:
cuebot-image-id: ${{ steps.cuebot.outputs.imageid }}
rqd-image-id: ${{ steps.rqd.outputs.imageid }}
env:
CUEBOT_IMAGE: opencuebuild/cuebot:${{ inputs.build-id || 'ci' }}
RQD_IMAGE: opencuebuild/rqd:${{ inputs.build-id || 'ci' }}
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false

- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1

- name: Build Cuebot image
id: cuebot
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: cuebot/Dockerfile
build-args: BUILD_ID=${{ inputs.build-id }}
tags: ${{ env.CUEBOT_IMAGE }}
load: true
cache-from: type=gha,scope=cuebot
# Only master writes the cache, which every pull request can read.
cache-to: ${{ github.ref == 'refs/heads/master' && 'type=gha,scope=cuebot,mode=max' || '' }}

- name: Build RQD image
id: rqd
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: rust/Dockerfile.rqd
tags: ${{ env.RQD_IMAGE }}
load: true
cache-from: type=gha,scope=rqd
# Only master writes the cache, which every pull request can read.
cache-to: ${{ github.ref == 'refs/heads/master' && 'type=gha,scope=rqd,mode=max' || '' }}

- name: Run test
run: ci/run_integration_test.sh

Expand All @@ -26,3 +74,49 @@ jobs:
with:
name: test-logs
path: /tmp/opencue-test/*.log

- name: Export images and Cuebot packages
if: inputs.build-id != ''
env:
BUILD_ID: ${{ inputs.build-id }}
run: |
mkdir -p cuebot-packages images
container_id=$(docker create "${CUEBOT_IMAGE}")
for file in "cuebot-${BUILD_ID}-all.jar" "opencue-cuebot-${BUILD_ID}-1.noarch.rpm"; do
docker cp "${container_id}:/opt/opencue/${file}" cuebot-packages/
done
docker rm "${container_id}"
docker save -o images/cuebot.tar "${CUEBOT_IMAGE}"
docker save -o images/rqd.tar "${RQD_IMAGE}"

- name: Upload Cuebot packages
if: inputs.build-id != ''
uses: actions/upload-artifact@v7
with:
name: cuebot-packages
path: cuebot-packages/
retention-days: 7
if-no-files-found: error
overwrite: true

- name: Upload Cuebot image
if: inputs.build-id != ''
uses: actions/upload-artifact@v7
with:
name: image-cuebot
path: images/cuebot.tar
compression-level: 1
retention-days: 7
if-no-files-found: error
overwrite: true

- name: Upload RQD image
if: inputs.build-id != ''
uses: actions/upload-artifact@v7
with:
name: image-rqd
path: images/rqd.tar
compression-level: 1
retention-days: 7
if-no-files-found: error
overwrite: true
28 changes: 14 additions & 14 deletions .github/workflows/maestro-sim-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ name: OpenCue Maestro Sim Pipeline
# after it. The bug that motivated this workflow lived in
# dao/postgres/FrameDaoJdbc.java -- Maestro could not book a single frame --
# and a filter listing only dispatcher/** would have sailed straight past it.
# - Nightly on master: catches regressions that slipped through the filter.
# - Manually (workflow_dispatch): to run any scenario, including the ones kept
# out of the gate below.
# - Master pushes, through master.yml: the same filter, with the heavier
# scenarios added.
# - Weekly on master, from this workflow: a drift check of the full set
# against an unchanged scheduler.
# - Manually (workflow_dispatch), from this workflow: to run any scenario,
# including the ones kept out of the gate below.
#
# Which scenarios gate, and why only these:
# Every scenario in the pull-request set runs on a small farm (17 hosts or
# fewer) and asserts a BINARY invariant -- a cap was never exceeded, a pool
# was never oversubscribed, a pinned frame never left its list, a slice was
# delivered whole. They are cheap and they cannot be half-true.
#
# Nightly adds the heavier behavioural scenarios (MIGRATE with its three
# cuebots, SOLOFILL on the full farm, COMPLETIONSTORM's 80-host burst):
# their invariants are binary too, but their load does not belong on every
# pull request, and their throughput-dependent windows are better judged on
# a quiet nightly runner than under PR-time contention. SHOWTIER runs there
# Master and the weekly run add the heavier behavioural scenarios (MIGRATE
# with its three cuebots, FORWARD, SOLOFILL on the full farm,
# COMPLETIONSTORM's 80-host burst): their invariants are binary too, but
# their load does not belong on every pull request. SHOWTIER runs there
# too: its farm is small, but its verdict is a mean tier gap over a
# throughput window, not a binary invariant.
#
Expand Down Expand Up @@ -59,8 +61,8 @@ name: OpenCue Maestro Sim Pipeline

on:
schedule:
# Nightly on master, offset from the top of the hour.
- cron: "41 8 * * *"
# Mondays, offset from the top of the hour.
- cron: "41 8 * * 1"
workflow_dispatch:
inputs:
scenarios:
Expand All @@ -70,11 +72,9 @@ on:
description: "Per-scenario watch window in seconds (default 180)"
required: false

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sim:
name: Maestro sim
uses: ./.github/workflows/maestro-sim.yml
with:
full: ${{ github.event_name == 'schedule' }}
16 changes: 10 additions & 6 deletions .github/workflows/maestro-sim.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Maestro sim

# The Maestro simulator scenarios. Called by maestro-sim-pipeline.yml (nightly and manual
# runs) and pr.yml; see maestro-sim-pipeline.yml for what runs when, and why. The scenario
# set and the timeout follow the caller's event.
# The Maestro simulator scenarios. Called by pr.yml, master.yml and maestro-sim-pipeline.yml
# (weekly and manual runs); see maestro-sim-pipeline.yml for what runs when, and why.

on:
workflow_call:
inputs:
full:
description: Add the heavy behavioural scenarios to the binary set.
type: boolean
default: false

jobs:
pick:
Expand Down Expand Up @@ -39,10 +43,10 @@ jobs:
fail-fast: false
matrix:
# A manual run picks its own scenarios. Otherwise pull requests run the
# small-farm binary set; the nightly schedule adds the heavier behavioural
# scenarios (see the header for why).
# small-farm binary set; master and the weekly schedule add the heavier
# behavioural scenarios (see the header for why).
scenario: ${{ github.event.inputs.scenarios && fromJSON(needs.pick.outputs.requested)
|| github.event_name == 'schedule'
|| inputs.full
&& fromJSON('["LIMIT","FOLDER","LICENSE","LICENSE_NO_HOSTS","PIN","SLICE","MIGRATE","FORWARD","SOLOFILL","COMPLETIONSTORM","SHOWTIER"]')
|| fromJSON('["LIMIT","FOLDER","LICENSE","LICENSE_NO_HOSTS","PIN","SLICE"]') }}

Expand Down
Loading
Loading