Skip to content

fix(node:worker_threads): fix several worker threads tests #19191

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DonIsaac
Copy link
Contributor

What does this PR do?

Gets a few worker threads tests passing.

How did you verify your code works?

node tests + tests I've added

@DonIsaac DonIsaac marked this pull request as draft April 22, 2025 23:29
@robobun
Copy link

robobun commented Apr 22, 2025

Updated 5:10 PM PT - Apr 22nd, 2025

@DonIsaac, your commit ce568fd has 4 failures in Build #15343:


🧪   try this PR locally:

bunx bun-pr 19191

@DonIsaac DonIsaac requested a review from 190n April 22, 2025 23:29
Copy link
Collaborator

@190n 190n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 nit, otherwise LGTM as long as none of the new tests are flaky

const worker_execArgv = ["--no-warnings", "--no-deprecation", "--tls-min-v1.2"];
const original_argv = [...process.argv];
const original_execArgv = [...process.execArgv];
const worker = new wt.Worker(new URL("fixtures/worker-fixture-argv.js", import.meta.url), {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use fixtureURL

@190n 190n self-requested a review April 23, 2025 00:18
argv: [original_argv[0], original_argv[1].replace(import.meta.file, "worker-fixture-argv.js"), ...worker_argv],
argv: [
original_argv[0],
original_argv[1].replace(import.meta.file, "fixtures/worker-fixture-argv.js"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs backslash on Windows

expect(result).toEqual({
argv: [
original_argv[0],
original_argv[1].replace(import.meta.file, "fixtures/worker-fixture-argv.js"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs backslash on Windows

@@ -0,0 +1,30 @@
'use strict';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flaky. delete it

@@ -0,0 +1,11 @@
'use strict';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flaky. delete it

@@ -0,0 +1,16 @@
'use strict';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flaky. delete it

@190n 190n mentioned this pull request Apr 23, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants