Repository navigation
P0 CI guardrails: UI-screen tests, gdlint, version-code bump guard (v1.1.5) - #5
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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 bya 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_selectandcredits_screenscenes and asserts each builds its content (descendantcount ≥ threshold). Wired into
tools/test.shand a new UI screen tests CI step.GDScript lint in CI +
.gdlintrcAdds a
gdlintstep so parse/style errors are caught in CI. The two existingclass-definitions-orderviolations (save_store.gd,board.gd) are fixed in code; thefour style rules the codebase does not follow (line length, public-method count, file-line
count, unused arguments) are relaxed via
.gdlintrcrather than rewriting unrelated code.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 overit. The script asserts
project.godot'sconfig/versionmatchesexport_presets.cfg'sversion/name, and — in the release job — thatversion/codestrictly increases vs theprevious 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.
gdlintover all ofsrc: Success: no problems found.tools/check_version.py: consistency OK; bump check4 -> 5OK (and correctly fails whenthe code does not increase).
Release
config/version/version/nameto1.1.5and Androidversion/code4 -> 5.