Oriol Brufau
bc0c8366f8
Revert "Fix mozjs build on Windows ( #34680 )"
...
This reverts commit 11424f90b3 .
Reason: suspect for busting unit tests on MacOS (#34688 ).
2024-12-18 20:00:46 +01:00
Delan Azabani
11424f90b3
Fix mozjs build on Windows ( #34680 )
...
Signed-off-by: Delan Azabani <dazabani@igalia.com >
2024-12-18 12:57:29 +00:00
Gregory Terzian
379bbb41dd
Dom: Re-implement ReadableStream Part 1 : Default Reader and Controller ( #34064 )
...
* Re-implement readablestream: basics and default reader and controller
---------
Co-authored-by: Jason Tsai <jason@pews.dev >
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
Add remaining WebIDLs of ReadableStream (#32605 )
* Add Reader's WebIDL files
* Add necessary methods in ReadableStream.webidl
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
Create safe wrapper for JSFunctions (#32620 )
* Create safe wrapper for JSFunctions
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
* Add assert to check if the name ends in a null character
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
* Create macro to wrap unsafe extern "C" function calls
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
* Remove WRAPPER_FN
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
* Add macro example documentation
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
* Use C-string literals
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
* Ensure name is Cstr type
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
* Scope #[allow(unsafe_code)]
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com >
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
Start implementation of default controller and reader
Start implementation of default controller and reader
* implement basic internal slots, with todos
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* enum for controller
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* re-implement native controller methods
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* add calling into pull algo
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* more details on chunk enqueuing
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* add fulfill read request, clean-up warnings
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* read request and reader typing
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* allow for more than one non-native underlying source type
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* add todo for should pull
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* add underlying source dom struct container
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* remove rc around source type
* add default controller init in stream constructor
* setup source container with prototype of source dict
* clean-up docs, dispatch of controller in pull algo call
* turn off SM streams
* remove prototype setting on underlying source container
* fix read request promise resolving
* tidy
* clean-up js conversions in read req handlers
* add queue with sizes concept
* use dom in pull promise handlers
* Demonstrate using dictionary as callback this object.
* move value with size to a struct
* fmt
* put readable stream state in a cell
* nits in expectations
* remove allow unroot by passing read result directly to promise resolving
* tidy
* root default controller inside call_pull_if_needed
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Co-authored-by: Josh Matthews <josh@joshmatthews.net >
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
ReadableStream: implement Cancel and Locked (#33136 )
* implement Locked
* implement Cancel and close
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
Add GetPromiseIsHandled and SetAnyPromiseIsHandled to Promise
Signed-off-by: Taym <haddadi.taym@gmail.com >
mach fmt
Signed-off-by: Taym <haddadi.taym@gmail.com >
Readablestream default controller: get desired size (#33497 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
stream: implement controller close (#33498 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
implement stream default controller error (#33503 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Readablestream default controller: enqueue (#33528 )
* Implement ReadableStreamDefaultControllerMethods::Enqueue
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
* Add spec comments
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
---------
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
readablestream default controller: fulfill read requests (#33542 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Fix extract_size_algorithm (#33561 )
Signed-off-by: Wu Wayne <yuweiwu@pm.me >
Readablestream default controller: use strategy size (#33551 )
* readablestream default controller: use strategy size, fallible enqueue
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
docs
* readablestream default controller: clear strategy size
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* prevent potential re-borrow panics when calling into the strategy size
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* document readablestream constructor
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Readablestream: impl default controller should pull, start algo (#33586 )
* implement should-pull algo for default controller
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* add start algorithm setup for default controller
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
implement promise native handling for start and pull algorithms (#33603 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Implement ReadableStreamDefaultReader (#33160 )
* Implement ReadableStreamDefaultReader
Make the stream mutable
readable-stream-reader-generic-release
Proper error types when releasing
Closed
Cancel
Signed-off-by: Taym <haddadi.taym@gmail.com >
* follow the spec more closely
Signed-off-by: Taym <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym <haddadi.taym@gmail.com >
Implement ReadableStreamDefaultReader read (#34007 )
* Implement ReadableStreamDefaultReader read
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Perform readRequest’s error steps with stream.stored_error
Signed-off-by: Taym <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym <haddadi.taym@gmail.com >
Improve ReadableStreamDefaultReader close (#34014 )
* improve ReadableStreamDefaultReader close
Signed-off-by: Taym <haddadi.taym@gmail.com >
* remove resolve_closed_promise
Signed-off-by: Taym <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym <haddadi.taym@gmail.com >
Use Rc<Box<[u8]>> for queue to optimize get_in_memory_bytes
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Improve read_a_chunk and stop_reading implemntation (#34077 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Implement ReadableStreamDefaultReader::Constructor (#34056 )
* Implement ReadableStreamDefaultReader::Constructor
Signed-off-by: Taym <haddadi.taym@gmail.com >
* make start_reading returns ReadableStreamDefaultReader
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Fix can_gc
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Add canGc to ReadableStream::GetReader
Signed-off-by: Taym <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Readablestream fix CanGc (#34080 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* correct ReadableStream::error_native implementation and fix clippy warnings (#34088 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* turn assertion of stream present on controller on a early return with false (#34097 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix already mutably borrowed crash (#34105 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Refactor `get_in_memory_bytes` to return `Option<Vec<u8>> and avoid `unreachable!` panic (#34123 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Set ReadableStream ReadableStreamDefaultReader in start_reading (#34125 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix Unhandled rejection with value: object `TypeError: stream is not locked` (#34204 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix assert!(self.is_readable()) crash in ReadableStream::close (#34207 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix call to to_js_object in underlying source algos (#34098 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* do not assume presence of a stream when performing pull steps (#34244 )
* do not assume presence of a stream when performing pull steps
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* add doc comments
Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com >
Signed-off-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com >
Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* gracefully handle failure of underlying source algorithms (#34243 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* ensure result of calling start algo is an object (#34245 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* return js failed error if underlying source constructor threw (#34246 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Use JSVal for ValueWithSize::value (#34259 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix release reader lock, (#34255 )
fix setting stream on controller in new,
fix matching fallthrough,
reduce visibility of controller error method
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* in stream cancel, reject promist if locked (#34271 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix UnderlyingSourceContainer::call_start_algorithm (#34277 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* implement controller cancel steps, fix stream cancel method (#34301 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix conditional in perform pull steps (#34324 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* set reader closed promise to one resolved with undefined if stream closed on init (#34321 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix init of stream and controller (#34323 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Stream: Fix reborrow in controller enqueue, and fix error and exception handling. (#34338 )
* fix re-borrow in controller enqueue
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* do not call to_jsval on JSFailed error in enqueue
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* fix error and exception handling in controller enqueue
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* remove TODO about correctness of stored error, since this was done as part of the switch to a js val.
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Stream: Fix incorrect "this" object in underlying source callbacks (#34368 )
* in controller close, throw type error if stream cannot be closed
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* store original js object for underlying source, for use as this object in callbacks
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix conditional logic in enqueue to ensure pull is called into (#34375 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Stream: Fix bytelength queueing strategy (#34376 )
* fix handling of value that is not an object in bytelength queuing strategy
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* return type error if strategy size call fails, to prevent panic because no exception is pending
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* set correct default count queuing size strategy (#34389 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* use proto in stream constructor (#34441 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix edge cases in get_desired_size (#34440 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Stream: fix algo and strategy calls error handling. (#34424 )
* fix error handling in cancel steps
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* in pull steps, reject promise if pull algo throws
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* if start algorithm fails, rethrow the error
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* when the strategy size fails, directly get the pending exception and use it to error the stream
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* add error handling to enqueue value with size
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* when enqueueing a value errors, ensure we error and stream with the same error used to throw an exception
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix native use of streams (#34468 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Implement readablestreamdefaulttee (#34405 )
* Implement readablestreamdefaulttee
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Create UnderlyingSourceType::Tee each stream
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Use Dom instead of DomRoot
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Queue a microtask for readRequest chunk steps
Signed-off-by: Taym <haddadi.taym@gmail.com >
* fix create_readable_stream
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Remove unnecessary Rc
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Use correct doc link
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Add #[allow(crown::unrooted_must_root)]
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Fix crash in ClosedPromiseRejectionHandler
Signed-off-by: Taym <haddadi.taym@gmail.com >
* reflect TeeReadRequest and TeeUnderlyingSource
Signed-off-by: Taym <haddadi.taym@gmail.com >
* fix can_gc
Signed-off-by: Taym <haddadi.taym@gmail.com >
* reflect tee source, and fix use of mutable dom for tee source and request
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* Fix typo that resolves multiple test failures in 'Tee' tests
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Fix readable-streams/tee.any.js test
Signed-off-by: Taym <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Align ReadableStreamDefaultReader with spec and fix additional tests in default-reader.any.js (#34531 )
And fix crate::DomTypeHolder usage
* Align ReadableStreamDefaultReader with spec and fix additional tests in default-reader.any.js
Signed-off-by: Taym <haddadi.taym@gmail.com >
* make reader rooted in Constructor and acquire_default_reader
Signed-off-by: Taym <haddadi.taym@gmail.com >
* Remove spaces
Signed-off-by: Taym <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Streams: fetch stream chunks should be uint8 arrays (#34553 )
* fetch stream chunks should be uint8 arrays
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
* fix clippy
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
---------
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Update wpt test for ReadableStream reimplementation (#34579 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix ignore_malloc_size_of in readablestream tee (#34578 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Remove incorrect use of handle array, fail test safely by giving only one reason (#34560 )
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Update more wpt test for ReadableStream reimplementation (#34598 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix doc and rename Tee to DefaultTee (#34612 )
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix: Address review comments
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Update response-stream-with-broken-then.any.js.ini test expectation
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* fix reflect_dom_object can_gc
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Fix compositeReason for DefaultTeeUnderlyingSource (#34627 )
* Fix compositeReason for DefaultTeeUnderlyingSource
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Update test
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
---------
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
* Last fixes stream (#34636 )
* remove now unsused from_js method of readable stream
* fix documenation of error steps
* return type error instread of panicking on a todo, when trying to construct a stream of type bytes
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com >
* fix crown rooting related errors (#34662 )
Signed-off-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com >
---------
Signed-off-by: Taym <haddadi.taym@gmail.com >
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com >
Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com >
Signed-off-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com >
Co-authored-by: Wu Wayne <yuweiwu@pm.me >
Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com >
2024-12-17 21:14:00 +00:00
Martin Robinson
ee3190a7f5
tidy: Make the tidy tests pass tidy ( #34663 )
...
The issue here is mainly that some of the lines are longer than 120
characters. Just add linebreak where appropriate.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2024-12-17 10:56:18 +00:00
Mukilan Thiyagarajan
88a35b3cc9
mach: adopt uv and avoid system python ( #34632 )
...
This allows us to use `uv` for:
1. Installing a pinned Python version
2. Installing the dependency packages using `uv`'s pip compatible interface.
4. Bootstrapping `mach` without a Python installion on the host, using `uv
run`
This change also introduces a new 'composite' GitHub action to setup
python in the different CI workflows. There is no support for externally
managed python installations and virtual environments. These could be
added in the future.
Fixes #34095 , #34547
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-12-16 09:20:37 +00:00
Martin Robinson
682eba9f74
tidy: Use more cargo-deny features ( #34447 )
...
Instead of parsing the `Cargo.lock` file directly in `tidy.py`. Use
`cargo-deny`, which we already use to detect unapproved licenses in the
dependency chain to detect duplicate and banned crates. In addition,
enable all other `cargo-deny` checks and add exceptions where necessary
for them. This depends on the latest release of `cargo-deny` which
depends on a recent verison of `rust`.
Fixes #34393 .
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2024-12-13 08:47:40 +00:00
Samson
2a6986b857
Run bencher in try-full ( #34556 )
...
* Run bencher in try-full
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com >
* Fix naming
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
---------
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com >
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-12-12 09:00:48 +00:00
Mukilan Thiyagarajan
7fcde1f7a3
build: upgrade rustc to 1.81.0 ( #34270 )
...
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-12-12 07:26:16 +00:00
Josh Matthews
064569ff3c
tidy: Update pattern for checking for missing specification links. ( #34552 )
...
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
2024-12-11 13:36:57 +00:00
Josh Matthews
bc741bdc0b
Iterate PR commits in reverse (oldest->newest) when preparing WPT export. ( #34567 )
...
Signed-off-by: Josh Matthews <josh@joshmatthews.net >
2024-12-11 11:50:40 +00:00
Mukilan Thiyagarajan
2f64dde623
Revert "mach: switch to uv for managing python venv ( #34504 )" ( #34548 )
...
This reverts commit 4103421ba5 .
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-12-10 03:43:50 +00:00
Mukilan Thiyagarajan
4103421ba5
mach: switch to uv for managing python venv ( #34504 )
...
This patch switches servo to use `uv` for both installing a pinned
Python version as well as installing the dependency packages using
`uv`'s pip compatible interface. It also introduces a new 'composite'
GitHub action to setup python in the different CI workflows.
There is no support for externally managed python installations and
virtual environments. These could be added in the future.
Fixes #34095
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-12-09 14:52:06 +00:00
Samson
faefed9869
Add linux-pref job ( #33261 )
...
Job will do some performance benchmarks (Dromeo, Speedometer) and mesure binary size and will report results to bencher.dev
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
Co-authored-by: DK Liao <dklassic@gmail.com >
2024-12-06 07:32:26 +00:00
Nico Burns
e4ec84fad1
Rename 'cargo-clippy' mach command to just 'clippy' ( #34481 )
...
Signed-off-by: Nico Burns <nico@nicoburns.com >
2024-12-05 03:19:15 +00:00
Mukilan Thiyagarajan
c6d7c5785a
mach: fix logic to override paths for legacy layout ( #34467 )
...
wptrunner internally derives the path to the MANIFEST.json file from the
`metadata_path` passed via `test_paths`. The current logic overrides
only the `metadata_path`, leaving the manifest_path pointing at the
wrong (non-legacy) layout's MANIFEST.json.
In #34436 we observed that the recent WPT imports create a transient
`.cache` diretory that wptrunner logic uses for optimization. This has
not been observed until #34436 because a [recent bump in MANIFEST.json's
schema version][1] triggered the creation of the cache. Because of the
above issue with incorrect path and the fact that we *first* trigger
`mach update-wpt` for legacy layout during WPT import, the MANIFEST.json
of non-legacy layout gets incorrectly migrated during the invocation of
`update-wpt` for legacy layout but the cache is still created under
legacy-layout's path as it is not based on `manifest_path`. The
subsequent invocation of `mach update-wpt` for non-legacy finds the
MANIFEST.json already migrated so the `.cache` directory is not
constucted.
This change simply replaces the whole object using the wptrunner's
`TestRoot` class constructor so that all derived paths are calculated
correctly. We also add the `.cache` folders to gitignore as it seems
like they are expected to be created during such version migrations.
[1]: https://github.com/web-platform-tests/wpt/pull/49406
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-12-04 12:38:58 +00:00
Delan Azabani
67012a5091
Remove etc/shell.nix in favour of shell.nix ( #34336 )
...
Signed-off-by: Delan Azabani <dazabani@igalia.com >
2024-11-22 04:03:35 +00:00
Jonathan Schwender
80529ef358
Add medium profile for daily work scenario ( #34035 )
...
- The standard `dev` mode is often too slow for daily work on servo
- Increasing the optimization level to 2 improves the performance noticably.
- Build time for opt-level = 1 is slightly higher than 2 on my machine
- Reducing debug info to `line-tables-only` improves link and build times,
while still keeping relevant info for backtraces.
Also extend .servobuild to allow setting custom cargo profiles instead
of just release and dev.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
2024-11-21 11:28:15 +00:00
Jonathan Schwender
5113147f80
mach: Remove mach rustup ( #34287 )
...
We don't use the nightly toolchain anymore, so this command can be removed.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
2024-11-19 12:20:56 +00:00
Mukilan Thiyagarajan
997b6411c0
mach: run linux unit tests for 'full' try jobs ( #34272 )
...
Windows and Mac have unit tests enabled when triggered via 'full'
alias but they are disabled on Linux which is confusing.
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-11-18 08:23:46 +00:00
Jonathan Schwender
f71f38bd3d
mach: Fix notifications on windows 11 ( #34266 )
...
Bumps notify-py to the latest version v0.3.43.
Release notes: https://github.com/ms7m/notify-py/releases/tag/v0.3.43
This fixes notifications on windows 11.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
2024-11-17 10:54:15 +00:00
Jonathan Schwender
0d2ce68d50
mach: ohos: Print error message when hvigor fails ( #34267 )
...
`hvigorw --version` might fail if some required environment variables
are not set. In this case we should print the output of the command,
so that the user can report what caused `hvigorw --version` to fail.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
2024-11-17 10:53:41 +00:00
Jonathan Schwender
538ac61a82
ohos: Add basic IME and keyboard support ( #34188 )
...
* ohos: Add basic IME and keyboard support
- Add extremely basic support for keyboard events
- Add basic IME support
- Showing and hiding the IME
- inserting text
- deleting characters
- very basic configuration of the IME
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
* Apply suggestions from code review
Improve the log message
Co-authored-by: Josh Matthews <josh@joshmatthews.net >
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com >
* Update ports/servoshell/egl/ohos.rs
Co-authored-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com >
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com >
* ohos: Bump the minimum required SDK version to 5.0
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
* ohos: Remove pub from callbacks
The callbacks don't need to be public, as we will be registering them.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
* Rename composition event
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
* ohos: clippy in log
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
* ohos: address some clippy warnings
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
* ohos: Raise Error in mach if unsupported SDK version is used.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
* Add keyboard-types dependency for android
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
---------
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com >
Co-authored-by: Josh Matthews <josh@joshmatthews.net >
Co-authored-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com >
2024-11-15 15:04:48 +00:00
Jonathan Schwender
c64d5e9d30
mach bootstrap: Lock cargo-deny to 0.16.1 ( #34258 )
...
As mentioned in https://github.com/servo/servo/pull/34257
we should also lock the cargo-deny version in mach bootstrap.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
2024-11-15 12:57:40 +00:00
Samson
5423e622ed
Allow tidy to pass without support/crown/target ( #34212 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-11-11 16:07:05 +00:00
Samson
39ef61c324
Exclude crown from the root Cargo workspace ( #34173 )
...
* Exclude crown from workspace
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
* Update shell.nix and remove filterlock
Signed-off-by: Delan Azabani <dazabani@igalia.com >
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
Signed-off-by: Delan Azabani <dazabani@igalia.com >
Co-authored-by: Delan Azabani <dazabani@igalia.com >
2024-11-08 10:08:49 +00:00
Delan Azabani
cbfcd68bcc
CI: use new intermittent-tracker deployment ( #34068 )
...
* CI: use new intermittent-tracker deployment
Signed-off-by: Delan Azabani <dazabani@igalia.com >
* Plumb new secrets into linux-wpt.yml environment
Signed-off-by: Delan Azabani <dazabani@igalia.com >
* Print effective dashboard URL in WPT runner
Signed-off-by: Delan Azabani <dazabani@igalia.com >
---------
Signed-off-by: Delan Azabani <dazabani@igalia.com >
2024-11-04 10:42:26 +00:00
Jonathan Schwender
0759dde11b
ohos: Fix mach build on windows hosts ( #34113 )
...
With the latest release (5.0) of the OpenHarmony SDK
libclang.dll is now available and we can support
building for OpenHarmony from windows hosts.
Other changes required for building OH on windows:
- We can't use the `<target_triple>-clang` wrappers, since
those are bash scripts, which fails on windows when cc-rs
tries to directly call them. However, we already pass all
the required flags the wrapper script would set, so this
is not an issue.
- We need to use posix paths, otherwise the sysroot parameter
will not be applied correctly (by bindgen). It seems to only
cause issues with bindgen in practice, possibly because
bindgen interprets the path with
[`shlex::split`](8a6d851318/bindgen/lib.rs (L312C27-L312C40) )
which presumably causes the issues with windows paths.
To be consistent I decided to use posix paths for all paths.
- Fix checks for copying dlls. We need to check the target OS,
not the host OS when determining what libraries to copy.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
2024-11-02 16:08:19 +00:00
Samson
cf66330978
Fix test-speedometer ( #34072 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-10-30 17:59:15 +00:00
Jonathan Schwender
bac1101163
Fix CMake issues on OpenHarmony ( #34062 )
...
- We should use the CMake version from the NDK
- ignore errors from unused commandline parameters,
which can easily happen due to --gcc-toolchain, which is added by the
default CMake code when compiling with Clang.
- Previously servo didn't have any CMake dependency projects anymore,
so these issues didn't surface.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
2024-10-30 04:40:59 +00:00
tanishka
884732dfb2
mach try: Remove wpt-2013 from full and wpt ( #34048 )
...
* Remove wpt-2013 from full and wpt
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com >
* Keep layout2020 without unit_tests
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com >
---------
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com >
2024-10-28 18:56:26 +00:00
Samson
f4ff067387
chore: Update WebGPU CTS ( #33990 )
...
* chore: Update WebGPU CTS
d473d09475
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
* Update expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
* Allow multiple process testing for CTS
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-10-26 09:47:31 +00:00
chickenleaf
1ae90dcd95
clippy: Fix a variety of clippy warnings in fonts, layout_2020 and the DOM code ( #33894 )
...
* fixed some clippy warnings
Signed-off-by: L Ashwin B <lashwinib@gmail.com >
* Delete extra file
Signed-off-by: chickenleaf <lashwinib@gmail.com >
* preserved newline in compositionevent.rs
Co-authored-by: Martin Robinson <mrobinson@igalia.com >
Signed-off-by: chickenleaf <lashwinib@gmail.com >
* removed the newline in PrototypeList
Signed-off-by: L Ashwin B <lashwinib@gmail.com >
* removed the trailing whitespace
Signed-off-by: L Ashwin B <lashwinib@gmail.com >
---------
Signed-off-by: L Ashwin B <lashwinib@gmail.com >
Signed-off-by: chickenleaf <lashwinib@gmail.com >
Co-authored-by: Martin Robinson <mrobinson@igalia.com >
2024-10-18 13:57:13 +00:00
Mukilan Thiyagarajan
febe7de0bf
ohos: publish nightly builds ( #33801 )
...
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-10-11 10:11:51 +00:00
Gae24
bd27e64cd8
fix possible IndexError ( #33750 )
...
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com >
2024-10-10 09:49:24 +00:00
Jonathan Schwender
78370fa6d0
Fix mach run bustage ( #33563 )
...
Move `--flavor` to a new "Packaging options" group, so that
we can only apply the flavor option to the commands that support it.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
2024-09-27 06:11:57 +00:00
Jonathan Schwender
7fdaccde55
ohos: Support product flavors ( #33512 )
...
* ohos: Support product flavors
Support different product flavors (e.g. with different signing
configurations) by supporting --flavor on ohos.
The flavor influences the package path for OH packages, so
allow the flavor parameter on build + package + install
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* Fix smoketest
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
---------
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
2024-09-26 06:58:30 +00:00
Jonathan Schwender
88ffe9f7a5
ohos: Bundle resource files in hap ( #33513 )
...
Bundle resource files into the .hap, so they are available
as files in the application sandbox, instead of included
into the shared library.
This should slightly reduce the binary size in debug and
release mode.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
2024-09-24 04:29:53 +00:00
Mukilan Thiyagarajan
157e28c59b
openharmony: add servoshell for ohos ( #33295 )
...
* openharmony: add servoshell for ohos
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
* ohos: handle missing signing config on forks
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
---------
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-09-20 08:20:27 +00:00
Mukilan Thiyagarajan
ea109d5490
android: publish nightly builds for aarch64 ( #33435 )
...
* android: publish nightly builds for aarch64
Publish the aarch64 apk and aar packages to both Github Releases
and S3 so that it can be linked from servo.org.
The focus is on getting a working version of the APK on the homepage,
so few issues are resolved with temporary solutions:
1) We publish the "release" profile instead of "production" since the
latter will need changes in the gradle configuration (the changes
required was previously blocked on #32720 which is now closed).
2) The scheme for the version code is simple and doesn't consider
other factors such as API level and product variants discussed in the
Android docs (https://developer.android.com/google/play/publishing/multiple-apks#VersionCodes )
This should be fine for now as we don't publish to any store yet.
The change also makes it so that the 'Release nightly' workflow will
endup building all 4 variants for the Android target, but only aarch64
is uploaded. This is because GH Actions doesn't have a good way to skip
a specific job in a matrix and the additionally code complexity needed
to acheive it (either generating a JSON dynamically in a new job and using
`fromJSON` in the matrix definition or skipping each individual step
based on matrix.target and `inputs.upload`) didn't seem worth the cost
saved (this is executed only once a day).
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
* android: add attestation for nightly build artifacts
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
---------
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-09-16 11:45:04 +00:00
Jonathan Schwender
f8ca5c3194
Fix packaging when cross compiling ( #33454 )
...
We need to check the compilation target,
not the host platform.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
2024-09-14 08:42:03 +00:00
Jonathan Schwender
b42f5eaa17
mach: remove python2 compatibility code ( #33410 )
...
* util.py: Remove six
We don't need to support python2 anymore, so we can just use
`str(x)` instead of `six.ensure_str(x)`
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* config.py: Remove six
We don't need to support python2 anymore, so we can just use
`str(x)` instead of `six.ensure_str(x)`
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* main.py: Remove six
We don't need to support python2 anymore, so we can just use
`str(x)` instead of `six.ensure_str(x)`
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* main.py: Fix `--settings` being ignored
Previously `paths` was unused in this function,
and the usage for the settings_file would have no effect.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* terminal.py: Remove `six`
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* registrar.py: Remove `six`
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* mach/util.py: Remove `six`
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
* mach: Remove python2 from the list of programming languages
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
---------
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
2024-09-11 18:25:25 +00:00
Gae24
68246df89e
fix clean-cargo-cache command ( #33408 )
...
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com >
2024-09-11 17:32:01 +00:00
Mukilan Thiyagarajan
52a447b1e3
android: make aarch64 the default target ( #33379 )
...
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com >
2024-09-09 14:38:01 +00:00
Martin Robinson
e70507ca40
tidy: Fix rustdoc warnings and add a tidy check for a common URL issue ( #33366 )
...
This change fixes all rustdoc errors and also adds a tidy check for a
very common rustdoc URL issue. Eventually rustdoc warnings should likely
cause the build to fail, but this catches those issues sooner in order
to not waste so much developer time.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2024-09-08 15:04:19 +00:00
Jonathan Schwender
c9548d82ef
bootstrap: Avoid needless sudo when pkgs are installed ( #33281 )
...
- Previously on fedora `./mach bootstrap` would always detect it needs to
reinstall packages and require root permissions.
- use custom queryformat for `rpm -qa` to to just get the package name
(e.g. `openssl-libs` instead of `openssl-libs-3.2.2-3.fc40.i686`
- Use a list to store the output result instead of one string
- Fedora (40) installs `zlib-ng` instead of `zlib` and `libjpeg-turbo` instead
of `libjpeg`, meaning that `rpm` / dnf commands report `zlib` as not installed.
Specifying the actually installed package avoids this problem.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com >
2024-09-02 06:56:38 +00:00
Jonathan Schwender
35ca050bfb
android: Fix install ( #33277 )
...
self.config["android"]["target"] is unset, causing an exception.
We can just use self.target.triple() instead.
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com >
2024-09-01 20:17:34 +00:00
Samson
8dd40ed2bd
mach: Add test-speedometer command and --bmf-output to speedometer and dromaeo ( #33247 )
...
* Allow exporting Dromaeo results as BMF JSON
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
* Add speedometer runner
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2024-08-29 15:58:57 +00:00
Martin Robinson
65c2e75379
ci: Fix the WPT export job after the repository change ( #33228 )
...
The GitHub search API is a bit sensitive. There isn't a great way to
search for the repository organization and the branch name when looking
for open PRs. Instead use the bot username as the author name, which
should likely have been having before. This fixes the WPT export job.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2024-08-29 09:26:04 +00:00
Samson
fe44010000
mach: Extract binary select into common_command_arguments ( #33205 )
...
* Extract binary select into common_command_arguments
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
* fixups
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
* Small English edit
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
Co-authored-by: Martin Robinson <mrobinson@igalia.com >
2024-08-28 12:07:02 +00:00
Martin Robinson
b29b614775
ci: Use Servo's wpt repository for WPT export ( #33224 )
...
This switches the WPT export script to use Servo's fork the `wpt`
upstream repository. The reasoning is that Servo developers's can fix
issues with branches there. This isn't possible because no one has
permissions to the servo-wpt-sync fork of the repository.
I have given `servo-wpt-sync` write persmissions to `servo/wpt`.
This also updates the tests a bit to reflect the new default repository.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2024-08-28 11:29:51 +00:00