Repository navigation
Conversation
… overwrote 042c85e and 0fe7534 were both cut from 4645e85 to resync the platformer2d and rpg2d entry scenes. 0fe7534 restored the version of 5754892 (scenes on the data files' cells, canonical-form and drift tests) in template/, while 042c85e copied the older ade190e scenes and tests into internal/gamecli/_templates and indexed them under new UIDs on both sides. Merging both left the two copies different and game.index.yaml pointing at UIDs the template scenes do not carry. Copy the template modules' scenes and tests into _templates and put back the UIDs fe24a61 indexed (w2hp63r7xa3ta, z8hf2h77x4mkx) in both game.index.yaml files.
44ac833 added TestSceneEditRefusesStaleBaseVersion (selection and view leave the version alone; a stale baseVersion is refused without changes) and eabef61 moved TestSceneEditRejectsStaleRevisionAndDuplicateRequest to baseVersion. The merge 6223816 interleaved them into one function that applies a scene_edit and then expects the version not to have changed. sceneVersion still hashes only the saved scene, so restore the two tests as their commits wrote them.
4989c8d and b8fbe0d both added Actions.Pointer and Actions.Touches for #1702. The reconcile ec59761 kept b8fbe0d's Touches in pkg/input/pointer.go, which documents ID order but appends straight from the touches map onto whatever dst held, so the order followed map iteration and TestPointerAndTouchSnapshots from 4989c8d failed. Restore 4989c8d's contract: reuse dst from length zero and sort by ID. This is the same pointer.go change as #2472, which also adds the buffer-reuse test and docs.
TestSettingsExportAppleTeamIDCacheAndLifecycleReset (50c0e33) rewrites and then removes the project's nsgo.yaml right after OpenProject and AddExportPreset. OpenProject starts a project check on its own goroutine and every edit schedules another one 80 ms later (e2cbad8); both read nsgo.yaml through project.Check. Go opens files on Windows without FILE_SHARE_DELETE, so when the Windows runner is slow enough for a check to overlap os.Remove, the remove fails with a sharing violation. Nothing leaks the handle: every reader closes it. Wait for the checks with WaitForProblems before touching the file, as the other editor tests do.
This branch has not been deployed
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.
Makes main's Test workflow green again apart from the "Test the X template against its pinned modules" jobs, which stay red until a release built on NSGo v0.4.0 exists. Failures are from run 46279350607; each is fixed in its own commit.
Failures, causes and fixes
internal/gamecli):_templates/projects/{platformer2d,rpg2d}scene_file_test.go and entry scenes differed fromtemplate/*/template. 042c85e and 0fe7534 were both cut from 4645e85. 0fe7534 restored 5754892's scenes and tests (on the data files' cells, with canonical-form and drift tests) intemplate/, while 042c85e copied the older ade190e scenes into_templatesand indexed them under new UIDs on both sides. Fix: copy thetemplate/versions into_templates.pkg/tooling/refs): the same 042c85e rewrote bothgame.index.yamlfiles to UIDs the template scenes do not carry. Fix: put back the UIDs fe24a61 indexed (w2hp63r7xa3ta,z8hf2h77x4mkx), which is whatgame indexwrites.pkg/editor/editormcp): the test was stale, not the product.sceneVersionstill hashes only the saved scene. The merge 6223816 interleaved 44ac833's TestSceneEditRefusesStaleBaseVersion with eabef61's TestSceneEditRejectsStaleRevisionAndDuplicateRequest into one function that applies a scene_edit and then expects the version not to have changed. Fix: restore both tests as their commits wrote them.pkg/input): 4989c8d and b8fbe0d both addedActions.Touchesfor Input: pointer position, touches with IDs and the wheel, sampled each step in virtual coordinates and recorded in replays #1702. The reconcile ec59761 kept b8fbe0d's version, which documents ID order but appends straight from a map, so the order followed map iteration. Fix: reusedstfrom length zero and sort by ID, as 4989c8d did. This is the samepointer.gochange as fix(input): repair pointer and touch snapshots #2472, so the two merge cleanly in either order. fix(input): repair pointer and touch snapshots #2472 also adds the buffer-reuse test, docs and changelog.pkg/platformer, interleaved with the postfx output in the log): 0716b01 added an Example that printsplatformer.JumpNoneand expects0, butJumpKind.Stringhas returnednonesince 72e732f. Fix: expectnone.pkg/editor, Windows only): no handle leaks, since every reader closes nsgo.yaml. The cause is a race. OpenProject starts a project check on another goroutine, and every edit schedules another one 80 ms later (e2cbad8). Both read nsgo.yaml throughproject.Check. Go opens files on Windows withoutFILE_SHARE_DELETE, so a check that overlaps the test'sos.Removemakes it fail with a sharing violation. This has been latent since the test was added in 50c0e33 and passed on the earlier main runs. Fix: callWaitForProblemsbefore the test touches the file, as other editor tests do.No changelog fragment: the only product fix,
Touchesordering, is in an API that has not been released yet. Its feature fragment is still inchangelog.d.Verification
go tool nsgo teston blackmac passed for./internal/gamecli/...,./pkg/input/...,./pkg/platformer/...,./pkg/editor/editormcp/...,./pkg/project/...,./pkg/tooling/refs/..., the platformer2d and rpg2d template modules, and TestSettingsExportAppleTeamIDCacheAndLifecycleReset. Windows is covered by this PR's CI.Screenshots
None.