Skip to content

fix(selectivity): dont rely on file stat's atime when clearing dumps#1223

Merged
KuznetsovRoman merged 3 commits intomasterfrom
TESTPLANE-921.fix_atime
Mar 19, 2026
Merged

fix(selectivity): dont rely on file stat's atime when clearing dumps#1223
KuznetsovRoman merged 3 commits intomasterfrom
TESTPLANE-921.fix_atime

Conversation

@KuznetsovRoman
Copy link
Member

No description provided.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 19, 2026

Open in StackBlitz

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

commit: c9adcab

const { enabled, testDependenciesPath } = browserConfig.selectivity;

if (enabled && !selectivityRoots.includes(testDependenciesPath)) {
if (selectivityShouldWrite(enabled) && !selectivityRoots.includes(testDependenciesPath)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Merge changes from branch with selectivity-modes

on "readonly" mode, no dumps should be touched

export const getSelectivityTestsPath = (testDependenciesPath: string): string =>
path.join(testDependenciesPath, "tests");

export const getTestSelectivityDumpId = (test: Test): string => test.id;
Copy link
Member Author

Choose a reason for hiding this comment

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

Just to not rely on assertion "dump id is test.id" in many places

assert.notCalled(fsStub.readdir);
});

it("should skip browsers with selectivity in read-only mode", async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Those are "clearUnusedSelectivityDumps" tests

@KuznetsovRoman KuznetsovRoman merged commit 4595c8f into master Mar 19, 2026
5 of 7 checks passed
@KuznetsovRoman KuznetsovRoman deleted the TESTPLANE-921.fix_atime branch March 19, 2026 23:13
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.

2 participants