chenBright commented on code in PR #3754:
URL: https://github.com/apache/brpc/pull/3754#discussion_r4729429478
##########
test/crc32c_unittest.cc:
##########
@@ -61,6 +141,32 @@ TEST_F(CRC, Extend) {
Extend(Value("hello ", 6), "world", 5));
}
+TEST_F(CRC, ChunkIndependence) {
+ if (IsBigEndianArm64()) {
+ GTEST_SKIP() << "Big-endian ARM64 preserves legacy software CRC32C path";
+ }
Review Comment:
Skipping the standard reference values helps preserve historical behavior on
big-endian systems, but there is no test here verifying the value that needs to
be preserved. If `DecodeFixed32` were reverted to the previous implementation,
`fast_is_on` would return the same result, and all five tests would still be
skipped. Consider adding a test specifically for real big-endian ARM64: align
`0a 06 00 00 00 00 00 00` to 16 bytes, pass it to `Extend` in a single call
with seed `0`, and assert the historical result from the merge base. This
vector would directly catch the rolling-upgrade regression from the previous
implementation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]