Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# endianness fixes #1964

Merged
merged 12 commits into from
Nov 20, 2024
Merged

C# endianness fixes #1964

merged 12 commits into from
Nov 20, 2024

Conversation

kazimuth
Copy link
Contributor

@kazimuth kazimuth commented Nov 8, 2024

Description of Changes

Similar fixes to the previous endianness fixes (#1926) for C#.

API and ABI breaking changes

Reverts a previous API break which (I believe) printed Identities and Addresses backwards in C#. Otherwise, only documents existing behavior & adds methods.

Expected complexity level and risk

1

Testing

I am not sure how to add unit tests to the C# bindings, @RReverser please advise. E: NVM, figured it out.

@kazimuth
Copy link
Contributor Author

kazimuth commented Nov 8, 2024

Okay this should be ready for merge

@bfops bfops added bugfix Fixes something that was expected to work differently api-break release-rc1 and removed api-break labels Nov 11, 2024
bfops added a commit that referenced this pull request Nov 11, 2024
bfops added a commit to clockworklabs/com.clockworklabs.spacetimedbsdk that referenced this pull request Nov 12, 2024
## Description of Changes
We have included the packages corresponding to
clockworklabs/SpacetimeDB#1964.

## API

Fixes API breakage related to endianness.

## Requires SpacetimeDB PRs
SpacetimeDB branch name: release/v1.0.0-rc1-hotfix2

## Testsuite
SpacetimeDB branch name: release/v1.0.0-rc1-hotfix2

## Testing
CI only

---------

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: Jeremie Pelletier <jeremiep@gmail.com>
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
Co-authored-by: SteveGibson <100594800+SteveBoytsun@users.noreply.github.com>
Co-authored-by: Steve Boytsun <steve@clockwokrlabs.io>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Copy link
Contributor Author

@kazimuth kazimuth left a comment

Choose a reason for hiding this comment

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

This should be ready now @RReverser

Copy link
Member

@RReverser RReverser left a comment

Choose a reason for hiding this comment

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

Approving with one final comment.

It probably needs its own anyway, since hex string parsing doesn't check for odd length.

I think this part got missed - passing an odd-length hex string like 012 would just ignore the 2 instead of throwing an error.

The rest looks good, thanks!

@kazimuth kazimuth force-pushed the jgilles/csharp-endianness branch from 28c430a to 882bb54 Compare November 13, 2024 18:06
@kazimuth
Copy link
Contributor Author

I'm nervous about these internal test failures, I don't know what's causing them.

@gefjon
Copy link
Contributor

gefjon commented Nov 14, 2024

I'm nervous about these internal test failures, I don't know what's causing them.

These are a known issue that should hopefully be fixed by tomorrow.

Centril pushed a commit to clockworklabs/com.clockworklabs.spacetimedbsdk that referenced this pull request Nov 19, 2024
## Description of Changes
Cherrypicking the changes from
#190,
which were merged directly to `master` (by me, without thinking it
through).

## API

Fixes API breakage related to endianness.

## Requires SpacetimeDB PRs
clockworklabs/SpacetimeDB#1964

## Testsuite
SpacetimeDB branch name: master

## Testing
CI only. These changes have already been released.
@kazimuth kazimuth enabled auto-merge November 20, 2024 18:06
@kazimuth kazimuth added this pull request to the merge queue Nov 20, 2024
Merged via the queue into master with commit dee297a Nov 20, 2024
8 checks passed
@kazimuth kazimuth deleted the jgilles/csharp-endianness branch November 20, 2024 19:08
@bfops bfops added the api-break A PR that makes an API breaking change label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-break A PR that makes an API breaking change bugfix Fixes something that was expected to work differently release-rc1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants