Skip to content

Trim CI, drop Qt 5, and fix the Doxygen and apt failures - #297

Open
zayenz wants to merge 3 commits into
mainfrom
ci/trim-jobs
Open

zayenz wants to merge 3 commits into
mainfrom
ci/trim-jobs

Conversation

@zayenz

@zayenz zayenz commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

CI goes from 14 jobs to 3, and Gecode 7 drops Qt 5.

Why these jobs

I read every failed job log from 262 runs between 22 Oct and 26 Nov and grouped the failures by root cause. None of them were flaky.

Job What its failures were Kept?
check-extended clang-tidy findings (13 runs where it was the only red job), fault-injection compile, freshness Yes
Windows MSVC shared MSVC-only compile errors, missing DLL exports, consumer portability bugs Yes
Linux GCC-specific compile errors; the rest repeated check-extended Yes, as build-linux
Windows static, vcpkg, MSYS2 Always failed together with the shared build, or on infrastructure Dropped
macOS 23 of 24 failures were Homebrew bison/flex freshness noise; the other was also caught on Windows Dropped
Qt 6 and Qt 5 Gist Always the same failure in both Qt 5 dropped; Qt 6 folded into check-extended
ninja, allocator ×2, tidy No failures Smokes folded into build-linux; tidy already runs in check.py all
32-bit One infrastructure failure Folded into build-linux

Commits

  1. Remove Qt 5 support.
    • CMake finds only Qt6, and the installed package always requests Qt6.
    • The Qt 4 and Qt 5 QT_VERSION branches are gone from Gist and the examples.
    • The Qt 5 job, its consumer smoke and the old-Qt rejection check are removed.
    • Docs and changelog are updated.
  2. Trim CI to the jobs that catch distinct failures.
    • check-extended also smokes the installed Gist package.
    • build-linux builds with GCC 14 without experimental APIs. It also runs the FlatZinc/MiniZinc, instance-example, example-feature, allocator (now .github/ci/allocator-smoke.sh) and 32-bit smokes.
    • build-windows keeps only the MSVC shared build.
    • A new push to a pull request cancels its running checks.
  3. Fetch Doxygen from GitHub and skip the Microsoft apt source.
    • doxygen.nl started serving runners a 12 KB page instead of the archive, so the checksum failed. The GitHub release has the same archive and checksum.
    • The runners' packages.microsoft.com source returned 403 and failed apt-get update. No job installs from it, so the job removes that source first.

Testing

  • Local Qt 6 build with Gist and the examples.
  • Installed-package Gist consumer smoke.
  • GECODE_ENABLE_QT=ON without Qt 6 fails with "requires Qt 6".
  • The allocator script ran end to end on Linux.
  • actionlint, format-check and the changelog tidy check pass.

Notes

  • No CI job builds the full library static any more. The Windows static and MSYS2 jobs never caught anything the shared builds missed.
  • The breaking-7 stack edits the deleted Qt 5, vcpkg and MSYS2 scripts, so rebasing it onto this will conflict there. Resolve by keeping the deletions. down-cast's g++-14 hunk in build.yml will also conflict; build-linux already sets GCC 14, so take this branch's version.

Summary by CodeRabbit

  • Compatibility
    • Qt 5 is no longer supported. Gist and Qt-backed FlatZinc features now require Qt 6.
  • Documentation
    • Updated build and troubleshooting guidance to reflect the Qt 6 requirement.
  • Chores
    • Updated automated build checks for allocator configurations and Qt/Gist package consumers.

Gecode 7 builds Gist and the Qt-backed FlatZinc features against Qt 6 only.
CMake looks for Qt6 alone, the installed package always requests Qt6, and
the Qt 4 and Qt 5 branches in Gist and the examples are gone. CI drops the
Qt 5 Gist job and the old-Qt rejection check, which only a Qt 5 package
could trigger.
Over five weeks of runs, macOS, Windows static, vcpkg, MSYS2, the second Qt
job, ninja, the allocator matrix, and tidy found nothing that check-extended,
Linux GCC, or MSVC shared did not also find, or failed only on
infrastructure. Three jobs remain:

- check-extended, which already runs formatting, tidy, freshness,
  clang-tidy, fault injection, packages, and docs, now also smokes the
  installed Gist package.
- build-linux builds with GCC 14 without experimental APIs and takes the
  FlatZinc, instance example, example feature, allocator, and 32-bit
  smokes. Its freshness and fault injection repeated check-extended.
- build-windows keeps the MSVC shared build, which caught every MSVC compile
  error and the missing DLL exports.

A new push to a pull request cancels its running checks.
doxygen.nl started serving runners a 12 KB page instead of the 1.18.0
archive, so the checksum failed in check-extended. The GitHub release has the
same archive and checksum. The runners' packages.microsoft.com source has
returned 403 and failed apt-get update; no job installs from it.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Qt 6 Support

