Skip to content

Conversation

@RReverser
Copy link
Contributor

Description of Changes

A follow-up to #1719.

In Codegen.Tests this test will be actually validated locally & on CI, snapshotted for reference, and checked that it compiles properly, whereas in that folder it was more or less dormant as the SDK test runner is intended only for tests that match pairwise between Rust/C# and doesn't know about the new folder.

This reveals at least one minor issue, but worth checking that there're no others.

API and ABI breaking changes

If this is an API or ABI breaking change, please apply the
corresponding GitHub label.

Expected complexity level and risk

How complicated do you think these changes are? Grade on a scale from 1 to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex change.

This complexity rating applies not only to the complexity apparent in the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning ways.

Testing

Describe any testing you've done, and any testing you'd like your reviewers to do,
so that you're confident that all the changes work as expected!

  • Write a test you've completed here.
  • Write a test you want a reviewer to do here, so they can check it off when they're satisfied.

@RReverser RReverser requested a review from lcodes September 28, 2024 00:44
Comment on lines 55 to 60
Columns:
[
new(nameof(Name), BSATN.Name.GetAlgebraicType(registrar)),
new(nameof(Foo), BSATN.Foo.GetAlgebraicType(registrar)),
new(nameof(Bar), BSATN.Bar.GetAlgebraicType(registrar))
],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nit for future work: we should be able to create and reuse this list instead of generating codegen for duplicates, as all table views have the same list of column names and types.

@RReverser RReverser force-pushed the ingvar/codegen-test-for-multi-tables branch from 72fdb7f to 420f15a Compare September 28, 2024 00:50
@RReverser RReverser changed the title Migrate multi-table test to Codegen.Tests [C#] Migrate multi-table test to Codegen.Tests Sep 28, 2024
In Codegen.Tests it's actually validated, snapshotted and checked that it compiles properly, whereas the SDK test runner doesn't do anything with the new folder since it doesn't match any existing Rust tests.
@RReverser RReverser force-pushed the ingvar/codegen-test-for-multi-tables branch from fd85cd6 to de5fa2a Compare September 30, 2024 11:34
@RReverser RReverser changed the title [C#] Migrate multi-table test to Codegen.Tests [C#] Fix table view names and duplicate table registration Sep 30, 2024
@RReverser RReverser enabled auto-merge September 30, 2024 15:52
@RReverser RReverser added this pull request to the merge queue Sep 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 30, 2024
@RReverser RReverser added this pull request to the merge queue Sep 30, 2024
Merged via the queue into master with commit 37ac4a4 Sep 30, 2024
@RReverser RReverser deleted the ingvar/codegen-test-for-multi-tables branch September 30, 2024 16:31
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