Skip to content

Fix VS builds by just doing a direct include of TestBase - #2173

Merged
kevin-montrose merged 1 commit into
mainfrom
users/kmontrose/buildFix
Sep 25, 2026
Merged

kevin-montrose merged 1 commit into
mainfrom
users/kmontrose/buildFix

Conversation

@kevin-montrose

Copy link
Copy Markdown
Contributor

Builds in VS break because it doesn't know about Tsavorite.test in the SLNX.

Just directly include TestBase - less robust, but works.

Copilot AI balanced review requested due to automatic review settings September 25, 2026 16:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused project-file changes resolve the missing solution dependency without introducing unresolved issues.

Review effort: Balanced
Findings: None

What changed in this PR

Removes unavailable Tsavorite test-project dependencies from Visual Studio builds while retaining shared TestBase functionality.

Changes:

  • Remove references to Tsavorite.test.csproj.
  • Compile the shared TestBase.cs directly into both test projects.
File Description
test/​standalone/​Garnet.test/​Garnet.test.csproj Directly includes the shared test base.
test/​cluster/​Garnet.test.cluster/​Garnet.test.cluster.csproj Directly includes the shared test base.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kevin-montrose
kevin-montrose merged commit d2d71f6 into main Sep 25, 2026
170 checks passed
@kevin-montrose
kevin-montrose deleted the users/kmontrose/buildFix branch September 25, 2026 16:41
Ted Hart (TedHartMS) added a commit that referenced this pull request Sep 27, 2026
Merges origin/main d2d71f6 (8 commits). Git reported zero textual
conflicts; all 211 files auto-merged.

One semantic break required a fix. Main's #2162 and #2173 moved TestBase
from Garnet.test to Tsavorite.test (libs/storage/Tsavorite/cs/test/TestBase.cs)
and removed the Garnet ProjectReference from the Tsavorite test projects.
Seven test files added by this branch imported TestBase via
"using Garnet.test;" and stopped compiling with CS0246. That line is removed
from each; no replacement using is needed because all seven declare
namespaces nested under Tsavorite.test, so TestBase now resolves by
enclosing-namespace lookup.

  test.recovery/V7DownlevelRecoveryTests.cs
  test.recovery/LogGeometryVerificationTests.cs
  test.recovery/ObjectRecoveryUndoReflushTests.cs
  test.recovery/ObjectSizeBoundaryDiskIOTests.cs
  test.recovery/ObjectSizeBoundaryRecoveryTests.cs
  test.recovery/SnapshotBoundarySectorTests.cs
  test.recordops/ObjectReadOnlyFlushTraceTests.cs

Note that dotnet build Garnet.slnx reports 0 warnings and 0 errors while
this break is present, because Garnet.slnx does not contain the Tsavorite
test projects. Verifying a merge requires building both solutions.

This merge also brings in 917e0e1 (#2172), which fixes checkpoint abort
abandoning in-flight flushes.

Verified: build 0 warnings / 0 errors on both solutions; dotnet format
--verify-no-changes clean on both; Tsavorite.test.recovery 575 passed;
Tsavorite.test.recordops 379 passed; CheckpointFailureTests 10 passed.
x@01 (x-at-01) added a commit to webc-fork/garnet that referenced this pull request Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants