Skip to content

Commit 279b30e

Browse files
committedFeb 3, 2022
fix: lock & attempt code
1 parent adc0713 commit 279b30e

File tree

4 files changed

+277
-427
lines changed

4 files changed

+277
-427
lines changed
 

‎.mdeprc.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/* eslint-disable no-template-curly-in-string */
22

3-
const user = process.getuid();
4-
53
module.exports = {
64
nycCoverage: false,
75
test_framework: 'jest --coverage --coverageDirectory <coverageDirectory> --runTestsByPath --maxWorkers=50% --colors',

‎bin/cmds/test_cmds/run.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,21 @@ exports.handler = async (argv) => {
8686
// eslint-disable-next-line no-cond-assign
8787
while ((line = lines.pop()) !== undefined) {
8888
try {
89+
debug('assessing line - `%s`', line);
8990
const data = JSON.parse(line)[field];
9091
assert(data);
9192
return data;
9293
} catch (e) {
94+
debug('line %s', line, e.message);
9395
// ignore line, check previous
9496
}
9597
}
9698

9799
if (attempt > 20) throw new Error(`cant get "${field}" id after 20s`);
98100

99101
await new Promise((resolve) => setTimeout(resolve, 1000));
100-
return getField(attempt + 1);
102+
103+
return getField(field, attempt + 1);
101104
};
102105

103106
/**

‎package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@
2222
"node": ">= 12.15.0"
2323
},
2424
"devDependencies": {
25-
"codecov": "^3.8.1",
25+
"codecov": "^3.8.3",
2626
"eslint": "^8.8.0",
27-
"eslint-config-makeomatic": "^5.0.4",
28-
"eslint-plugin-import": "^2.25.3",
27+
"eslint-config-makeomatic": "^5.1.0",
28+
"eslint-plugin-import": "^2.25.4",
2929
"eslint-plugin-promise": "^6.0.0",
3030
"eslint-plugin-unicorn": "^40.1.0",
31-
"jest": "^27.4.3",
32-
"tempy": "^1.0.0",
31+
"jest": "^27.4.7",
32+
"tempy": "^1.0.1",
3333
"typescript": "^4.5.5"
3434
},
3535
"dependencies": {
3636
"@commitlint/cli": "^16.1.0",
3737
"@sinclair/typebox": "^0.23.3",
38-
"@types/node": "^17.0.13",
38+
"@types/node": "^17.0.14",
3939
"bluebird": "^3.7.2",
4040
"chrome-launcher": "^0.15.0",
4141
"chrome-remote-interface": "^0.31.1",
42-
"cross-env": "^7.0.0",
42+
"cross-env": "^7.0.3",
4343
"death": "^1.1.0",
4444
"debug": "^4.3.3",
45-
"execa": "^5",
46-
"fastify": "^3.27.0",
45+
"execa": "^5.1.1",
46+
"fastify": "^3.27.1",
4747
"fastify-compress": "^4.0.1",
4848
"find-up": "^5.0.0",
49-
"get-port": "^5",
50-
"glob": "^7.1.6",
49+
"get-port": "^5.1.1",
50+
"glob": "^7.2.0",
5151
"husky": "~7.0.4",
5252
"hyperid": "^3.0.0",
53-
"is": "^3.2.1",
54-
"js-yaml": "^4.0.0",
53+
"is": "^3.3.0",
54+
"js-yaml": "^4.1.0",
5555
"lodash.get": "^4.4.2",
5656
"lodash.merge": "^4.6.2",
5757
"lodash.set": "^4.3.2",
@@ -61,12 +61,12 @@
6161
"read-pkg": "^5.2.0",
6262
"rimraf": "^3.0.2",
6363
"semantic-release": "19.0.2",
64-
"serialize-error": "^8.0.0",
65-
"shelljs": "^0.8.3",
64+
"serialize-error": "^8.1.0",
65+
"shelljs": "^0.8.5",
6666
"split2": "^4.1.0",
67-
"strip-final-newline": "=2.x.x",
67+
"strip-final-newline": "^2.0.0",
6868
"undici": "^4.13.0",
69-
"yargs": "^17.3.0"
69+
"yargs": "^17.3.1"
7070
},
7171
"bin": {
7272
"mdep": "./bin/cli.js",

‎pnpm-lock.yaml

+256-407
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.