@playwright-orchestrator/mongo 1.8.0 → 1.9.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.
- package/README.md +3 -1
- package/dist/mongo-shard-handler.js +0 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
# Playwright Orchestrator MongoDB plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Storage adapter for [Playwright Orchestrator](https://rostmanrk.github.io/playwright-orchestrator/). Install it next to [@playwright-orchestrator/core](https://www.npmjs.com/package/@playwright-orchestrator/core).
|
|
4
|
+
|
|
5
|
+
Options and setup: [mongo adapter docs](https://rostmanrk.github.io/playwright-orchestrator/guide/adapters/mongo).
|
|
@@ -66,7 +66,6 @@ let MongoShardHandler = class MongoShardHandler {
|
|
|
66
66
|
else: RunStatus.RepeatRun,
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
|
-
// A shard with the same id keeps its record, with a new aliveUntil
|
|
70
69
|
[`shards.${shardId}`]: {
|
|
71
70
|
$mergeObjects: [
|
|
72
71
|
{ $ifNull: [`$shards.${shardId}`, { shardId, started: nowMs }] },
|
|
@@ -81,7 +80,6 @@ let MongoShardHandler = class MongoShardHandler {
|
|
|
81
80
|
throw new Error(`Run ${runId} not found`);
|
|
82
81
|
const { status: statusBefore } = run;
|
|
83
82
|
if (statusBefore === RunStatus.Finished) {
|
|
84
|
-
// Claimed tests without a result whose shard died
|
|
85
83
|
await this.tests.updateMany({
|
|
86
84
|
...this.generateTestIdQuery(runId, TestStatus.Ongoing),
|
|
87
85
|
'meta.shardId': { $in: getDeadShardIds(run.shards, shardId) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwright-orchestrator/mongo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "Rostyslav Kudrevatykh",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"inversify": "^8.0.0-beta.0",
|
|
19
19
|
"mongodb": "^6.12.0",
|
|
20
20
|
"uuid": "^14.0.0",
|
|
21
|
-
"@playwright-orchestrator/core": "1.
|
|
21
|
+
"@playwright-orchestrator/core": "1.9.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {},
|
|
24
24
|
"main": "dist/index.js",
|