Skip to content

Conversation

@ShadauxCat
Copy link
Collaborator

Purpose of this PR

Fixes some test failures when running against arm64:

  • Increased the timeout duration because the raspberry pi that tests were run on is quite slow and sometimes doesn't make the timeout
  • Removed booleans from structures that are created via random bytes because Arm64 doesn't handle booleans the same way as x86, and bool(1) doesn't compare as equal to bool(2) like it does on x86
  • Removed booleans from the network variable HashSet test because it created an infinite loop, because bool(1) and bool(2) DO apparently HASH to the same key on arm64, where they create different keys on x86. (This was never a valid test to begin with, because creating a hash set with 32 boolean key values is, strictly speaking, not possible, and only worked by accident on x86)

Documentation

  • No documentation changes or additions were necessary.

Testing & QA

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?

If any boxes above are checked, please add QA as a PR reviewer.

Backport

Not needed.

- Increased the timeout duration because the raspberry pi that tests were run on is quite slow and sometimes doesn't make the timeout
- Removed booleans from structures that are created via random bytes because Arm64 doesn't handle booleans the same way as x86, and bool(1) doesn't compare as equal to bool(2) like it does on x86
- Removed booleans from the network variable HashSet test because it created an infinite loop, because bool(1) and bool(2) DO apparently HASH to the same key on arm64, where they create different keys on x86. (This was never a valid test to begin with, because creating a hash set with 32 boolean key values is, strictly speaking, not possible, and only worked by accident on x86)
@ShadauxCat ShadauxCat changed the base branch from develop to develop-2.0.0 August 22, 2025 19:31
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

Thank you Kitty for fixing this issue!

:godmode:

@NoelStephensUnity NoelStephensUnity changed the title Arm64 test fixes fix: Arm64 test failures Aug 22, 2025
@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) August 22, 2025 20:03
@NoelStephensUnity NoelStephensUnity merged commit 9f17b6e into develop-2.0.0 Aug 22, 2025
25 checks passed
@NoelStephensUnity NoelStephensUnity deleted the Arm64_test_fixes branch August 22, 2025 23:10
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