|
|
Created:
6 years, 9 months ago by Scott Hess - ex-Googler Modified:
6 years, 9 months ago Reviewers:
Tom Sepez CC:
chromium-reviews Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionTest for golden version-7 safe-browsing file.
Test that a golden version 7 file can be read and updated, in preparation for
version 8.
BUG=351448
Patch Set 1 #Patch Set 2 : Only test reading v7 golden file on little-endian platforms. #Patch Set 3 : golden file checked in at r259663 #Patch Set 4 : Update to no-space version. #Patch Set 5 : rebase to drop the (already landed) binary file. #Messages
Total messages: 18 (0 generated)
I was nervous that a golden file wouldn't work, because cross-platform format compatibility was a non-goal, but ... trybots pass. I guess it would be easy enough to layer in alternate versions if appropriate.
LGTM. The one place I imagine this would break is if we had a big-endian port. If you see a byte-reversed magic number, you might consider bailing.
On 2014/03/26 18:56:06, Tom Sepez wrote: > LGTM. The one place I imagine this would break is if we had a big-endian port. > If you see a byte-reversed magic number, you might consider bailing. It seems safe to assume that the only v7 writers will be little-endian, so I modified to only compile the test under ARCH_CPU_LITTLE_ENDIAN. Does that seem reasonable?
On 2014/03/26 19:27:37, shess wrote: > On 2014/03/26 18:56:06, Tom Sepez wrote: > > LGTM. The one place I imagine this would break is if we had a big-endian > port. > > If you see a byte-reversed magic number, you might consider bailing. > > It seems safe to assume that the only v7 writers will be little-endian, so I > modified to only compile the test under ARCH_CPU_LITTLE_ENDIAN. Does that seem > reasonable? SGTM.
NOTE: you may want to split this into two CLs: one that contains the golden file, and one that tests against it. You can then dcommit the first one (to get around CQ binary bogosity), and CQ the second.
On 2014/03/26 19:31:34, Tom Sepez wrote: > NOTE: you may want to split this into two CLs: one that contains the golden > file, and one that tests against it. You can then dcommit the first one (to get > around CQ binary bogosity), and CQ the second. Thanks for the reminder, I totally forgot about the binary-checkin issues.
The CQ bit was checked by shess@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/211363005/80001
The CQ bit was unchecked by ernstm@google.com
The CQ bit was checked by shess@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/211363005/100001
The CQ bit was unchecked by commit-bot@chromium.org
Failed to request the patch to try. Please note that binary files are still unsupported at the moment, this is being worked on. Thanks for your patience. Transient error: Can't process patch for file chrome/test/data/SafeBrowsing/FileStoreVersion7. Binary file is empty. Maybe the file wasn't uploaded in the first place?
On 2014/03/27 22:15:10, I haz the power (commit-bot) wrote: > Failed to request the patch to try. Please note that binary files are still > unsupported at the moment, this is being worked on. > > Thanks for your patience. > > Transient error: Can't process patch for file > chrome/test/data/SafeBrowsing/FileStoreVersion7. > Binary file is empty. Maybe the file wasn't uploaded in the first place? OK, that's fair. I had run trybots on it and wondered "Maybe it's only a limitation of patching binary files."
The CQ bit was checked by shess@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/211363005/120001
On 2014/03/28 00:21:58, I haz the power (commit-bot) wrote: > CQ is trying da patch. Follow status at > https://chromium-status.appspot.com/cq/shess@chromium.org/211363005/120001 Sheriffs - I'm making the executive decision not to spend three days clicking the commit-queue button. dcommit it is. AFAICT, the c-q jobs all worked, previous try jobs all worked. The win_swarm_triggered failure looks completely unrelated...
Message was sent while issue was closed.
On 2014/03/28 16:27:49, shess wrote: > On 2014/03/28 00:21:58, I haz the power (commit-bot) wrote: > > CQ is trying da patch. Follow status at > > https://chromium-status.appspot.com/cq/shess@chromium.org/211363005/120001 > > Sheriffs - I'm making the executive decision not to spend three days clicking > the commit-queue button. dcommit it is. AFAICT, the c-q jobs all worked, > previous try jobs all worked. The win_swarm_triggered failure looks completely > unrelated... Manually closed because my git cl dcommit hung for 45 minutes and I killed it. |