-
Notifications
You must be signed in to change notification settings - Fork 893
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
NTP Sponsored Images schemaVersion support #4433
Conversation
…ersion field value of 1
? std::to_string(*incomingSchemaVersion) | ||
: "missing") << | ||
", but we expected " << kExpectedSchemaVersion; | ||
images_data_.reset(nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: images_data_.reset()
also works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have a unit test failure (test crashed):
https://ci.brave.com/job/brave-browser-build-pr/job/ntp-sbw-schema-version/1/execution/node/498/log/
01:31:10 [71/842] NTPSponsoredImagesServiceTest.BasicTest (0 ms)
01:31:10 [ RUN ] NTPSponsoredImagesServiceTest.InternalDataTest
01:31:10 [22069:22069:0127/083109.784849:2870384399:ERROR:ntp_sponsored_images_service.cc(135)] Incoming NTP Sponsored images component data was not valid.Schema version was missing, but we expected 1
01:31:10 ../../brave/components/ntp_sponsored_images/browser/ntp_sponsored_images_service_unittest.cc:45: Failure
01:31:10 Expected: (data) != (nullptr), actual: NULL vs (nullptr)
01:31:10 Stack trace:
01:31:10 #0 0x55ec45888c79 (/home/ubuntu/jenkins/workspace/_build-pr_ntp-sbw-schema-version/src/out/Release/brave_unit_tests+0x4ab9c78)
01:31:10
01:31:10 Received signal 11 SEGV_MAPERR 000000000068
01:31:10 #0 0x55ec45888c79 (/home/ubuntu/jenkins/workspace/_build-pr_ntp-sbw-schema-version/src/out/Release/brave_unit_tests+0x4ab9c78)
01:31:10 r8: 0000000000000000 r9: 00007f68d74d4c80 r10: 7365745f74696e75 r11: 0000000000000000
01:31:10 r12: 00003b355deaf918 r13: 00003b355dfb9730 r14: 00007fffa7d24780 r15: 00003b355deaf980
01:31:10 di: 0000000000000000 si: 00003b355dd5acc0 bp: 00007fffa7d246f0 bx: 00003b355e0cc980
01:31:10 dx: 0000000000000002 ax: 0000000000032520 cx: 00003b355dd5acc8 sp: 00007fffa7d246f0
01:31:10 ip: 000055ec458ba3d4 efl: 0000000000010202 cgf: 0000000000000033 erf: 0000000000000004
01:31:10 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000068
01:31:10 [end of stack trace]
01:31:10 Calling _exit(1). Core file will not be generated.
01:31:10 [72/842] NTPSponsoredImagesServiceTest.InternalDataTest (CRASHED)
Fixed above test failure :) |
CI ran into |
NTP Sponsored Images schemaVersion support
NTP Sponsored Images schemaVersion support
Only accepts remote component with known
schemaVersion
of 1Fix brave/brave-browser#7923
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.