Skip to content

P0 CI guardrails: UI-screen tests, gdlint, version-code bump guard (v1.1.5) - #5

Merged
Alex2pankrat merged 1 commit into
mainfrom
arena/3b29992a-bulwark
Nov 25, 2026
Merged

Alex2pankrat merged 1 commit into
mainfrom
arena/3b29992a-bulwark

Conversation

@Alex2pankrat

Copy link
Copy Markdown
Owner

What

Implements the P0 improvement block: three CI guardrails that stop the two bug classes
which repeatedly slipped past the existing test suite, plus the version bump for the release.

  1. UI-screen regression tests (tests/test_screens.gd + .tscn)
    The core unit tests never build the scene tree, so an empty window (a _build() skipped by
    a parse error or a missing API — exactly the v1.1.4 settings/level-list bug) passed CI and
    shipped. This new headless test instantiates the real main_menu, settings_screen,
    level_select and credits_screen scenes and asserts each builds its content (descendant
    count ≥ threshold). Wired into tools/test.sh and a new UI screen tests CI step.

  2. GDScript lint in CI + .gdlintrc
    Adds a gdlint step so parse/style errors are caught in CI. The two existing
    class-definitions-order violations (save_store.gd, board.gd) are fixed in code; the
    four style rules the codebase does not follow (line length, public-method count, file-line
    count, unused arguments) are relaxed via .gdlintrc rather than rewriting unrelated code.

  3. Version-code guard (tools/check_version.py)
    v1.1.1 shipped with version/code=1, identical to v1.0.0, so the APK could not install over
    it. The script asserts project.godot's config/version matches export_presets.cfg's
    version/name, and — in the release job — that version/code strictly increases vs the
    previous tag. The stale-code bug can no longer ship.

Validation

  • tools/test.sh: all checks passed — 173 core unit + level smoke + 12 UI-screen
    (main_menu 18, settings 68, level_select 98, credits 35 descendants) + autoplay VICTORY on
    all three difficulties.
  • gdlint over all of src: Success: no problems found.
  • tools/check_version.py: consistency OK; bump check 4 -> 5 OK (and correctly fails when
    the code does not increase).

Release

  • Bumped config/version / version/name to 1.1.5 and Android version/code 4 -> 5.

Guards the two bug classes that slipped past the engine-free core tests:

- tests/test_screens.tscn: instantiates the real main_menu / settings_screen /
  level_select / credits_screen scenes headless and asserts each builds its
  content (descendant count). This turns 'the window renders empty' (a
  _build() skipped by a parse error or missing API) into a hard CI failure.
- GDScript lint step (gdlint) + .gdlintrc, so parse/style errors are caught in
  CI. The two existing class-definitions-order violations are fixed in code;
  the four style rules the codebase does not follow are relaxed via .gdlintrc.
- tools/check_version.py: asserts project.godot config/version matches
  export_presets version/name, and (in the release job) that version/code
  strictly increases vs the previous tag — the stale-code bug that made v1.1.1
  uninstallable can no longer ship.

tools/test.sh now runs the UI screen tests too. Bumps version to 1.1.5
(version/code 4 -> 5) for the release.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@Alex2pankrat
Alex2pankrat merged commit 6c26a52 into main Nov 25, 2026
6 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