Compare commits

..

1 Commits

Author SHA1 Message Date
Toutsu 2ba411a04b ci(deploy): increase trivy image scan timeout to 30m
Slow ARM64 runners hit the default timeout while initializing the
container image scan after pulling. Extend the timeout so image scans
can complete reliably.
2026-06-13 20:22:05 +03:00
2 changed files with 3 additions and 9 deletions
@@ -36,19 +36,19 @@ internal static class SessionListMessageRenderer
actions.Add(new PlatformMessageAction( actions.Add(new PlatformMessageAction(
$"cancel_session:{session.Id}", $"cancel_session:{session.Id}",
$"❌ Отменить {dateTitle}", $"❌ {dateTitle}",
$"cancel_session:{session.Id}")); $"cancel_session:{session.Id}"));
actions.Add(new PlatformMessageAction( actions.Add(new PlatformMessageAction(
$"reschedule_session:{session.Id}", $"reschedule_session:{session.Id}",
$"⏰ Перенести {dateTitle}", $"⏰ {dateTitle}",
$"reschedule_session:{session.Id}")); $"reschedule_session:{session.Id}"));
if (SessionCapacityRules.CanPromoteWaitlistedPlayer(session.MaxPlayers, session.PlayerCount, session.WaitlistCount)) if (SessionCapacityRules.CanPromoteWaitlistedPlayer(session.MaxPlayers, session.PlayerCount, session.WaitlistCount))
{ {
actions.Add(new PlatformMessageAction( actions.Add(new PlatformMessageAction(
$"promote_waitlist:{session.Id}", $"promote_waitlist:{session.Id}",
$"⬆️ С ожидания {dateTitle}", $"⬆️ Из ожидания {dateTitle}",
$"promote_waitlist:{session.Id}")); $"promote_waitlist:{session.Id}"));
} }
@@ -32,12 +32,6 @@ public sealed class SessionListMessageRendererTests
Assert.Contains(actions, a => a.Payload == $"reschedule_session:{sessionId}"); Assert.Contains(actions, a => a.Payload == $"reschedule_session:{sessionId}");
Assert.Contains(actions, a => a.Payload == $"promote_waitlist:{sessionId}"); Assert.Contains(actions, a => a.Payload == $"promote_waitlist:{sessionId}");
Assert.Contains(actions, a => a.Payload == $"delete_session:{sessionId}"); Assert.Contains(actions, a => a.Payload == $"delete_session:{sessionId}");
var shortDate = new DateTime(2026, 5, 7, 16, 30, 0, DateTimeKind.Utc).FormatMoscowShort();
Assert.Contains(actions, a => a.Label == $"❌ Отменить {shortDate}");
Assert.Contains(actions, a => a.Label == $"⏰ Перенести {shortDate}");
Assert.Contains(actions, a => a.Label == $"⬆️ С ожидания {shortDate}");
Assert.Contains(actions, a => a.Label == $"🗑 Удалить {shortDate}");
} }
[Fact] [Fact]