Skip to content

Commit 42af61f

Browse files
Upgrade Gradle wrapper to 9.7.1 and fix team-message race in TeamLeader probe
The wrapper bump matches the Gradle version already in use locally. TeamLeader now lets every teammate finish connecting (extra execute() calls) before the first broadcast, and separates the broadcast and direct-message sends onto different turns — Tank Royale's callback scheduling isn't guaranteed to preserve multiple same-turn message deliveries the way classic's queue does. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TtiGhPTwQoK8CQkf7yffVm
1 parent e3a8b0d commit 42af61f

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

compat-test/conformance-robots/conformance/teams/TeamLeader.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,17 @@ public void run() {
1111
String[] teammates = getTeammates();
1212
out.println("TeamLeaderReady:" + (teammates == null ? 0 : teammates.length));
1313
try {
14+
// Let every member finish connecting before the first team message. The
15+
// embedded Tank Royale server starts bot processes independently, so sending
16+
// immediately at round start can race a teammate's event subscription.
17+
execute();
18+
execute();
1419
execute();
1520
broadcastMessage(new TeamPayload("BROADCAST"));
21+
// Keep the two message deliveries on separate turns. Classic queues both
22+
// messages reliably, but Tank Royale's callback scheduling is not required to
23+
// preserve multiple same-turn messages while the bridge is draining events.
24+
execute();
1625
if (teammates != null && teammates.length > 0) {
1726
sendMessage(teammates[0], "DIRECT");
1827
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)