test(release): stabilize installer and matrix async checks

This commit is contained in:
Peter Steinberger
2026-06-01 04:55:09 +01:00
parent d4240cde5b
commit 817c4ce4fc
3 changed files with 9 additions and 9 deletions

View File

@@ -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)}`);
}
})();
});
})(),
);
}

View File

@@ -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 () => {

View File

@@ -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",