@norskvideo/ctl-dev-kit 0.2.118 → 0.2.120
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/build/ctl-shell.nix +36 -11
- package/conventions/check-drift.ts +5 -5
- package/package.json +5 -5
package/build/ctl-shell.nix
CHANGED
|
@@ -9,23 +9,48 @@
|
|
|
9
9
|
# need GitHub auth in every shell and CI runner.
|
|
10
10
|
{ pkgs, biome }:
|
|
11
11
|
let
|
|
12
|
-
# Bun from its own
|
|
13
|
-
#
|
|
12
|
+
# Bun from its own pin, so ctl and every product run one Bun, and bumping
|
|
13
|
+
# it is one edit here (the dev-kit sync carries it to the products, and
|
|
14
|
+
# sets each package.json "packageManager", its image's Bun, to bunVersion)
|
|
14
15
|
# rather than moving the main nixpkgs pin, and with it Chromium and every
|
|
15
|
-
# other tool.
|
|
16
|
+
# other tool. The derivation is nixpkgs e7439b6b's (bun 1.4.2), fetched by
|
|
17
|
+
# hash so each repo shares one store path; its release zips are swapped for
|
|
18
|
+
# bunVersion's because nixpkgs-unstable has no newer Bun yet.
|
|
16
19
|
#
|
|
17
20
|
# 1.4.2: 1.3.13's node:http2 client segfaulted in its HPACK encoder
|
|
18
|
-
# (lshpack.HPACK.encode from H2FrameParser.request)
|
|
21
|
+
# (lshpack.HPACK.encode from H2FrameParser.request) -- norsk-mgr's gRPC client
|
|
19
22
|
# to the Manager, killed mid-drain and mid-migration in the nightly e2e.
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
+
# 1.4.3: 1.3.13/1.4.2's Postgres client ran a plain query inside another
|
|
24
|
+
# caller's transaction when replies arrived fragmented across TCP reads,
|
|
25
|
+
# leaving sessions idle in transaction and callers hung.
|
|
26
|
+
# That nixpkgs no longer builds x86_64-darwin, which keeps the main pin's.
|
|
27
|
+
bunVersion = "1.4.3";
|
|
23
28
|
bun =
|
|
24
29
|
if pkgs.stdenv.hostPlatform.system == "x86_64-darwin" then pkgs.bun
|
|
25
|
-
else
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
else
|
|
31
|
+
let
|
|
32
|
+
bunPkgs = import (builtins.fetchTarball {
|
|
33
|
+
url = "https://github.com/NixOS/nixpkgs/archive/e7439b6b14ad3cc35d05608ebca9bce01a25f5f8.tar.gz";
|
|
34
|
+
sha256 = "19y4py973w62z4qb7gzn0chjs67ihxy8rbjb7g71iyk8yz7z5k8z";
|
|
35
|
+
}) { inherit (pkgs.stdenv.hostPlatform) system; };
|
|
36
|
+
zip = asset: hash: bunPkgs.fetchurl {
|
|
37
|
+
url = "https://github.com/oven-sh/bun/releases/download/bun-v${bunVersion}/bun-${asset}.zip";
|
|
38
|
+
inherit hash;
|
|
39
|
+
};
|
|
40
|
+
in
|
|
41
|
+
bunPkgs.bun.overrideAttrs (_finalAttrs: prev: {
|
|
42
|
+
version = bunVersion;
|
|
43
|
+
# src reads passthru.sources, overridden below, so the version-without-src
|
|
44
|
+
# warning does not apply.
|
|
45
|
+
__intentionallyOverridingVersion = true;
|
|
46
|
+
passthru = prev.passthru // {
|
|
47
|
+
sources = {
|
|
48
|
+
"aarch64-darwin" = zip "darwin-aarch64" "sha256-gK/UwGm0am+o8+xSC+vHUKeEPkqNW5WD0prUNsAKNAM=";
|
|
49
|
+
"aarch64-linux" = zip "linux-aarch64" "sha256-76mBPaXtckI7+Ef5FujSxHwNd2rdlyNUAmp14Q2pqiE=";
|
|
50
|
+
"x86_64-linux" = zip "linux-x64-baseline" "sha256-H8LtrIQxApCeOhvh2NmALMYHHPB05n6IIx9P/g+LOXs=";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
});
|
|
29
54
|
|
|
30
55
|
# Playwright doc-guide browser. nix-pinned headless Chromium needs a real X
|
|
31
56
|
# display on a truly headless box (page.fill silently no-ops on plain HTML
|
|
@@ -540,11 +540,11 @@ export function productLogsProblems(repoRoot: string): string[] {
|
|
|
540
540
|
];
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
/** The Bun the dev-kit's build/ctl-shell.nix pins:
|
|
544
|
-
*
|
|
545
|
-
*
|
|
543
|
+
/** The Bun the dev-kit's build/ctl-shell.nix pins: its
|
|
544
|
+
* `bunVersion = "X.Y.Z";` binding. The shell runs it; the product's image
|
|
545
|
+
* runs package.json's "packageManager", which must name the same. */
|
|
546
546
|
export function pinnedBunVersion(ctlShell: string): string | undefined {
|
|
547
|
-
return
|
|
547
|
+
return /\bbunVersion = "(\d+\.\d+\.\d+)";/.exec(ctlShell)?.[1];
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
/** package.json's "packageManager" against the shell's Bun. They drifted once
|
|
@@ -553,7 +553,7 @@ export function pinnedBunVersion(ctlShell: string): string | undefined {
|
|
|
553
553
|
export function bunVersionProblems(repoRoot: string, ctlShellCanonical: string): string[] {
|
|
554
554
|
const want = pinnedBunVersion(ctlShellCanonical);
|
|
555
555
|
if (want === undefined) {
|
|
556
|
-
return [
|
|
556
|
+
return ['@norskvideo/ctl-dev-kit build/ctl-shell.nix names no Bun version on its pin (`bunVersion = "X.Y.Z";`).'];
|
|
557
557
|
}
|
|
558
558
|
const pkgPath = join(repoRoot, "package.json");
|
|
559
559
|
if (!existsSync(pkgPath)) return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norskvideo/ctl-dev-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.120",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@norskvideo/ctl-oas-to-ts": "^0.1.0",
|
|
48
|
-
"@norskvideo/norsk-sdk": "1.3.1-2026-10-
|
|
49
|
-
"@norskvideo/norsk-studio": "1.30.0-2026-10-
|
|
50
|
-
"@norskvideo/norsk-studio-builder": "1.30.0-2026-10-
|
|
51
|
-
"@norskvideo/norsk-studio-built-ins": "1.30.0-2026-10-
|
|
48
|
+
"@norskvideo/norsk-sdk": "1.3.1-2026-10-28-0dc6d7ee",
|
|
49
|
+
"@norskvideo/norsk-studio": "1.30.0-2026-10-28-892c8a05",
|
|
50
|
+
"@norskvideo/norsk-studio-builder": "1.30.0-2026-10-28-892c8a05",
|
|
51
|
+
"@norskvideo/norsk-studio-built-ins": "1.30.0-2026-10-28-892c8a05",
|
|
52
52
|
"@playwright/test": "^1.59.0",
|
|
53
53
|
"@testing-library/jest-dom": "^6.9.1",
|
|
54
54
|
"@testing-library/react": "^16.3.2",
|