Skip to content

CI: Run the autotests on Ubuntu and fix loadCircularReference - #4648

Merged
bjorn merged 2 commits into
masterfrom
ci-run-autotests
Nov 19, 2026
Merged

bjorn merged 2 commits into
masterfrom
ci-run-autotests

Conversation

@bjorn

@bjorn bjorn commented Oct 28, 2026 •

Copy link
Copy Markdown
Member
  • The qbs test products were built in CI but never run, letting loadCircularReference fail unnoticed.
  • Instantiate qbs's AutotestRunner in tests.qbs, enabling qbs build -p autotest-runner to run all tests (each in its own dir, per autotest.workingDir).
  • Add a Test step to the Ubuntu workflow (offscreen platform for the GUI-dependent tests).
  • Fix loadCircularReference: its expectation was accidentally inverted in fc38481. Verified the actual, deterministic behavior is that the back reference in the second-loaded class is dropped (A keeps member b, B drops member a).

Test plan

  • test_properties passes locally (22/22), including the corrected assertion.
  • qbs build -p autotest-runner runs all five tests (verified locally; on Linux the build-tree rpath finds libs under install-root/usr/local/lib).
  • CI

The qbs test products were built but never run, allowing the
loadCircularReference test to fail unnoticed.

Its expectation was accidentally inverted in fc38481 when it was
adjusted to changed behavior. The actual and intended behavior is
that when class A has a member of type B and class B has a member of
type A, the back reference in the second-loaded class (B) is the one
that gets dropped.

Instantiate the qbs AutotestRunner product so 'qbs build -p
autotest-runner' runs all tests, and add a Test step to the Ubuntu
workflow running it with the offscreen platform.
@bjorn
bjorn merged commit 48edd90 into master Nov 19, 2026
12 of 14 checks passed
@bjorn
bjorn deleted the ci-run-autotests branch November 19, 2026 20:56
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