-
Notifications
You must be signed in to change notification settings - Fork 38
Complete StarlingMonkey SDK Tests #807
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,9 +228,7 @@ bool RequestOrResponse::process_pending_request(JSContext *cx, FastlyHandle hand | |
} | ||
|
||
bool RequestOrResponse::is_instance(JSObject *obj) { | ||
return Request::is_instance(obj) || Response::is_instance(obj) || | ||
SimpleCacheEntry::is_instance(obj) || KVStoreEntry::is_instance(obj) || | ||
CacheEntry::is_instance(obj); | ||
return Request::is_instance(obj) || Response::is_instance(obj) || KVStoreEntry::is_instance(obj); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now, the js-compute-runtime build does not test its own debug build for the SDK tests, and I originally added these to the StarlingMonkey port fix assertions that were failing for the debug build, but it turns out it changes streaming behaviour which was the root cause of the remaining test. Thus switching from the debug build to the release build and reverting these changes was the required fix. We should follow-up with a separate PR to reenable debug builds for the SDK tests, where we should then fix the assertions both for the existing runtime and the StarlingMonkey port. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah ok. Thanks! |
||
} | ||
|
||
uint32_t RequestOrResponse::handle(JSObject *obj) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -548,7 +548,6 @@ bool CacheEntry::body(JSContext *cx, unsigned argc, JS::Value *vp) { | |
// options parameter is optional | ||
// options is meant to be an object with an optional `start` and `end` fields, both which can be | ||
// Numbers. | ||
dump_value(cx, options_val, stdout); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like a log that was included previously as an oversight. |
||
if (!options_val.isUndefined()) { | ||
if (!options_val.isObject()) { | ||
JS_ReportErrorASCII(cx, "options argument must be an object"); | ||
|
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.
This adds the WPT test suite to CI, but disabled for now as there are still 100 tests failing. Will post fixes in a follow-up.