mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-04 09:14:04 +00:00
test(release): stabilize installer and matrix async checks
This commit is contained in:
@@ -60,8 +60,8 @@ export function registerMatrixAutoJoin(params: {
|
||||
};
|
||||
|
||||
// Handle invites directly so both "always" and "allowlist" modes share the same path.
|
||||
client.on("room.invite", (roomId: string, _inviteEvent: unknown) => {
|
||||
void (async () => {
|
||||
client.on("room.invite", (roomId: string, _inviteEvent: unknown) =>
|
||||
(async () => {
|
||||
if (autoJoin === "allowlist") {
|
||||
const allowedAliasRoomIds = await resolveAllowedAliasRoomIds();
|
||||
const allowed =
|
||||
@@ -81,6 +81,6 @@ export function registerMatrixAutoJoin(params: {
|
||||
} catch (err) {
|
||||
runtime.error?.(`matrix: failed to join room ${roomId}: ${String(err)}`);
|
||||
}
|
||||
})();
|
||||
});
|
||||
})(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -271,8 +271,8 @@ export function registerMatrixMonitorEvents(params: {
|
||||
);
|
||||
});
|
||||
|
||||
client.on("room.failed_decryption", (roomId: string, event: MatrixRawEvent, error: Error) => {
|
||||
void (async () => {
|
||||
client.on("room.failed_decryption", (roomId: string, event: MatrixRawEvent, error: Error) =>
|
||||
(async () => {
|
||||
const failureState = postHealthySyncDecryptFailureTracker.recordFailure(roomId, event, error);
|
||||
const selfUserId = await resolveMatrixSelfUserId(client, logVerboseMessage);
|
||||
const sender = typeof event.sender === "string" ? event.sender : null;
|
||||
@@ -319,8 +319,8 @@ export function registerMatrixMonitorEvents(params: {
|
||||
logVerboseMessage(
|
||||
`matrix: failed decrypt room=${roomId} id=${event.event_id ?? "unknown"} freshAfterHealthySync=${String(failureState.freshAfterHealthySync)} error=${error.message}`,
|
||||
);
|
||||
})();
|
||||
});
|
||||
})(),
|
||||
);
|
||||
|
||||
client.on("verification.summary", (summary) => {
|
||||
void runMonitorTask("verification summary handler", async () => {
|
||||
|
||||
@@ -1008,7 +1008,7 @@ describe("install.sh", () => {
|
||||
"set +e",
|
||||
"unset -f node 2>/dev/null || true",
|
||||
"unalias node 2>/dev/null || true",
|
||||
"hash -r",
|
||||
'node() { printf "%s\\n" "${FAKE_NODE_VERSION:-v0.0.0}"; }',
|
||||
`FAKE_NODE_VERSION="v22.${minMinor - 1}.0"`,
|
||||
"export FAKE_NODE_VERSION",
|
||||
"node_is_at_least_required",
|
||||
|
||||
Reference in New Issue
Block a user