Skip to content

Commit 9e69ff3

Browse files
author
Mykyta Zotov
committed
fix: remove DEBUG-only task tracking from RebalanceScheduler and update solution to include CI/CD project
1 parent 7bee3ac commit 9e69ff3

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/CICD_SETUP.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

SlidingWindowCache.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlidingWindowCache.Integrat
3030
EndProject
3131
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlidingWindowCache.Unit.Tests", "tests\SlidingWindowCache.Unit.Tests\SlidingWindowCache.Unit.Tests.csproj", "{906F9E4F-0EFA-4FE8-8DA2-DDECE22B7306}"
3232
EndProject
33+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "cicd", "cicd", "{9C6688E8-071B-48F5-9B84-4779B58822CC}"
34+
ProjectSection(SolutionItems) = preProject
35+
.github\workflows\slidingwindowcache.yml = .github\workflows\slidingwindowcache.yml
36+
EndProjectSection
37+
EndProject
3338
Global
3439
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3540
Debug|Any CPU = Debug|Any CPU
@@ -64,5 +69,6 @@ Global
6469
{17AB54EA-D245-4867-A047-ED55B4D94C17} = {8C504091-1383-4EEB-879E-7A3769C3DF13}
6570
{0023794C-FAD3-490C-96E3-448C68ED2569} = {8C504091-1383-4EEB-879E-7A3769C3DF13}
6671
{906F9E4F-0EFA-4FE8-8DA2-DDECE22B7306} = {8C504091-1383-4EEB-879E-7A3769C3DF13}
72+
{9C6688E8-071B-48F5-9B84-4779B58822CC} = {EB667A96-0E73-48B6-ACC8-C99369A59D0D}
6773
EndGlobalSection
6874
EndGlobal

src/SlidingWindowCache/Core/Rebalance/Intent/RebalanceScheduler.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ internal sealed class RebalanceScheduler<TRange, TData, TDomain>
4545
private readonly TimeSpan _debounceDelay;
4646
private readonly ICacheDiagnostics _cacheDiagnostics;
4747

48-
#if DEBUG
4948
/// <summary>
5049
/// Tracks the latest scheduled rebalance background Task for deterministic idle synchronization.
5150
/// Used by WaitForIdleAsync() to provide race-free testing infrastructure.
5251
/// This field exists only in DEBUG builds and has zero RELEASE overhead.
5352
/// </summary>
5453
private Task _idleTask = Task.CompletedTask;
55-
#endif
5654

5755
/// <summary>
5856
/// Initializes a new instance of the <see cref="RebalanceScheduler{TRange,TData,TDomain}"/> class.
@@ -127,10 +125,8 @@ await ExecuteAfterAsync(
127125
// NOTE: Do NOT pass intentToken to Task.Run ^ - it should only be used inside the lambda
128126
// to ensure the try-catch properly handles all OperationCanceledExceptions
129127

130-
#if DEBUG
131128
// Track the latest background task for deterministic idle synchronization (DEBUG-only)
132129
_idleTask = backgroundTask;
133-
#endif
134130
}
135131

136132
/// <summary>

0 commit comments

Comments
 (0)