-
Notifications
You must be signed in to change notification settings - Fork 154
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
How to get CI tests running on MacOS? #687
Comments
This seems like it might be a problem with rollup? Although I don't know what would make it platform-dependent. These are probably the lines that it's referring to: https://github.com/tc39/proposal-temporal/blob/main/polyfill/lib/timezone.mjs#L20-L21 |
One weird thing is that ecmascript.mjs imports regex.mjs twice, with different names:
proposal-temporal/polyfill/lib/ecmascript.mjs Line 1549 in 90e454f
Is there any reason for this duplication, or is this just a bug? BTW, I replaced one of these with an alias and this seemed to fix the problem above. Now I see this error below, repeated 100s of times, all with the same complaint about node internals being undefined.
Looks like this may be related to Node setup. I'll try to reinstall Node and see if it helps. |
Yes, I'm pretty sure this is a bug. As for the other error — I'm pretty sure that |
Yep that was it.
When I get a chance, I'll send a PR for this and for the double-import in ecmascript.mjs. |
Hmm, while backing out all the other changes I tried that didn't help, I found one more change required to get test262 working in my environment. The problem is const OFFSET = new RegExp(`^${PARSE.offset.source}$`); I tried two possible fixes. Both worked. Got a preference for which one I should to include in a "fix MacOS tests" PR?
Here's the full failure:
|
It seems like (1) would be simpler. |
False alarm. Problem turned out to be a rollup bug introduced 2 days ago and fixed today. Before figuring that out, I ended up doing the work to upgrade and verify all build-time dependencies, so I'll PR a dep upgrade too while I'm in the neighborhood. |
Fixes tc39#687 which prevented Test262 tests from running in my MacOS/Node14 environment. - if MacOS, use sysctl instead of nproc in ci_test.sh - defend against undefined `globalThis.__coverage__`
Fixes #687 which prevented Test262 tests from running in my MacOS/Node14 environment. - if MacOS, use sysctl instead of nproc in ci_test.sh - defend against undefined `globalThis.__coverage__`
I've been trying to get CI tests running on my Mac so that I can run
npm test
on the root Temporal package. I managed to unblock a few steps, but I'm stuck on Test262 throwing this exception below. Does this look familiar? I have Node 14 installed if that's relevant. Otherwise it's a pretty plain-vanilla MacOS environment.BTW, here's the commands that I needed to run to get it to run. Leaving this here as bread crumbs for the next victim.
python3 -m pip install --upgrade pip
python3 -m pip install virtualenv
pip install ijson
nproc
doesn't exist in MacOS, so I changed this code inside ci_test.sh:The text was updated successfully, but these errors were encountered: