Skip to content

Commit

Permalink
chore: bump @dcl/scene-explorer-tests (#172)
Browse files Browse the repository at this point in the history
* upload updated imports
bump @dcl/scene-explorer-tests
fix: support more than 63 promises for PromiseUtils.async_all

* fix format
upload new test snapshots
  • Loading branch information
leanmendoza authored Jan 19, 2024
1 parent 0a70039 commit 62bed1a
Show file tree
Hide file tree
Showing 34 changed files with 58 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
mkdir -p tests/server
cd tests/server
npm init -y
npm install @dcl/scene-explorer-tests@1.0.0-20240112171553.commit-12b6151
npm install @dcl/scene-explorer-tests@1.0.0-20240119191744.commit-84cbba8
sed -i 's|https://decentraland.github.io/scene-explorer-tests/|http://localhost:7666/|g' node_modules/@dcl/scene-explorer-tests/static/scene-explorer-tests/about
npm i -g http-server
http-server node_modules/@dcl/scene-explorer-tests/static -p 7666 &
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="0b8c831fb62f32db8b904fd4ba325d55"
dest_md5="f73ad9a47aff7a32ce84355d1a7bf08e"
source_md5="8c49cf445b583bea66133a27b72bea5f"
dest_md5="197ac2b3ae096db1be8f22635059eb2f"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="cabfbc5c01966744e247165878f00fb3"
dest_md5="b1f4471f46b5876d33767a25342f80f3"
source_md5="0147e056f1bc98ca1717ae4ccc7fdc7d"
dest_md5="578feedb48d03c5e57df955d2abe5722"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="5ef0a381fc199464c1c4488eceeedcfd"
dest_md5="265944599a640ad9600d01b05671d31c"
source_md5="bffe668e76e4b216af8302c89c79ae98"
dest_md5="e455e231a37c9de6f3469c7960ce0965"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="b6ce2927fbd3508e329329a410195a88"
dest_md5="60b4806fa0bc4ac17a0912fdf50fce1b"
source_md5="2ccc36c078da02bac284b13955f90996"
dest_md5="3722ee270abaf7cb43aadbc11df385fd"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="cbc6587945825e93268356446a0f7fa1"
dest_md5="41de72dcfba4304d36df5dcf10f34f59"
source_md5="5837fcf09874e873b5ee1a20634af9ef"
dest_md5="97a2f9ecd302b51c220cba55e25de10d"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="9a2c4a4ae52e5319d4b1336955f82d0c"
dest_md5="396a848cd380208cbc833fb8f5ad3ea7"
source_md5="743a9a2e5264b6a9336968114cc95fb0"
dest_md5="9e3ac78c243dc957cc4f77fcd36f80df"

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="f4d8ed36e7ed8a583b6a4bdceca8fec5"
source_md5="d6d8b3a9bf9d05336be09aa0081eb12a"
dest_md5="67f3242dde6ec2aad3bd56567c3c4bc4"

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="229aa439ca0201b08f17454a7a275bc2"
source_md5="d1bef114050e4b1122e243fa00ccb297"
dest_md5="0ef556fe86b8038b55e6782df2aff0db"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="2b407ce0ca189a67996528ea87d8d6cd"
dest_md5="727574fa8c02fafe073bb52fa2b99fa7"
source_md5="a53ba40d920014db3bcb49e71ec5f0a8"
dest_md5="692aeb68acc1202f06625e8ad2e489c9"

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="a60eec1fa113a1bb2ee5d98ba379159b"
dest_md5="8ebfe4c213409df02a9dadf2cd2785a7"
source_md5="10288887d83794568403483775d48969"
dest_md5="b669252717f62ce5e20e20da10a03051"

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="af0ec535438fd5bd07d57b30f27f1e29"
source_md5="930c120f51faf19f22fe863815eff566"
dest_md5="f1fd2ee8a55159b2b6dd25e6c24afeb2"

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="e4540110c9d46a9b0cc8fdfa72c0f30e"
source_md5="bf90097c75ae45f2b1f1093bf57696d5"
dest_md5="dd2a962bc5f90351ca8e7632a9d6e875"

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="433f85d29bb0276e9e1aca6197657f74"
source_md5="4c2cbdc906eb3e3a35912c6a5722de2d"
dest_md5="21d805619be2f1cbf4f6314bb5405e1b"

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="9aa87cb9e8fdbe905b625bd9b3b6dc29"
source_md5="7c00fd78ec56758b4f3902a8096d3aac"
dest_md5="226c55a60988da0309f19799c99cacdb"

Binary file modified godot/.godot/uid_cache.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion godot/src/decentraland_components/avatar.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,8 @@ emission_shape = 3
emission_box_extents = Vector3(0.1, 0, 0.1)
direction = Vector3(0, 0, 0)
spread = 90.0
gravity = Vector3(0, 0.1, 0)
initial_velocity_max = 0.2
gravity = Vector3(0, 0.1, 0)
radial_accel_min = 0.5
radial_accel_max = 1.0
damping_max = 0.85
Expand Down
35 changes: 34 additions & 1 deletion godot/src/utils/promise.gd
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,36 @@ class AllAwaiter:
_promise.resolve_with_data(results)


class AllAwaiterEx:
var results: Array = []
var resolved: Array = []
var _mask: int
var _promise: Promise = Promise.new()

func _init(funcs: Array) -> void:
var size := funcs.size()
if size == 0: # inmediate resolve, no funcs to await...
_promise.resolve()
return

resolved.resize(size)
resolved.fill(false)
results.resize(size)
results.fill(null) # by default, the return will be null
for i in size:
_async_call_func(i, funcs[i])

func _async_call_func(i: int, f) -> void:
@warning_ignore("redundant_await")
var promise = await PromiseUtils._Internal.async_call_and_get_promise(f)
var data = await PromiseUtils.async_awaiter(promise)
results[i] = data
resolved[i] = true

if not resolved.has(false) and not _promise.is_resolved():
_promise.resolve_with_data(results)


class AnyAwaiter:
var _promise: Promise = Promise.new()

Expand Down Expand Up @@ -133,7 +163,10 @@ class RaceAwaiter:
static func async_all(funcs: Array) -> Array:
if funcs.is_empty():
return []
return await PromiseUtils.async_awaiter(AllAwaiter.new(funcs)._promise)
if funcs.size() < 64:
return await PromiseUtils.async_awaiter(AllAwaiter.new(funcs)._promise)

return await PromiseUtils.async_awaiter(AllAwaiterEx.new(funcs)._promise)


# `async_any` is a static function similar to `async_all`, but it resolves as soon as any of the
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 62bed1a

Please sign in to comment.