Layer / File(s) Summary
Qt discovery and package contract
CMakeLists.txt, cmake/GecodeConfig.cmake.in, gecode/flatzinc/exampleplugin/CMakeLists.txt
CMake discovers Qt 6 and uses it for configured package dependencies. The FlatZinc example plugin requires Qt 6 Core.
Qt 6 APIs in Gist and examples
examples/knights.cpp, examples/queens.cpp, gecode/gist/*
Gist and example code uses Qt 6 APIs without the former Qt-version conditionals for widgets, mutexes, events, printing, and PDF export.
Qt requirements and related checks
changelog.in, docs/cmake-build.md, .github/ci/*
The changelog and build documentation state the Qt 6 requirement. Consumer configurations no longer disable Qt 5 discovery, and Qt 5-specific checks are removed.

CI Build and Validation

Layer / File(s) Summary
Allocator smoke test
.github/ci/allocator-smoke.sh
The new script builds shared and static mimalloc-enabled libraries, checks symbols and expected configuration failures, and tests installed consumers and files.
Workflow jobs and platform checks
.github/workflows/build.yml, .github/ci/cmake-consumer-smoke-msys2.sh, .github/ci/cmake-consumer-smoke-vcpkg.ps1
The workflow adds concurrency controls, updates dependency setup, consolidates Linux checks into a GCC 14 job, changes Windows configuration, and removes Windows consumer scripts and jobs.

Suggested reviewers: dekker1

Change: Other

Merge Risk: Minimal · up to 304de

This change makes Qt 6 the only supported Qt version for Gist and Qt-backed FlatZinc features, and it trims CI to three jobs. No concrete merge-blocking problem was found. Qt 5 users lose support, which the docs and changelog state.

Security architecture risk: Low · up to 304de

Qt-enabled consumers must migrate to Qt 6. The inspected changes do not expand application access or CI permissions. The main rollout risk is that rapid pushes to the same release branch can leave an intermediate revision without a completed CI run.

Retained concerns

  • Low · reliability · inferred: The new concurrency key groups main and release push runs by branch ref. When a run is active, a later push can replace an earlier pending run on that ref, leaving that intermediate revision without completed validation. The policy does not cancel an already-running push run or affect runs on other refs. No release-gate bypass is established.
Security review details

Security Blast Radius

  • observed — The routed TreeCanvas changes add no event handler, caller, or export destination. The file chooser and printer output destination were already reachable in the Qt 6 build.

Trust Boundaries and Controls

  • observed — Doxygen moves to a different download host but retains the same SHA-256 check before extraction and execution. The MiniZinc download in the consolidated Linux job is also checked before extraction and execution.

Hardening Proposals

  • proposed — Confirm that required-check settings reference the retained CI jobs before rollout. If release validation is required for every pushed revision, scope concurrency to pull requests or avoid grouping push runs by branch ref.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 23b51664-c0fc-4d54-a031-049dfba7ed8e
Commits

Reviewing files that changed from the base of the PR and between ad4645a and 304dedb.

Files selected for processing: 21

  • .github/ci/allocator-smoke.sh
  • .github/ci/cmake-consumer-smoke-msys2.sh
  • .github/ci/cmake-consumer-smoke-vcpkg.ps1
  • .github/ci/cmake-consumer-smoke.sh
  • .github/ci/qt-minimum-version-checks.sh
  • .github/ci/qt5-gist-consumer-smoke.sh
  • .github/workflows/build.yml
  • CMakeLists.txt
  • changelog.in
  • cmake/GecodeConfig.cmake.in
  • docs/cmake-build.md
  • examples/knights.cpp
  • examples/queens.cpp
  • gecode/flatzinc/exampleplugin/CMakeLists.txt
  • gecode/gist/drawingcursor.cpp
  • gecode/gist/mainwindow.cpp
  • gecode/gist/nodestats.hh
  • gecode/gist/preferences.hh
  • gecode/gist/textoutput.cpp
  • gecode/gist/treecanvas.cpp
  • gecode/gist/treecanvas.hh
Files with no reviewable changes: 13

  • .github/ci/cmake-consumer-smoke-msys2.sh
  • .github/ci/cmake-consumer-smoke-vcpkg.ps1
  • .github/ci/cmake-consumer-smoke.sh
  • .github/ci/qt-minimum-version-checks.sh
  • .github/ci/qt5-gist-consumer-smoke.sh
  • examples/knights.cpp
  • examples/queens.cpp
  • gecode/gist/drawingcursor.cpp
  • gecode/gist/mainwindow.cpp
  • gecode/gist/nodestats.hh
  • gecode/gist/preferences.hh
  • gecode/gist/textoutput.cpp
  • gecode/gist/treecanvas.hh

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

This branch has not been deployed

No deployments
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