raulcd commented on PR #43906:
URL: https://github.com/apache/arrow/pull/43906#issuecomment-2329337002
I've been able to have the test passing locally for the NodeDriver with this
(and some other minor changes):
```diff
diff --git a/python/scripts/run_emscripten_tests.py
b/python/scripts/run_emscripten_tests.py
index 53d3dd5..550e1a0 100644
--- a/python/scripts/run_emscripten_tests.py
+++ b/python/scripts/run_emscripten_tests.py
@@ -19,6 +19,7 @@
import argparse
import contextlib
import http.server
+import json
import os
import queue
import shutil
@@ -153,7 +154,8 @@ class NodeDriver:
self.execute_js(
f"""
const {{ loadPyodide }} = require('{dist_dir}/pyodide.js');
- let pyodide = await loadPyodide();
+ let pyodide = await loadPyodide({json.dumps({"env":
{"PARQUET_TEST_DATA": "/test-data"}})});
+ pyodide.mountNodeFS("/test-data",
"{os.environ.get("PARQUET_TEST_DATA")}");
"""
)
```
but the test still fails for the ChromeDriver, I tried a couple of things,
like:
```diff
@@ -203,7 +205,12 @@ class BrowserDriver:
self.driver.set_script_timeout(100)
def load_pyodide(self, dist_dir):
- pass
+ self.driver.execute_async_script(
+ f"""
+ let pyodide = await loadPyodide({json.dumps({"env":
{"PARQUET_TEST_DATA": "/test-data"}})});
+ pyodide.mountNodeFS("/test-data",
"{os.environ.get("PARQUET_TEST_DATA")}");
+ """
+ )
```
but this just crashes, so I am not sure how to do the mount for the
ChromeDriver.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]