| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
|
@avivkeller what's the latest version of doc-kit atm? Also tests failing 🤔 |
Sorry, something went wrong.
1.3.3
Flaky tests, unrelated to doc-kit. |
Sorry, something went wrong.
Will this PR automatically get updated to 1.3.3? |
Sorry, something went wrong.
IIRC @dependabot recreate will recreate a PR that bumps to latest version. But since I need a bump to fix make test-only on RISC-V, I opened a PR to bump it manually here: #62686 |
Sorry, something went wrong.
Didn't notice this was a PR managed by Dependabot, I thought we used our own Bot. |
Sorry, something went wrong.
We use @nodejs-github-bot when a dependency isn't supported by Dependabot. When we first landed doc-kit, and used git deps, it wasn't supported by Dependabot, now that we release to npm, it is |
Sorry, something went wrong.
Sorry, something went wrong.
|
RuntimeError: memory access out of bounds on RHEL / linuxone CI |
Sorry, something went wrong.
|
FYI @nodejs/platform-s390 |
Sorry, something went wrong.
There's an s390x related change in nodejs/doc-kit#691 (comment) , would that be related or is it just flaky tests? |
Sorry, something went wrong.
|
This issue seems to be related to Typed array usage under shikijs/engine-oniguruma/dist/index.mjs: Wasm is little-endian enforced, Typed arrays follow native-endian order. If you manipulate a Wasm buffer you have to make sure data is also in little-endian format, i.e a fix would look something like this: /*const strPtrsPtr = onigBinding.omalloc(4 * patterns.length);
onigBinding.HEAPU32.set(strPtrsArr, strPtrsPtr / 4);
const strLenPtr = onigBinding.omalloc(4 * patterns.length);
onigBinding.HEAPU32.set(strLenArr, strLenPtr / 4);
*/
const strPtrsPtr = onigBinding.omalloc(4 * patterns.length);
const strLenPtr = onigBinding.omalloc(4 * patterns.length);
const dv = new DataView(onigBinding.HEAPU8.buffer);
for (let i = 0; i < strPtrsArr.length; i++)
dv.setUint32(strPtrsPtr + i * 4, strPtrsArr[i], true);
for (let i = 0; i < strLenArr.length; i++)
dv.setUint32(strLenPtr + i * 4, strLenArr[i], true);
...
/*const HEAPU32 = onigBinding2.HEAPU32;
let offset = resultPtr / 4;
const index = HEAPU32[offset++];
const count = HEAPU32[offset++];
*/
const dv2 = new DataView(onigBinding2.HEAPU8.buffer);
let byteOffset = resultPtr;
const index = dv2.getUint32(byteOffset, true); byteOffset += 4;
const count = dv2.getUint32(byteOffset, true); byteOffset += 4;
const captureIndices = [];
for (let i = 0; i < count; i++) {
// const beg = string.convertUtf8OffsetToUtf16(HEAPU32[offset++]);
// const end = string.convertUtf8OffsetToUtf16(HEAPU32[offset++]);
const beg = string.convertUtf8OffsetToUtf16(dv2.getUint32(byteOffset, true)); byteOffset += 4;
const end = string.convertUtf8OffsetToUtf16(dv2.getUint32(byteOffset, true)); byteOffset += 4;
Not sure if this glue code is generated with Emscripten or not, if it is then it needs to be regenerated with SUPPORT_BIG_ENDIAN=1 as explained under this fix: emscripten-core/emscripten#13413 |
Sorry, something went wrong.
Thanks for investigating it!
The copyright header in the code tells me that this glue code in shiki is actually copied from https://github.com/microsoft/vscode-oniguruma/blob/main/src/index.ts. vscode-oniguruma indeed uses Emscripten but I cannot find where they generated the index.ts. But given the complexity and delay involved in fixing code in two upstream repos, perhaps it's better to disable the wasm highlighter for s390x again in doc-kit. |
Sorry, something went wrong.
|
Side note: A few months ago I considered pushing this change to vscode-oniguruma but hesitated since I thought we did a workaround on our side. I should probably have done the PR anyways! |
Sorry, something went wrong.
|
Could anyone request-ci Add this label to start a Jenkins CI on a PR. again? Thanks! |
Sorry, something went wrong.
Sorry, something went wrong.
|
It looks like @dependabot recreate didn't bump it to the latest version so the CI is still failing. Not sure why dependabot missed the latest version during the recreate :( . |
Sorry, something went wrong.
|
Frigging hell, Dependabot. |
Sorry, something went wrong.
|
It might be following the cadency of how old a release is. Ill manually override this. |
Sorry, something went wrong.
Well, I guess I know what happened. Node.js has configured a dependency cool down here: Lines 17 to 20 in 730fa6a So it will take five days before dependabot could bump it to the latest version. |
Sorry, something went wrong.
|
Problem is running npm i on my machine will produce a bigger package-lock diff due to being a different arch and whatnot. |
Sorry, something went wrong.
I am preparing a PR to ignore the dependency cooldown for internal packages like doc-kit. The cooldown doesn't make sense for internal packages and will only slow down the propagation of new improvements from doc-kit to node.js repo. |
Sorry, something went wrong.
Good point and agreed :) |
Sorry, something went wrong.
Bumps the doc group in /tools/doc with 1 update: [@node-core/doc-kit](https://github.com/nodejs/doc-kit). Updates `@node-core/doc-kit` from 1.0.2 to 1.2.0 - [Commits](https://github.com/nodejs/doc-kit/commits) --- updated-dependencies: - dependency-name: "@node-core/doc-kit" dependency-version: 1.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: doc ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps the doc group in /tools/doc with 1 update: [@node-core/doc-kit](https://github.com/nodejs/doc-kit). Updates `@node-core/doc-kit` from 1.0.2 to 1.2.0 - [Commits](https://github.com/nodejs/doc-kit/commits) --- updated-dependencies: - dependency-name: "@node-core/doc-kit" dependency-version: 1.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: doc ... Signed-off-by: dependabot[bot] <support@github.com> PR-URL: #62512 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Claudio Wunder <cwunder@gnome.org>
| Back | FazBrowse Home | New Git URL |
Bumps the doc group in /tools/doc with 1 update: @node-core/doc-kit.
Updates @node-core/doc-kit from 1.0.2 to 1.2.0
CommitsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: