fix(smashup): 修复 Block the Path POD 派系来源#3
Open
deathcats4 wants to merge 1 commit into
Open
Conversation
Findings
Open Questions / Assumptions
Summary
|
|
发现 quality-gate 红灯的根因不是本 PR 的
我已在本地隔离 clone 验证过最小修复:把测试改成“先断言交互存在,再
但我这边无法直接推回 PR head 分支:
如果作者愿意,可以按下面这个最小补丁更新测试,或者先开启 maintainer edits: @@
expect(r1.steps[0]?.success).toBe(true);
+const choice = asSimpleChoice(r1.finalState.sys.interaction.current)!;
+expect(choice?.sourceId).toBe('trickster_pay_the_piper');
+expect(choice?.playerId).toBe('0');
+expect(choice.options).toHaveLength(2);
+
+const discardOptionId = findOption(choice, (opt) => opt.value?.cardUid === 'h1');
+const r2 = respond(r1.finalState, '0', discardOptionId, 'pay_the_piper: 选择弃牌');
+expect(r2.steps[0]?.success).toBe(true);
-const p0 = r1.finalState.core.players['0'];
+const p0 = r2.finalState.core.players['0'];
expect(p0.hand.length).toBe(handBefore - 2);
-expect(p0.discard.length).toBeGreaterThan(0);
+expect(p0.hand.some((card: CardInstance) => card.uid === 'h1')).toBe(false);
+expect(p0.discard.some((card: CardInstance) => card.uid === 'h1')).toBe(true);在当前权限条件下,这就是 merge 的唯一 blocker:技术上补丁已验证,但我不能把它直接推回这个 PR。 |
|
我这边已完成复核并本地修掉当前 CI blocker,但因为这个 PR 的 head 分支未开放维护者修改权限( 结论
我本地已验证通过的最小修复本地补了一个最小测试修复 commit: 修改点只有 1 个文件:
修法是把测试改为:
本地验证
以上本地都已通过。 当前 blocker要让这个 PR 真正转绿并继续 merge,需要作者二选一:
只要这个测试补丁进到 PR head,按当前本地验证结果, |
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.
变更说明
验证