Skip to content

[ci] DO NOT MERGE: release dry run - #2660

Closed
DiegoTavares wants to merge 44 commits into
AcademySoftwareFoundation:masterfrom
DiegoTavares:ci/phase-3-release-dry-run
Closed

DiegoTavares wants to merge 44 commits into
AcademySoftwareFoundation:masterfrom
DiegoTavares:ci/phase-3-release-dry-run

Conversation

@DiegoTavares

Copy link
Copy Markdown
Collaborator

DO NOT MERGE. Throwaway draft to prove the non-publishing path of Phase 3's release workflow (the Phase 3 PR is stacked on #2648, #2649 and #2655).

Its head is ci/phase-3-release plus one marked commit that replaces pr.yml with:

  • a call to release.yml in dry-run mode, against the release-bundle of run 44663836822 (Phase 2's dry run),
  • a job that checks each preflight refusal against the real API and bundle,
  • a probe of the image retag on the runner's buildx, with --dry-run.

Nothing publishes: the call comes from a pull request, so the publishing jobs are skipped. This PR will be closed and its branch deleted.

🤖 Generated with Claude Code

DiegoTavares and others added 30 commits November 19, 2026 14:30
The SonarCloud workflow failed on every master push (53 of 53 runs) because
the scanner no longer accepts Java 17, and nobody acted on the results.
Remove the workflow, sonar-project.properties, the coverage script it was the
only user of, and the org.sonarqube plugin and config in cuebot/build.gradle.

Co-Authored-By: Claude <noreply@anthropic.com>
GitHub no longer serves the macos-14 label ("The configuration
'macos-14-arm64-us-default' is not supported"), so every master packaging
run since 10 Nov was cancelled at the macOS jobs and the S3 upload in
create_other_artifacts was skipped. Use macos-15 in packaging and release;
x86_64-apple-darwin keeps cross-compiling from the arm64 runner.

Co-Authored-By: Claude <noreply@anthropic.com>
monitor_server_output only checked its deadline after reader.lines() yielded
a line, so a silent dummy-cuebot blocked the test forever. That hung
windows-tests until the 60-minute job timeout on 54 of 55 sampled runs and the
Linux build job on 27% of runs.

- Read child stdout and stderr on background threads and wait on a channel
  with recv_timeout, so the deadline holds without output. The server is
  killed and reaped on timeout.
- Drain openrqd's output the same way. It logs at debug level to a pipe
  nobody read, which can fill and stall rqd.
- Add a test that feeds the monitor a silent child.
- Run Rust tests with cargo nextest. A test is killed after 90s, and the
  integration binary runs in a single-threaded group since nextest gives each
  test its own process and the in-process mutex no longer serializes them.
- Pre-build the release dummy-cuebot outside the per-test timeout, and drop
  the job timeouts to 15 minutes (Linux) and 20 minutes (Windows).

Co-Authored-By: Claude <noreply@anthropic.com>
run_integration_test.sh built opencue/cuebot and opencue/rqd, then docker
compose up built its own copies because those services had build: and no
image:. On a layer cache miss the second build ate the 5-minute wait and the
job failed with "Timed out waiting for Docker compose".

- Name the flyway, cuebot and rqd images in docker-compose.yml so compose
  reuses the images the script builds, and start it with --no-build.
- Build the flyway image in the script alongside the others.
- Print the build log whenever an image build fails (it was only printed for
  RQD), and the tail of the compose log when the wait times out.

Co-Authored-By: Claude <noreply@anthropic.com>
The nightly Maestro run was red on 66% of nights, mostly COMPLETIONSTORM
failing its peak tick threshold (65% of nights) and SOLOFILL (14%). Those
thresholds measure the shared runner as much as the scheduler, so a red
nightly stopped carrying information.

Run both with continue-on-error and record every scenario's numbers (peak
tick, post-op queue, lost reports, fill ratio, throughput) as a JSON artifact
kept for 90 days, so the thresholds can be reset from the observed
distribution before they gate again. Logs are archived for a report-only
failure too.

Co-Authored-By: Claude <noreply@anthropic.com>
- Declare opencue_cuegui_path as an output of the Testing pipeline's build
  job. It was never declared, so CueGUI tests ran pip install "[test]" and
  the install matrix silently skipped the cuegui wheel. That wheel requires
  Python > 3.7, so the 3.7 install leg leaves it out.
- run_gui_test.sh: run with set -eo pipefail and decide on pytest's exit
  code, recorded inside the xvfb session so an xvfb-run crash on exit still
  cannot fail a passing run. Grepping for "N failed" let collection errors
  pass.
- Write the commit SHA into build_metadata.json with ${GITHUB_SHA}.
  $(BUILD_SOURCEVERSION) is Azure syntax and produced an empty commit.
- Drop the lint job's "Set package vars" step, which exported into a shell
  that exited immediately.
- Move checkout@v3, configure-aws-credentials@v1, login-action@v2 and the
  composite action's upload-artifact@v4 to current majors (v7, v6, v4, v7).

Co-Authored-By: Claude <noreply@anthropic.com>
Two jobs ran to GitHub's 6-hour limit stuck in apt-get, and neither had a
timeout. Superseded PR pushes kept running to the end because the Testing and
Rust workflows had no concurrency group.

- Give every job a timeout-minutes of roughly three times its median
  duration over recent successful runs, at least 10 minutes for jobs that
  pull containers or build images, and at most 30 minutes. Manual
  Maestro sim runs keep a longer ceiling because they can pick the full-farm
  scenarios.
- Cancel in-progress Testing and Rust runs when a pull request gets a new
  push. Master pushes are grouped by commit, so every commit still runs.
- Install protoc for the REST gateway tests with a pinned setup-protoc
  instead of apt-get.

Co-Authored-By: Claude <noreply@anthropic.com>
…dows

Killing cmd left its ping child holding the pipe, which nextest reported as a
leak.

Co-Authored-By: Claude <noreply@anthropic.com>
The CI containers have no bare pip on PATH. Without set -e that failure was
ignored and the tests hit a collection error that the old grep counted as a
pass.

Co-Authored-By: Claude <noreply@anthropic.com>
Building a Host or Job wrapper opens a gRPC stub, so TempCellHelpersTests and
UtilsViewerTests tried to reach a real cuebot. Whichever ran first failed. CI
never noticed because the CueGUI tests were not actually running.

Co-Authored-By: Claude <noreply@anthropic.com>
Naming the services' images opencue/cuebot and opencue/rqd made a plain
`docker compose up` on a clean machine pull the released images from Docker
Hub instead of building the checkout. Leave docker-compose.yml as it was and
have the script build the services with `docker compose build`, so
`up --no-build` runs exactly what was just built. On a build failure, print
the last 300 lines of the log; the full log is in the test-logs artifact.

Co-Authored-By: Claude <noreply@anthropic.com>
Recording and uploading metrics is reporting only; a bug there must not turn a
report-only scenario red.

Co-Authored-By: Claude <noreply@anthropic.com>
On CY2024 the tests all passed and Python then segfaulted on exit in Qt
teardown, failing the job with 139. Run pytest through pytest.main and leave
with os._exit, so its own exit code decides and teardown never runs.

Co-Authored-By: Claude <noreply@anthropic.com>
rqd sometimes fails to report completion of a frame recovered after a
restart: the restarted rqd keeps reporting the frame as running after it
exited. With the hang fixed this fails in about 43 s instead, but still turns
roughly a quarter of runs red. Retry only the test_rqd_restart_* tests, up to
twice; nextest reports a pass on retry as FLAKY so the bug stays visible.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
The PR pipeline checks formatting from here on.

Co-Authored-By: Claude <noreply@anthropic.com>
Next.js 16 removed `next lint`, so `npm run lint` treated "lint" as a
project directory and failed. It now runs eslint directly, and a stale
disable comment for a rule that isn't loaded is gone.

The REST gateway fetch tests now expect the abort signal the client passes.
The FrameRangeSelector tests are skipped: they drive per-frame cells that the
slider-based component does not render.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
With no arguments it installs and lints everything, as before.

Co-Authored-By: Claude <noreply@anthropic.com>
The Maestro sim job moves into maestro-sim.yml unchanged; the nightly and
manual runs call it.

Co-Authored-By: Claude <noreply@anthropic.com>
The Testing, Rust and Maestro pipelines no longer run on pull requests.

Co-Authored-By: Claude <noreply@anthropic.com>
Wheels built on 3.11 carry generated proto code that needs a newer protobuf
runtime than Python 3.9 can install.

Co-Authored-By: Claude <noreply@anthropic.com>
- Build the API docs for pycue, pyoutline and proto changes too: the
  reference autodocs them with warnings as errors.
- Run everything when the pull request changes more files than the filter
  received, since the files API stops at 3000.
- Test that every planner output is wired into pr.yml, so a renamed key
  can't silently skip its job.

Co-Authored-By: Claude <noreply@anthropic.com>
integration.yml builds the Cuebot and RQD images with buildx and the GHA cache, and
ci/run_integration_test.sh runs compose on them when CUEBOT_IMAGE and RQD_IMAGE are set.
With a build ID, the tested images and the Cuebot jar and RPM are uploaded as artifacts.

Co-Authored-By: Claude <noreply@anthropic.com>
- cueweb.yml and rest-gateway.yml take a build ID, tag the image with it and upload it.
- cuebot.yml can write the JaCoCo report.
- Each Python leg gets its own uv cache entry, so one package's cache doesn't stand in
  for all of them.

Co-Authored-By: Claude <noreply@anthropic.com>
maestro-sim.yml takes a full input instead of reading the event name. The scheduled
run is weekly, and the pipeline has no concurrency group, so a manual run no longer
cancels a scheduled one.

Co-Authored-By: Claude <noreply@anthropic.com>
pr.yml and master.yml both call it; the license check is its optional second job.

Co-Authored-By: Claude <noreply@anthropic.com>
One workflow on push to master: verify, build once, prove, then stage. The release-bundle
artifact (90 days) holds everything a release publishes, and the stage jobs push the tested
images to opencuebuild and mirror the bundle to the same S3 path as before. The Testing,
Rust and Packaging pipelines are deleted.

Co-Authored-By: Claude <noreply@anthropic.com>
Every package now declares requires-python >=3.9, so pip on 3.7 or 3.8 refuses the
wheels instead of installing something that fails at import. CI no longer tests 3.7 or
3.8: wheels are built on 3.9 and installed on 3.9 to 3.11. The docs list 3.9 as the
minimum.

Co-Authored-By: Claude <noreply@anthropic.com>
The release bundle keeps its own copy for 90 days.

Co-Authored-By: Claude <noreply@anthropic.com>
DiegoTavares and others added 14 commits November 19, 2026 19:39
The stage jobs' implicit success() also looked at the skipped Maestro job, so they were
skipped on every push that didn't touch the scheduler. They now check the bundle job's
result. Publishing is also limited to pushes to master in the upstream repository.

Co-Authored-By: Claude <noreply@anthropic.com>
A pull request's cache entries are only readable by that pull request, and the buildx
mode=max entries are gigabytes each, so they pushed master's entries out of the 10 GB
budget. Pull requests still restore from master.

Co-Authored-By: Claude <noreply@anthropic.com>
- The install legs compile and import every package, so syntax newer than Python 3.9
  fails on 3.9.
- check_release_bundle.sh requires the Python packages to carry the build's version.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
It imports Qt, which needs libGL; it is still byte-compiled.

Co-Authored-By: Claude <noreply@anthropic.com>
The restart tests dropped the restarted openrqd's output and never checked
whether it was still running, so a crash looked like a missing completion.
On failure, print the last 200 lines of its output and its exit status.

Co-Authored-By: Claude <noreply@anthropic.com>
refresh_procs_cache only ever inserted into cached_processes, so a session
leader that had exited stayed cached as alive. Its session then got stats
with no processes in it, including the u64::MAX start-time placeholder.
Reporting that frame multiplies the start time by 1000: debug builds panic,
which kills the machine monitor and makes rqd exit; release builds report a
wrapped start time. A recovered frame hits this whenever a monitor tick
lands between its exit and the next 1.5 s recovery poll, which is what made
test_rqd_restart_recovers_running_frame fail on some runners.

Keep only the processes seen in the current refresh. This also stops the
cache from growing with every process a frame ever ran.

Co-Authored-By: Claude <noreply@anthropic.com>
The failures came from the stale process cache fixed in the previous
commit, so the tests no longer need retries, and retries would hide a
regression.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
choco install protoc exits 0 when the Chocolatey feed fails, so the build failed later on a
missing protoc. Every Rust job now uses the pinned arduino/setup-protoc with protoc 21.12,
the version the REST gateway job and Ubuntu 24.04 use, instead of choco, brew or apt.

Co-Authored-By: Claude <noreply@anthropic.com>
The release checks and steps that deserve tests, for the release workflow: find the green
OpenCue Master push run of the tagged commit and its release-bundle, check the bundle
against the tag, the commit and the run (and ci/check_release_bundle.sh), list the files a
release publishes, write the release notes, and retag the staged images by digest after
checking each is the image the build recorded. Each refusal says what to do next.

Co-Authored-By: Claude <noreply@anthropic.com>
release.yml replaces release-pipeline.yml. A v* tag no longer builds wheels on python:3.7,
the five openrqd targets or the license check. Preflight finds the green master run of the
tagged commit, downloads and checks its release-bundle and writes the notes. Then a draft
GitHub release is created with gh from the bundle's assets, and after approval of the
release environment the staged images are retagged with buildx imagetools and the bundle's
wheels and sdists go to PyPI.

Only a tag push or a dispatch from master in AcademySoftwareFoundation/OpenCue publishes;
a dispatch defaults to a dry run, and a pull request can call the workflow in dry-run mode.

Co-Authored-By: Claude <noreply@anthropic.com>
Temporary: pr.yml calls release.yml in dry-run mode and checks the preflight refusals.

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@DiegoTavares

Copy link
Copy Markdown
Collaborator Author

Dry run done: run https://github.com/AcademySoftwareFoundation/OpenCue/actions/runs/44775426908 is green. Evidence is recorded in #2661.

@DiegoTavares
DiegoTavares deleted the ci/phase-3-release-dry-run branch November 20, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant