@dionlarson/playwright-orchestrator-file 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ export declare class FileAdapter extends Adapter {
11
11
  saveTestRun({ runId, testRun, args, historyWindow }: SaveTestRunParams): Promise<void>;
12
12
  initialize(): Promise<void>;
13
13
  dispose(): Promise<void>;
14
+ cleanupStaleTests(runId: string, staleMinutes: number): Promise<number>;
14
15
  getReportData(runId: string): Promise<TestRunReport>;
15
16
  private loadTestInfos;
16
17
  private addResult;
@@ -81,6 +81,13 @@ export class FileAdapter extends Adapter {
81
81
  return;
82
82
  }
83
83
  async dispose() { }
84
+ async cleanupStaleTests(runId, staleMinutes) {
85
+ // File adapter uses a pop-from-queue pattern for test claiming.
86
+ // Tests are atomically claimed by removing them from the queue file,
87
+ // so there's no "Ongoing" status to clean up.
88
+ console.log('File adapter does not track Ongoing status - cleanup is a no-op');
89
+ return 0;
90
+ }
84
91
  async getReportData(runId) {
85
92
  const config = JSON.parse(await readFile(this.getRunConfigPath(runId), 'utf-8'));
86
93
  const tests = JSON.parse(await readFile(this.getResultsRunPath(runId), 'utf-8'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dionlarson/playwright-orchestrator-file",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "keywords": [],
5
5
  "author": "Rostyslav Kudrevatykh",
6
6
  "license": "Apache-2.0",