@starci/hfs 4.7.2 → 4.7.3
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/runtime/knowledge/hfs/canon-pins.yaml +4 -4
- package/runtime/knowledge/hfs/ci-standard.yaml +1 -1
- package/sync/ci-commands.mjs +5 -4
- package/templates/app/ci-workflows/github/workflows/ci.yml +3 -1
- package/templates/app/ci-workflows-lite/github/workflows/ci.yml +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.7.3 - 2026-10-18
|
|
4
|
+
- Fixed: the managed CI typecheck step declares the CI standard's raised Node heap, preventing the NIVO release candidate's typecheck from exhausting Node's default heap; the CI standard checks typecheck steps too.
|
|
5
|
+
- Fixed: the fresh coverage job runs codegen before the whole-app coverage proof, preparing ignored GraphQL wire types before the app check or its isolated example copy starts; a failed generator stops the proof.
|
|
6
|
+
|
|
3
7
|
## 4.7.2 - 2026-10-18
|
|
4
8
|
- Fixed: `app coverage merge` merges the shard istanbul maps through the installed @starci/jest-preset/merge (4.7.1 merged lcov text and reported phantom gaps on real data); the managed unit step sets STARCI_COVERAGE_SHARD and uploads coverage-final.json; `app lint` accepts a canon inside the app's linked node_modules.
|
|
5
9
|
|
package/package.json
CHANGED
|
@@ -29,14 +29,14 @@ pins:
|
|
|
29
29
|
source: packages/grammar/package.json
|
|
30
30
|
why: 'the grammar front ends read: the brand layer sets `--font-sans` and `--font-mono` and the grammar reads them; it carries the Input tel kind, the copyable and read-only Input, the IconButton disclosure props and count badge, ChatBubble, FillViewport, Textarea mentions and Enter-to-send, the leading PrimaryRailLayout rail, the plate-less Image, ListRow, the soft Alert, Progress steps, the floating primary IconButton, FlowGraph, the STATE-8 loading views and the bordered selectable TagGroup chips. The runtime source version wins for a @starci package.'
|
|
31
31
|
'@starci/eslint-canon-be':
|
|
32
|
-
version: 3.4.
|
|
32
|
+
version: 3.4.9
|
|
33
33
|
group: starci
|
|
34
34
|
install: registry
|
|
35
35
|
side: be
|
|
36
36
|
source: packages/eslint/be/package.json
|
|
37
37
|
why: 'the back-end ESLint canon: `loadHfs(import.meta.url)` of be/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the be side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; `starciBeConfig({ hfs: loadHfs(import.meta.url) })` is the typed factory and the BE-CONVENTION laws are its rules.'
|
|
38
38
|
'@starci/eslint-canon-fe':
|
|
39
|
-
version: 8.4.
|
|
39
|
+
version: 8.4.9
|
|
40
40
|
group: starci
|
|
41
41
|
install: registry
|
|
42
42
|
side: fe
|
|
@@ -76,14 +76,14 @@ pins:
|
|
|
76
76
|
source: packages/test-world/package.json
|
|
77
77
|
why: 'the shared e2e library of every back end (R47, R48), a devDependency of every back end: the warm stack behind toxiproxy, the network-edge fakes, the Nest boot, the typed useTestWorld handle, useSandbox for contract specs and the outage lock. Kafka is real own infra (the one digest-pinned apache/kafka KRaft image, a broker listener and proxy per slot, slot-prefixed topics, consumer groups and client ids) and Postgres is schema-per-context (a schema and a login role per context in a shared database). Each worker has its own data slot (<ns>_w<k>) with its own databases, Keycloak realm, leased Redis DB, bucket/collection/topic prefixes, fakes host, toxiproxy proxies and outage lock; a run provisions min(jest workers, workers cap, default 2) slots, and state file protocol 2 pairs exactly with @starci/jest-preset (TEST_WORLD_PAIR_MISMATCH otherwise). A modules world boots real peer apps beside its modules, world.apps.<name>.during(fn) is the outage of a peer app, w.keycloak.clientSecret(client) answers the run-generated secret of a confidential realm client, world.keycloak.events/sessions read the realm user events and live sessions, world.infra.postgresql.connection(name) takes one database connection down while the others serve, and world.resolve and scope.resolve take any Nest token. Every path a declaration names (`stack`, seeds, the realm, Dockerfiles) resolves from the app root (the directory of hfs.json); the globalSetup registers the path aliases as TypeScript resolves them. Its CLI main is exported at ./cli for starci app stack.'
|
|
78
78
|
'@starci/cli':
|
|
79
|
-
version: 1.7.
|
|
79
|
+
version: 1.7.3
|
|
80
80
|
group: starci
|
|
81
81
|
install: registry
|
|
82
82
|
side: both
|
|
83
83
|
source: packages/cli/package.json
|
|
84
84
|
why: 'the only StarCi command package; product repositories install it for starci app, while @starci/hfs remains its pinned transitive implementation.'
|
|
85
85
|
'@starci/hfs':
|
|
86
|
-
version: 4.7.
|
|
86
|
+
version: 4.7.3
|
|
87
87
|
group: starci
|
|
88
88
|
install: registry
|
|
89
89
|
side: both
|
|
@@ -27,7 +27,7 @@ defaults:
|
|
|
27
27
|
# The steps that need a raised Node heap on the GitHub runner, matched on their `run` text, and the least heap they must declare in NODE_OPTIONS.
|
|
28
28
|
heap:
|
|
29
29
|
minMiB: 6144
|
|
30
|
-
steps: ['npm run lint', 'app lint', 'app check --coverage-from']
|
|
30
|
+
steps: ['npm run typecheck', 'npm run lint', 'app lint', 'app check --coverage-from']
|
|
31
31
|
|
|
32
32
|
items:
|
|
33
33
|
- id: candidate-trigger
|
package/sync/ci-commands.mjs
CHANGED
|
@@ -210,11 +210,12 @@ function sonarMergeSteps(condition) {
|
|
|
210
210
|
const STANDARD = new URL('../runtime/knowledge/hfs/ci-standard.yaml', import.meta.url);
|
|
211
211
|
/** The per-job settings of the managed CI: ci.jobs.<job>.timeoutMinutes and ci.jobs.test.shards of the manifest over the defaults of the CI standard. */
|
|
212
212
|
function ciJobSettings(declaration) {
|
|
213
|
-
const defaults = parseYaml(fs.readFileSync(STANDARD, 'utf8'))
|
|
213
|
+
const { defaults, heap } = parseYaml(fs.readFileSync(STANDARD, 'utf8'));
|
|
214
214
|
const jobs = declaration?.ci?.jobs ?? {};
|
|
215
215
|
const timeout = (job) => String(jobs[job]?.timeoutMinutes ?? defaults.timeoutMinutes[job]);
|
|
216
216
|
const shards = Number(jobs.test?.shards ?? defaults.shards);
|
|
217
217
|
return {
|
|
218
|
+
nodeOptions: `--max-old-space-size=${heap.minMiB}`,
|
|
218
219
|
timeoutFast: timeout('fast'), timeoutLint: timeout('lint'), timeoutTest: timeout('test'), timeoutCoverage: timeout('coverage'),
|
|
219
220
|
timeoutBuild: timeout('build'), timeoutSonar: timeout('sonar'), timeoutDbTypes: timeout('db-types'),
|
|
220
221
|
testShards: `[${Array.from({ length: shards }, (_, index) => index + 1).join(', ')}]`, testShardTotal: String(shards),
|
|
@@ -240,7 +241,7 @@ export function ciWorkflowCommands(source, lcovReport = 'be/coverage/lcov.info',
|
|
|
240
241
|
ciBuildSteps: build.steps,
|
|
241
242
|
ciLint: exampleCommand(source, 'npm run lint'),
|
|
242
243
|
ciLintSonar: exampleCommand(source, 'npm run lint -- --sonar reports/lint.sonar.json'),
|
|
243
|
-
ciCoverageProof: exampleCommand(source, 'npx starci app check --coverage-from ' + lcovReport),
|
|
244
|
+
ciCoverageProof: 'npm run codegen --silent && ' + exampleCommand(source, 'npx starci app check --coverage-from ' + lcovReport),
|
|
244
245
|
ciDatabaseLint: exampleCommand(source, 'npm run db:lint'),
|
|
245
246
|
auditCommand: `npm audit${audit.omitDev ? ' --omit=dev' : ''} --audit-level=${audit.level}`,
|
|
246
247
|
sonarTokenSecret: sonar?.token ?? 'SONAR_TOKEN',
|
|
@@ -252,13 +253,13 @@ export function ciWorkflowCommands(source, lcovReport = 'be/coverage/lcov.info',
|
|
|
252
253
|
...(sonar ? [" if: env.SONAR_TOKEN == ''"] : []),
|
|
253
254
|
` run: ${exampleCommand(source, 'npm run lint -- --side ' + side)}`,
|
|
254
255
|
' env:',
|
|
255
|
-
|
|
256
|
+
` NODE_OPTIONS: ${settings.nodeOptions}`,
|
|
256
257
|
...(sonar ? [
|
|
257
258
|
' - name: lint with Sonar import',
|
|
258
259
|
" if: env.SONAR_TOKEN != ''",
|
|
259
260
|
` run: ${exampleCommand(source, 'npm run lint -- --side ' + side + ' --sonar reports/lint.' + side + '.sonar.json')}`,
|
|
260
261
|
' env:',
|
|
261
|
-
|
|
262
|
+
` NODE_OPTIONS: ${settings.nodeOptions}`,
|
|
262
263
|
` - uses: ${UPLOAD_ARTIFACT}`,
|
|
263
264
|
// Inside an if: expression the matrix value is an argument of format(), never a nested ${{ }} (actionlint: a nested expression makes the condition always true).
|
|
264
265
|
" if: always() && env.SONAR_TOKEN != '' && hashFiles(format('reports/lint.{0}.sonar.json', matrix.side)) != ''",
|
|
@@ -30,6 +30,8 @@ jobs:
|
|
|
30
30
|
run: npm run format:check
|
|
31
31
|
- name: typecheck
|
|
32
32
|
run: npm run typecheck
|
|
33
|
+
env:
|
|
34
|
+
NODE_OPTIONS: {{nodeOptions}}
|
|
33
35
|
|
|
34
36
|
lint:
|
|
35
37
|
timeout-minutes: {{timeoutLint}}
|
|
@@ -86,7 +88,7 @@ jobs:
|
|
|
86
88
|
- name: coverage proof
|
|
87
89
|
run: {{ciCoverageProof}}
|
|
88
90
|
env:
|
|
89
|
-
NODE_OPTIONS:
|
|
91
|
+
NODE_OPTIONS: {{nodeOptions}}
|
|
90
92
|
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
91
93
|
if: always() && hashFiles('{{lcovReport}}') != ''
|
|
92
94
|
with:
|
|
@@ -30,6 +30,8 @@ jobs:
|
|
|
30
30
|
run: npm run format:check
|
|
31
31
|
- name: typecheck
|
|
32
32
|
run: npm run typecheck
|
|
33
|
+
env:
|
|
34
|
+
NODE_OPTIONS: {{nodeOptions}}
|
|
33
35
|
|
|
34
36
|
lint:
|
|
35
37
|
timeout-minutes: {{timeoutLint}}
|
|
@@ -86,7 +88,7 @@ jobs:
|
|
|
86
88
|
- name: coverage proof
|
|
87
89
|
run: {{ciCoverageProof}}
|
|
88
90
|
env:
|
|
89
|
-
NODE_OPTIONS:
|
|
91
|
+
NODE_OPTIONS: {{nodeOptions}}
|
|
90
92
|
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
91
93
|
if: always() && hashFiles('{{lcovReport}}') != ''
|
|
92
94
|
with:
|