Commit 8e82ea0
committed
fix(ci+android): restore the full harness suite; non-blocking legacy VMI getter
- expo57-example/jest.config.js scoped its roots to ../example/src,
which silently dropped ~20 on-device suites (all of example/__tests__,
including this PR's e2e guards) from every harness job. Widen the
root to ../example so the full shared suite runs against the Expo
app, per the config's own stated intent.
- Replace the legacy Android getViewModelInstance main-hop
(runBlocking(Dispatchers.Main.immediate), added earlier on this
branch) with a main-thread-maintained @volatile snapshot: off-main
callers get the last snapshot and schedule a refresh — eventually
consistent, which suits the polling consumers (the async hook's ref
path, harness waitFor loops). runBlocking JS→main can deadlock if the
main thread ever waits on JS under the legacy bridge, and is the
prime suspect in the android-legacy harness job timing out on all
three attempts; the hazard is real regardless of that verdict.1 parent 8859f66 commit 8e82ea0
3 files changed
Lines changed: 30 additions & 12 deletions
File tree
- android/src/legacy/java/com
- margelo/nitro/rive
- rive
- expo57-example
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
126 | 121 | | |
127 | 122 | | |
128 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
| |||
176 | 186 | | |
177 | 187 | | |
178 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
179 | 200 | | |
180 | 201 | | |
181 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
0 commit comments