Skip to content

Fix the standalone build and add compatibility tests - #131

Merged
magahl merged 2 commits into
mainfrom
fix-standalone-add-compat-suite
Oct 27, 2026
Merged

magahl merged 2 commits into
mainfrom
fix-standalone-add-compat-suite

Conversation

@magahl

@magahl magahl commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Closes #125

  • main fails to build: Run several queries together in one batch #126 was tested before the standalone clients landed. Regenerated the test clients so the standalone runtime copy has the batch code, and left out of the standalone suite the tests that need the nullable client and the batch request snapshots (their aliases hash the enum type name, which carries the client namespace).
  • New test/Linq2GraphQL.Compat: scenarios run with the test clients as 1.0.67-prerelease generated them, on the published packages and on this code, and must send the same requests and return or throw the same. Deliberate changes go in accepted-differences.json; scripts/update-compat-baseline.ps1 moves the baseline after a release.

#126 was tested before the standalone clients reached main. Regenerate the
test clients so the standalone runtime copy carries the batch code, and leave
out of Linq2GraphQL.Tests.Standalone the tests that need the nullable client
and the batch request snapshots, whose aliases hash the enum type name and so
the client namespace.
test/Linq2GraphQL.Compat runs a list of scenarios with the test clients as
the baseline release generated them, once on the published packages and once
on this code, and requires the same requests on the wire and the same results
or exceptions. Deliberate changes go into accepted-differences.json with the
reason. Linq2GraphQLBaselineVersion in Directory.Build.props now names the
baseline for both this and package validation; update-compat-baseline.ps1
moves it after a release.
@magahl magahl self-assigned this Oct 27, 2026
@magahl
magahl merged commit 4b0f771 into main Oct 27, 2026
2 checks passed
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.

Run several queries together in one batch

1 participant