From 5e816a54623f3bc39b60bc1902d3d084b599d530 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 09:50:18 -0600 Subject: [PATCH 01/17] implement browse on submit for PRs; also 'noBrowse' option --- src/handlers/work/submit.mjs | 43 ++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/src/handlers/work/submit.mjs b/src/handlers/work/submit.mjs index d9534c6..f6771a1 100644 --- a/src/handlers/work/submit.mjs +++ b/src/handlers/work/submit.mjs @@ -60,6 +60,11 @@ const parameters = [ isBoolean : true, description : 'When set, will continue even if the local repository is not clean.' }, + { + name : 'noBrowse', + isBoolean : true, + description : 'Supresses default behavior of opening a browser to the newly created pull request.' + }, { name : 'noClosed', isBoolean : true, @@ -172,6 +177,8 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { } // we are ready to generate QA files and submit work + const prURLs = [] + const prCalls = [] for (const { name: projectFQN, private: isPrivate } of projects) { const [org, project] = projectFQN.split('/') const projectPath = fsPath.join(app.liq.playground(), org, project) @@ -231,18 +238,15 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { const repoData = await octocache.request(`GET /repos/${org}/${project}`) const base = repoData.default_branch - await octocache.request( - 'POST /repos/{owner}/{repo}/pulls', - { - owner : org, - repo : project, - title : workUnit.description, - body, - head, - base - }, - { noClear : true } // should be OK - ) + prCalls.push(doPR({ base, body, head, octocache, org, project, prURLs, workUnit })) + } + } + + Promise.all(prCalls) + + if (noBrowse !== true) { + for (const url of prURLs) { + tryExec(`open ${url}`, { noThrow : true }) } } @@ -253,4 +257,19 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { }) } +const doPR = async({ base, body, head, octocache, org, project, prURLs, workUnit }) => { + const pr = await octocache.request( + 'POST /repos/{owner}/{repo}/pulls', + { + owner : org, + repo : project, + title : workUnit.description, + body, + head, + base + }) + + prURLs.push(`${GH_BASE_URL}/${org}/${project}/pulls/${pr.number}`) +} + export { func, help, parameters, paths, method } From 69caf48d946728558fdeac25857b12fdc7d7bf10 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 09:53:47 -0600 Subject: [PATCH 02/17] open previously created PRs as well --- src/handlers/work/submit.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/handlers/work/submit.mjs b/src/handlers/work/submit.mjs index f6771a1..9a58c9c 100644 --- a/src/handlers/work/submit.mjs +++ b/src/handlers/work/submit.mjs @@ -208,6 +208,10 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { if (isPrivate === true) { ([remote] = determineOriginAndMain({ projectPath, reporter })) } else { remote = WORKSPACE } tryExec(`cd '${projectPath}' && git push ${remote} ${workBranch}`) + + for (const pr of openPRs) { + prURLs.push(`${GH_BASE_URL}/${org}/${project}/pulls/${pr.number}`) + } } else { // we create the PR reporter.push(`Creating PR for ${projectFQN} branch ${workBranch}...`) @@ -242,7 +246,9 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { } } - Promise.all(prCalls) + if (prCalls.length > 0) { + await Promise.all(prCalls) + } if (noBrowse !== true) { for (const url of prURLs) { From 2ce6dca8479623af115e41e998cd248f88ddcc2b Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 09:55:11 -0600 Subject: [PATCH 03/17] pull 'noBrowse' from the request vars --- src/handlers/work/submit.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/work/submit.mjs b/src/handlers/work/submit.mjs index 9a58c9c..681a87d 100644 --- a/src/handlers/work/submit.mjs +++ b/src/handlers/work/submit.mjs @@ -115,7 +115,7 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { if (workUnit === undefined) throw createError.NotFound(`No such active unit of work '${workKey}' found.`) const { dirtyOK, noPush = false } = req.vars - let { assignees, closes, closeTarget, noCloses, projects } = req.vars + let { assignees, closes, closeTarget, noBrowse, noCloses, projects } = req.vars // determine assignee(s) if (assignees === undefined) { From 45c658b0468f0c82276339d994a51cb291a55bde Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 09:55:27 -0600 Subject: [PATCH 04/17] Save QA files. --- last-lint.txt | 0 last-test.txt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 last-lint.txt create mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt new file mode 100644 index 0000000..e69de29 diff --git a/last-test.txt b/last-test.txt new file mode 100644 index 0000000..39e3f75 --- /dev/null +++ b/last-test.txt @@ -0,0 +1,16 @@ +PASS test-staging/handlers/work/_lib/test/work-db.test.js + WorkDB + ✓ Reads database on initialization from liq constants (8 ms) + +---------------|---------|----------|---------|---------|-------------------------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +---------------|---------|----------|---------|---------|-------------------------------------- +All files | 19.11 | 14.63 | 15 | 18.4 | + constants.mjs | 100 | 100 | 100 | 100 | + work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 +---------------|---------|----------|---------|---------|-------------------------------------- +Test Suites: 1 passed, 1 total +Tests: 1 passed, 1 total +Snapshots: 0 total +Time: 0.421 s, estimated 1 s +Ran all test suites matching /.\/test-staging/i. From 20bc6a2b2618bb943fc9743aa64628520871f0c4 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 09:55:27 -0600 Subject: [PATCH 05/17] removed QA files --- last-lint.txt | 0 last-test.txt | 16 ---------------- 2 files changed, 16 deletions(-) delete mode 100644 last-lint.txt delete mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt deleted file mode 100644 index e69de29..0000000 diff --git a/last-test.txt b/last-test.txt deleted file mode 100644 index 39e3f75..0000000 --- a/last-test.txt +++ /dev/null @@ -1,16 +0,0 @@ -PASS test-staging/handlers/work/_lib/test/work-db.test.js - WorkDB - ✓ Reads database on initialization from liq constants (8 ms) - ----------------|---------|----------|---------|---------|-------------------------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------|---------|----------|---------|---------|-------------------------------------- -All files | 19.11 | 14.63 | 15 | 18.4 | - constants.mjs | 100 | 100 | 100 | 100 | - work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 ----------------|---------|----------|---------|---------|-------------------------------------- -Test Suites: 1 passed, 1 total -Tests: 1 passed, 1 total -Snapshots: 0 total -Time: 0.421 s, estimated 1 s -Ran all test suites matching /.\/test-staging/i. From 39b3d3fd05cf95bec6e732c1042c226e578f963f Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:01:15 -0600 Subject: [PATCH 06/17] make noBrowse and noCloses 'false' default explicit --- src/handlers/work/submit.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/work/submit.mjs b/src/handlers/work/submit.mjs index 681a87d..0a1e95a 100644 --- a/src/handlers/work/submit.mjs +++ b/src/handlers/work/submit.mjs @@ -115,7 +115,7 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { if (workUnit === undefined) throw createError.NotFound(`No such active unit of work '${workKey}' found.`) const { dirtyOK, noPush = false } = req.vars - let { assignees, closes, closeTarget, noBrowse, noCloses, projects } = req.vars + let { assignees, closes, closeTarget, noBrowse=false, noCloses=false, projects } = req.vars // determine assignee(s) if (assignees === undefined) { From 011fadf7958d710dd526807c33665d2d4cb1bea4 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:02:07 -0600 Subject: [PATCH 07/17] lint formatting --- src/handlers/work/submit.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/work/submit.mjs b/src/handlers/work/submit.mjs index 0a1e95a..9eb0b6a 100644 --- a/src/handlers/work/submit.mjs +++ b/src/handlers/work/submit.mjs @@ -115,7 +115,7 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { if (workUnit === undefined) throw createError.NotFound(`No such active unit of work '${workKey}' found.`) const { dirtyOK, noPush = false } = req.vars - let { assignees, closes, closeTarget, noBrowse=false, noCloses=false, projects } = req.vars + let { assignees, closes, closeTarget, noBrowse = false, noCloses = false, projects } = req.vars // determine assignee(s) if (assignees === undefined) { From 2c4f11b920bf99ab26e51a7ccf14d11b3c7f0743 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:02:36 -0600 Subject: [PATCH 08/17] Save QA files. --- last-lint.txt | 0 last-test.txt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 last-lint.txt create mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt new file mode 100644 index 0000000..e69de29 diff --git a/last-test.txt b/last-test.txt new file mode 100644 index 0000000..a661291 --- /dev/null +++ b/last-test.txt @@ -0,0 +1,16 @@ +PASS test-staging/handlers/work/_lib/test/work-db.test.js + WorkDB + ✓ Reads database on initialization from liq constants (7 ms) + +---------------|---------|----------|---------|---------|-------------------------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +---------------|---------|----------|---------|---------|-------------------------------------- +All files | 19.11 | 14.63 | 15 | 18.4 | + constants.mjs | 100 | 100 | 100 | 100 | + work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 +---------------|---------|----------|---------|---------|-------------------------------------- +Test Suites: 1 passed, 1 total +Tests: 1 passed, 1 total +Snapshots: 0 total +Time: 0.43 s, estimated 1 s +Ran all test suites matching /.\/test-staging/i. From a6e9d8f5436cc880db41c0ed6f27fc0273d3b1b4 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:02:36 -0600 Subject: [PATCH 09/17] removed QA files --- last-lint.txt | 0 last-test.txt | 16 ---------------- 2 files changed, 16 deletions(-) delete mode 100644 last-lint.txt delete mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt deleted file mode 100644 index e69de29..0000000 diff --git a/last-test.txt b/last-test.txt deleted file mode 100644 index a661291..0000000 --- a/last-test.txt +++ /dev/null @@ -1,16 +0,0 @@ -PASS test-staging/handlers/work/_lib/test/work-db.test.js - WorkDB - ✓ Reads database on initialization from liq constants (7 ms) - ----------------|---------|----------|---------|---------|-------------------------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------|---------|----------|---------|---------|-------------------------------------- -All files | 19.11 | 14.63 | 15 | 18.4 | - constants.mjs | 100 | 100 | 100 | 100 | - work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 ----------------|---------|----------|---------|---------|-------------------------------------- -Test Suites: 1 passed, 1 total -Tests: 1 passed, 1 total -Snapshots: 0 total -Time: 0.43 s, estimated 1 s -Ran all test suites matching /.\/test-staging/i. From 3fc11469cd80382f0bd8128f53b68aa1046ee448 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:03:44 -0600 Subject: [PATCH 10/17] fix PR url --- src/handlers/work/submit.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/work/submit.mjs b/src/handlers/work/submit.mjs index 9eb0b6a..87e48e6 100644 --- a/src/handlers/work/submit.mjs +++ b/src/handlers/work/submit.mjs @@ -275,7 +275,7 @@ const doPR = async({ base, body, head, octocache, org, project, prURLs, workUnit base }) - prURLs.push(`${GH_BASE_URL}/${org}/${project}/pulls/${pr.number}`) + prURLs.push(`${GH_BASE_URL}/${org}/${project}/pull/${pr.number}`) } export { func, help, parameters, paths, method } From 95687e13cd98266b512c660a97d643b0922431f6 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:04:06 -0600 Subject: [PATCH 11/17] Save QA files. --- last-lint.txt | 0 last-test.txt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 last-lint.txt create mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt new file mode 100644 index 0000000..e69de29 diff --git a/last-test.txt b/last-test.txt new file mode 100644 index 0000000..86d9d50 --- /dev/null +++ b/last-test.txt @@ -0,0 +1,16 @@ +PASS test-staging/handlers/work/_lib/test/work-db.test.js + WorkDB + ✓ Reads database on initialization from liq constants (5 ms) + +---------------|---------|----------|---------|---------|-------------------------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +---------------|---------|----------|---------|---------|-------------------------------------- +All files | 19.11 | 14.63 | 15 | 18.4 | + constants.mjs | 100 | 100 | 100 | 100 | + work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 +---------------|---------|----------|---------|---------|-------------------------------------- +Test Suites: 1 passed, 1 total +Tests: 1 passed, 1 total +Snapshots: 0 total +Time: 0.493 s, estimated 1 s +Ran all test suites matching /.\/test-staging/i. From 543b013790e819eed2887cda453d3e77ebaa6110 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:04:07 -0600 Subject: [PATCH 12/17] removed QA files --- last-lint.txt | 0 last-test.txt | 16 ---------------- 2 files changed, 16 deletions(-) delete mode 100644 last-lint.txt delete mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt deleted file mode 100644 index e69de29..0000000 diff --git a/last-test.txt b/last-test.txt deleted file mode 100644 index 86d9d50..0000000 --- a/last-test.txt +++ /dev/null @@ -1,16 +0,0 @@ -PASS test-staging/handlers/work/_lib/test/work-db.test.js - WorkDB - ✓ Reads database on initialization from liq constants (5 ms) - ----------------|---------|----------|---------|---------|-------------------------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------|---------|----------|---------|---------|-------------------------------------- -All files | 19.11 | 14.63 | 15 | 18.4 | - constants.mjs | 100 | 100 | 100 | 100 | - work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 ----------------|---------|----------|---------|---------|-------------------------------------- -Test Suites: 1 passed, 1 total -Tests: 1 passed, 1 total -Snapshots: 0 total -Time: 0.493 s, estimated 1 s -Ran all test suites matching /.\/test-staging/i. From 2c31b3f70c0919ef44cfeb35ff2ac545b44b752b Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:04:47 -0600 Subject: [PATCH 13/17] fix other PR url --- src/handlers/work/submit.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/work/submit.mjs b/src/handlers/work/submit.mjs index 87e48e6..5863ce7 100644 --- a/src/handlers/work/submit.mjs +++ b/src/handlers/work/submit.mjs @@ -210,7 +210,7 @@ const func = ({ app, cache, model, reporter }) => async(req, res) => { tryExec(`cd '${projectPath}' && git push ${remote} ${workBranch}`) for (const pr of openPRs) { - prURLs.push(`${GH_BASE_URL}/${org}/${project}/pulls/${pr.number}`) + prURLs.push(`${GH_BASE_URL}/${org}/${project}/pull/${pr.number}`) } } else { // we create the PR From b3436ab870362f48a23ee75f66a7a434d59d60a1 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:05:04 -0600 Subject: [PATCH 14/17] Save QA files. --- last-lint.txt | 0 last-test.txt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 last-lint.txt create mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt new file mode 100644 index 0000000..e69de29 diff --git a/last-test.txt b/last-test.txt new file mode 100644 index 0000000..e6f903a --- /dev/null +++ b/last-test.txt @@ -0,0 +1,16 @@ +PASS test-staging/handlers/work/_lib/test/work-db.test.js + WorkDB + ✓ Reads database on initialization from liq constants (6 ms) + +---------------|---------|----------|---------|---------|-------------------------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +---------------|---------|----------|---------|---------|-------------------------------------- +All files | 19.11 | 14.63 | 15 | 18.4 | + constants.mjs | 100 | 100 | 100 | 100 | + work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 +---------------|---------|----------|---------|---------|-------------------------------------- +Test Suites: 1 passed, 1 total +Tests: 1 passed, 1 total +Snapshots: 0 total +Time: 0.416 s, estimated 1 s +Ran all test suites matching /.\/test-staging/i. From 0dc08690932df20f9cefdd1b73d353bf5b2fb03a Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:05:04 -0600 Subject: [PATCH 15/17] removed QA files --- last-lint.txt | 0 last-test.txt | 16 ---------------- 2 files changed, 16 deletions(-) delete mode 100644 last-lint.txt delete mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt deleted file mode 100644 index e69de29..0000000 diff --git a/last-test.txt b/last-test.txt deleted file mode 100644 index e6f903a..0000000 --- a/last-test.txt +++ /dev/null @@ -1,16 +0,0 @@ -PASS test-staging/handlers/work/_lib/test/work-db.test.js - WorkDB - ✓ Reads database on initialization from liq constants (6 ms) - ----------------|---------|----------|---------|---------|-------------------------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------|---------|----------|---------|---------|-------------------------------------- -All files | 19.11 | 14.63 | 15 | 18.4 | - constants.mjs | 100 | 100 | 100 | 100 | - work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 ----------------|---------|----------|---------|---------|-------------------------------------- -Test Suites: 1 passed, 1 total -Tests: 1 passed, 1 total -Snapshots: 0 total -Time: 0.416 s, estimated 1 s -Ran all test suites matching /.\/test-staging/i. From 15e1aa3bd1cc672cc4dd42378bf12cdcb836f126 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:05:41 -0600 Subject: [PATCH 16/17] Save QA files. --- last-lint.txt | 0 last-test.txt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 last-lint.txt create mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt new file mode 100644 index 0000000..e69de29 diff --git a/last-test.txt b/last-test.txt new file mode 100644 index 0000000..2c7e686 --- /dev/null +++ b/last-test.txt @@ -0,0 +1,16 @@ +PASS test-staging/handlers/work/_lib/test/work-db.test.js + WorkDB + ✓ Reads database on initialization from liq constants (8 ms) + +---------------|---------|----------|---------|---------|-------------------------------------- +File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s +---------------|---------|----------|---------|---------|-------------------------------------- +All files | 19.11 | 14.63 | 15 | 18.4 | + constants.mjs | 100 | 100 | 100 | 100 | + work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 +---------------|---------|----------|---------|---------|-------------------------------------- +Test Suites: 1 passed, 1 total +Tests: 1 passed, 1 total +Snapshots: 0 total +Time: 0.441 s, estimated 1 s +Ran all test suites matching /.\/test-staging/i. From 9c0f1f1fcf28239c5ee5780f7ff86ec573424ba8 Mon Sep 17 00:00:00 2001 From: Zane Rockenbaugh Date: Sun, 26 Feb 2023 10:05:42 -0600 Subject: [PATCH 17/17] removed QA files --- last-lint.txt | 0 last-test.txt | 16 ---------------- 2 files changed, 16 deletions(-) delete mode 100644 last-lint.txt delete mode 100644 last-test.txt diff --git a/last-lint.txt b/last-lint.txt deleted file mode 100644 index e69de29..0000000 diff --git a/last-test.txt b/last-test.txt deleted file mode 100644 index 2c7e686..0000000 --- a/last-test.txt +++ /dev/null @@ -1,16 +0,0 @@ -PASS test-staging/handlers/work/_lib/test/work-db.test.js - WorkDB - ✓ Reads database on initialization from liq constants (8 ms) - ----------------|---------|----------|---------|---------|-------------------------------------- -File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------|---------|----------|---------|---------|-------------------------------------- -All files | 19.11 | 14.63 | 15 | 18.4 | - constants.mjs | 100 | 100 | 100 | 100 | - work-db.mjs | 16.66 | 14.63 | 15 | 17.07 | 37-76,83-200,205-206,210-241,257-286 ----------------|---------|----------|---------|---------|-------------------------------------- -Test Suites: 1 passed, 1 total -Tests: 1 passed, 1 total -Snapshots: 0 total -Time: 0.441 s, estimated 1 s -Ran all test suites matching /.\/test-staging/i.