Commit 69c81f9
committed
review fixups: drop inert mocharc require, tighten casts, add CI guards, v2.0.0
Addresses code-review-squad findings from the self-review pass:
- F1 (HIGH): drop `require: ['ts-node/register']` from both mocharc files.
Verified locally that this option fires after mocha's import() resolution
on Node 22+ and does NOT restore `__dirname`. The CJS-loader path on
Node ≤20 is registered by nyc.config.js. Per-file path.resolve(...) fixes
remain — they're what actually works.
- F3 (MED): bump version 1.15.0 → 2.0.0 + CHANGELOG entry enumerating the
three breaking signals (engines.node 14→16, uuid major, thrift major).
Matches npm-ecosystem convention for runtime-dep majors + engine bumps.
- F5 (MED): document the typescript 5.5.4 sandwich pin in CONTRIBUTING.md
"Dependency Pins" section. Also documents the uuid override rationale
and lockfile v2 pin policy.
- F6 (MED): post-rewrite hard-check in setup-jfrog/action.yml. Fails CI
loudly if a non-JFrog host slips into package-lock.json (rather than
hanging npm ci for 8min like the regression we just fixed).
- F7 (MED): timeout-minutes on unit-test (20) and e2e-test (30) jobs.
Caps the blast radius of a wedged matrix entry — without these caps
one hung e2e job could hold a runner + warehouse session for 6h.
- F9 (LOW): add CWD invariant checks to the two tests that resolve from
process.cwd(). Fails loudly with a clear error if mocha is ever
invoked from a non-repo-root CWD, rather than producing an opaque
ENOENT.
- F10 (LOW): tighten the two as-any casts. FederationProvider's
controller.signal cast now goes through `unknown as import('node-fetch')
.RequestInit['signal']` to narrow the assertion. AuthorizationCode test
uses `as unknown as (typeof authCode)['createHttpServer']` so the
assertion is verifiable.
- F12 (LOW): CI lint that fails if package-lock.json's lockfileVersion
drifts from 2. Catches the silent v3 rewrite that modern npm performs
by default on `npm install`.
Verified locally:
- npm test passes on Node 16 (904) and Node 22 (898 + 6 pending — the
Node-22-only lz4 skip is unchanged from prior commits)
- OSV-Scanner v2.3.8 reports zero findings on the lockfile
- tsc --noEmit clean against tsconfig.build.json
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>1 parent 220ff59 commit 69c81f9
11 files changed
Lines changed: 81 additions & 17 deletions
File tree
- .github
- actions/setup-jfrog
- workflows
- lib/connection/auth/tokenProvider
- tests
- e2e
- unit
- connection/auth/DatabricksOAuth
- result
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
22 | 32 | | |
23 | 33 | | |
24 | 34 | | |
| |||
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| 57 | + | |
47 | 58 | | |
48 | 59 | | |
49 | 60 | | |
| |||
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
3 | 22 | | |
4 | 23 | | |
5 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
110 | 123 | | |
111 | 124 | | |
112 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 9 | | |
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
0 commit comments