Skip to content

ci(autoupdate): a candidate is tested against its own version, and keeps the root override it needs - #902

Merged
Sunrisepeak merged 1 commit into
mainfrom
ci/candidate-expect-version-and-overrides
Nov 25, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
ci/candidate-expect-version-and-overrides

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Problem

Three open bot updates fail for reasons of the index, not of the release they carry:

PR Failure Cause
#708 compat.sdl3 3.4.20 init exit 2 tests/examples/sdl3/tests/init.cpp asserts SDL_VERSIONNUM(3, 4, 18); the candidate is 3.4.20
#668 compat.quickjs-ng 0.18.0 version check (with the descriptor change of the companion PR) engine.cpp asserts "0.17.0"
#563 yizhinailong.mcr 0.3.0 dependency 'compat.openssl' has irreconcilable versions mcr pins compat.openssl 3.5.1 beside compat.curl's 3.5.9; the workspace root's [workspace.dependencies] override settles it, but prepare builds a standalone project with no workspace

Change

  • sdl3 and quickjs-ng tests read the expected release from a macro (SDL3_EXPECT_MAJOR/MINOR/PATCH, QUICKJS_NG_EXPECT_VERSION) whose default is the member's pin, the pattern mcr's api.cpp already uses. ci.py prepare defines it first for the candidate (EXPECT_VERSION_DEFINES). The workspace run is unchanged.
  • prepare writes the root override named in CANDIDATE_ROOT_OVERRIDES (mcr: compat.openssl) into the candidate's manifest as [dependencies.compat] openssl = { version, override = true }. It refuses, rather than build an unresolvable graph, when the root states no such override.
  • Unit tests: injected defines and their position, a version the macros cannot express is refused, override carried and refused when absent.

Verification

  • python3 -m unittest discover -s tests/autoupdate: 30 tests OK.
  • Real candidate runs on the trees of the open bot PRs (ci.py prepare then mcpp test --toolchain [email protected], mcpp 2026.11.20.1, linux): compat:sdl3 3.4.20 compat.sdl3: ok (version 3.4.20, 4 video drivers, ...) 1 passed; yizhinailong:mcr 0.3.0 1 passed (it failed with irreconcilable versions before). The quickjs-ng candidate needs the descriptor change of the companion PR as well.

…eps the root override it needs

Three bot updates failed for reasons of the index, not of the release:

- compat.sdl3 3.4.20 (#708) and compat.quickjs-ng 0.18.0 (#668): the members' tests
  hold the pinned release as a literal (SDL_VERSIONNUM(3,4,18), "0.17.0"), so the
  candidate that was selected, built and run failed its own assertion. The tests
  now read the expectation from a macro whose default is the pin, and prepare defines
  it first, as it already does for mcr.
- yizhinailong.mcr 0.3.0 (#563): mcr pins compat.openssl 3.5.1 beside compat.curl's 3.5.9;
  the workspace root's [workspace.dependencies] override settles it, but a candidate is
  a standalone project and lost it (irreconcilable versions). prepare writes the named
  root override into the candidate's manifest.
@Sunrisepeak
Sunrisepeak merged commit 57c2c17 into main Nov 25, 2026
18 checks passed
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