Skip to content

Comments

fix(selectivity): add tests to run synchronously#1193

Merged
KuznetsovRoman merged 1 commit intomasterfrom
INFRADUTY-29746.selectivity_seq_run
Jan 22, 2026
Merged

fix(selectivity): add tests to run synchronously#1193
KuznetsovRoman merged 1 commit intomasterfrom
INFRADUTY-29746.selectivity_seq_run

Conversation

@KuznetsovRoman
Copy link
Member

No description provided.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 21, 2026

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1193

commit: 3e19fae

@KuznetsovRoman KuznetsovRoman force-pushed the INFRADUTY-29746.selectivity_seq_run branch from c8868f4 to 310ce68 Compare January 21, 2026 22:27

if (shouldDisableBrowserSelectivity) {
return this._runTestFn(test, browserId);
return [test, browserId];
Copy link
Member Author

Choose a reason for hiding this comment

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

Before:
Add test to run asynchronously as soon as we find out it needs to be run
After:
Store tests we need to run, and actually add them to run synchronously, after we process all tests

private readonly _opts?: SelectivityRunnerOptions;
private readonly _browserSelectivityDisabledCache: Record<string, void | Promise<boolean>> = {};
private readonly _processingTestPromises: Promise<void>[] = [];
private readonly _processingTestPromises: Promise<[Test, string] | null>[] = [];
Copy link
Member Author

Choose a reason for hiding this comment

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

I use the same "_processingTestPromises" so we don't have to waste memory on extra "pending tests" storage

@KuznetsovRoman KuznetsovRoman force-pushed the INFRADUTY-29746.selectivity_seq_run branch from 310ce68 to 3e19fae Compare January 22, 2026 10:12
@KuznetsovRoman KuznetsovRoman merged commit 663dae8 into master Jan 22, 2026
5 checks passed
@KuznetsovRoman KuznetsovRoman deleted the INFRADUTY-29746.selectivity_seq_run branch January 22, 2026 10:22
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.

1 participant