-
Notifications
You must be signed in to change notification settings - Fork 532
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
[CI] browser-test are broken #1248
Comments
on my local machine test passes but needs >3GB or RAM. so likely more memory would help. |
I see other people had this issue, but no clue how they ended up resolving it It looks like the webpack invocation by karma is the problematic step. |
I don't see anything obvious, but it's probably a version dependency issue... I'm trying to repo locally and see what I can find. |
our test suite is getting a little out of hand... |
The brower tests use quite some tools and start chrome. That's massive compared to simply running a node process for node.js tests. With that in mind 3-4GB doesn't seem that high. |
seems like it recovered, latest run in #1246 was green. |
I've managed to repo locally and I have the linked PR to fix (hopefully) on GitHub action (marked as draft until it passes) |
Test as now passing so I've marked the PR as ready for review. I've also checked again locally (based on the latest #1264 pass being green) and I can still repo locally, without the changes I have in the PR. |
Some more input
webpack.config.js
|
Another thing I just discovered - if I remove the
|
My quest continues... As I wrote before, the issue comes from @jsdevtools/coverage-istanbul-loader Which is a dependency in our repo:
If I look at the dependency of this package, I find that it has a caret dependency on
This package released a new version I guess this new There is no CHANGELOG for it, but these are the things that changed in code. Looks like it added some decoding which might be to related to memory consumption: var decodeBase64;
if (typeof Buffer !== 'undefined') {
if (typeof Buffer.from === 'function') {
decodeBase64 = decodeBase64WithBufferFrom;
} else {
decodeBase64 = decodeBase64WithNewBuffer;
}
} else {
decodeBase64 = decodeBase64WithAtob;
}
function decodeBase64WithBufferFrom(base64) {
return Buffer.from(base64, 'base64').toString();
}
function decodeBase64WithNewBuffer(base64) {
if (typeof value === 'number') {
throw new TypeError('The value to decode must not be of type number.');
}
return new Buffer(base64, 'base64').toString();
}
function decodeBase64WithAtob(base64) {
return decodeURIComponent(escape(atob(base64)));
} |
fixed in #1264 |
see e.g.
https://github.com/open-telemetry/opentelemetry-js-contrib/actions/runs/3312465704/jobs/5469167967
https://github.com/open-telemetry/opentelemetry-js-contrib/actions/runs/3312081248/jobs/5468319602
Not sure if more memory would help here.
The text was updated successfully, but these errors were encountered: