Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 113 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,10 @@ jobs:
- 'scripts/ci/assert-turbo-remote-cache.mjs'
- 'scripts/ci/prune-turbo-cache.mjs'
- 'scripts/population-floor.mjs'
# [#38528] The temporal_live coverage gate Build Core runs before
# the build (its step says why there): a change to the gate runs
# the gate.
- 'scripts/check-temporal-live-filter.mjs'
# Test inputs that live OUTSIDE every package (#9829, #10015). Packages
# whose suites read across their own boundary declare that radius in
# scripts/check-cross-package-test-inputs.mjs, and turbo.json mirrors each
Expand Down Expand Up @@ -837,44 +841,107 @@ jobs:
# [#37095] What makes the merge queue run `temporal-conformance`
# (ruling record 7146156389): the pgvector store, the driver whose
# whole suite that job runs against the live servers, the
# live-server files its filtered steps select (the two
# metadata-protocol globs spell that step's `live-mysql
# live-postgres` substrings), the service-analytics files whose
# live-PostgreSQL cells key on OS_TEST_POSTGRES_URL (#21564; no glob
# selects exactly these, so they are listed: a NEW such file must
# be added here by hand), and this file.
# live-server files its filtered steps select, the service-analytics
# files whose live-PostgreSQL cells key on OS_TEST_POSTGRES_URL
# (#21564), and this file.
#
# [#38528] AND every workspace source those tests LOAD. A live test
# reaches other packages' source through its vitest alias, and their
# `dist/` (built from `src/` by the job's build steps) through the
# package link; a row for the test alone left the source under test
# unscheduled, so a queue entry changing only that source skipped
# this job, landed, and went red first on `main`.
# `node scripts/check-temporal-live-filter.mjs` (`--self-test` beside it)
# walks each live test's run-time import closure the way vitest
# resolves it and reds on a closure file no row below matches;
# `--list` prints each closure and the row covering each file. A row
# is a package's `src/**` where the closure enters through the
# package's barrel (it then reaches nearly every module, and a
# file-by-file list would red on the next re-export), a narrower
# directory where it reaches one corner of a package, and a literal
# path for a single file. The service-analytics `src/**` row and the
# metadata-protocol `src/**` row replace the per-file and per-glob
# rows those packages carried, which they cover.
temporal_live:
- 'packages/plugins/knowledge-pgvector/**'
# [#37100] The adapter contract suite the pgvector store runs
# against the live PostgreSQL: a change to it is a change to that
# step's verdict.
- 'packages/services/service-knowledge/src/testing.ts'
- 'packages/drivers/driver-sql/**'
- 'packages/metadata-protocol/src/**/*live-mysql*'
- 'packages/metadata-protocol/src/**/*live-postgres*'
- 'packages/runtime/src/**/cascade-delete-multivalue-lookup-real-driver*'
- 'packages/services/service-analytics/src/__tests__/analytics-faces-one-lowering.test.ts'
- 'packages/services/service-analytics/src/__tests__/cube-measure-field-type-door.test.ts'
- 'packages/services/service-analytics/src/__tests__/cube-measure-relationship-path-type.test.ts'
- 'packages/services/service-analytics/src/__tests__/dataset-duration-measure.test.ts'
- 'packages/services/service-analytics/src/__tests__/dataset-tools.test.ts'
- 'packages/services/service-analytics/src/__tests__/home-amount-consolidated-measure.test.ts'
- 'packages/services/service-analytics/src/__tests__/json-stored-door-live-drivers.test.ts'
- 'packages/services/service-analytics/src/__tests__/json-stored-door-undeclared-join.test.ts'
- 'packages/services/service-analytics/src/__tests__/list-at-scalar-operator-both-faces.test.ts'
- 'packages/services/service-analytics/src/__tests__/native-sql-aggregate-policies.test.ts'
- 'packages/services/service-analytics/src/__tests__/native-sql-base-column-qualify.test.ts'
- 'packages/services/service-analytics/src/__tests__/native-sql-boolean-comparand-door.test.ts'
- 'packages/services/service-analytics/src/__tests__/native-sql-empty-sum-order-window.test.ts'
- 'packages/services/service-analytics/src/__tests__/native-sql-measure-number-presentation.test.ts'
- 'packages/services/service-analytics/src/__tests__/native-sql-number-comparand-door.test.ts'
- 'packages/services/service-analytics/src/__tests__/native-sql-offset-only-window.test.ts'
- 'packages/services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts'
- 'packages/services/service-analytics/src/__tests__/objectql-echo-date-bucket.test.ts'
- 'packages/services/service-analytics/src/__tests__/objectql-echo-offset-only-window.test.ts'
- 'packages/services/service-analytics/src/__tests__/objectql-face-order-limit.test.ts'
- 'packages/services/service-analytics/src/__tests__/order-key-selected.test.ts'
- 'packages/services/service-analytics/src/__tests__/read-scope-temporal-coercion.test.ts'
# [#37100] The adapter contract suite the pgvector store runs
# against the live PostgreSQL (`src/testing.ts`), and [#38528]
# the service it is a store of: every knowledge-pgvector live
# file loads `KnowledgeServicePlugin` through the alias.
- 'packages/services/service-knowledge/src/**'
# [#38528] The migration statements the metadata-protocol live
# files execute (they import the migration beside them, and the
# package barrel through objectql), and the manifest
# `discovery-version.ts` imports.
- 'packages/metadata-protocol/src/**'
- 'packages/metadata-protocol/package.json'
# [#21564] The live-PostgreSQL cells of service-analytics, and
# [#38528] the service they test.
- 'packages/services/service-analytics/src/**'
# [#38528] The packages every live test loads through the alias
# or the package link, each reached through its barrel:
# `@objectstack/core` (capability-mount.live-postgres loads
# `capability-composition.ts`; driver-sql's `sql-driver.ts`
# imports the barrel), objectql (the knowledge-pgvector and
# analytics files run ObjectQL over SqlDriver), and what those
# barrels import in turn.
- 'packages/core/src/**'
- 'packages/objectql/src/**'
- 'packages/types/src/**'
- 'packages/formula/src/**'
- 'packages/metadata/src/**'
- 'packages/metadata-core/src/**'
- 'packages/metadata-fs/src/**'
- 'packages/lint/src/**'
- 'packages/sdui-parser/src/**'
- 'packages/observability/src/**'
- 'packages/services/service-settings/src/**'
# [#38528] KnowledgeServicePlugin's default embedder and the
# `@objectstack/platform-objects/system` objects it registers.
- 'packages/plugins/embedder-openai/src/**'
- 'packages/platform-objects/src/system/**'
# [#38528] The analytics bucket-enumeration live file runs the
# wasm SQLite driver beside PostgreSQL.
- 'packages/drivers/driver-sqlite-wasm/src/**'
# [#38528] `@objectstack/spec`, loaded through the alias by its
# barrel: every namespace it re-exports and the root modules.
# Not `src/**`: `src/migrations/` (two thirds of the tree, the
# conversion kits) and `src/studio/` are outside every closure.
- 'packages/spec/src/*.ts'
- 'packages/spec/src/ai/**'
- 'packages/spec/src/api/**'
- 'packages/spec/src/automation/**'
- 'packages/spec/src/contracts/**'
- 'packages/spec/src/conversions/**'
- 'packages/spec/src/data/**'
- 'packages/spec/src/identity/**'
- 'packages/spec/src/integration/**'
- 'packages/spec/src/kernel/**'
- 'packages/spec/src/marketplace/**'
- 'packages/spec/src/meta-spelling/**'
- 'packages/spec/src/qa/**'
- 'packages/spec/src/security/**'
- 'packages/spec/src/shared/**'
- 'packages/spec/src/system/**'
- 'packages/spec/src/ui/**'
# The manifest `metadata-core`'s artifact conversion reads.
- 'packages/spec/package.json'
# [#38528] What the live tests' vitest configs load before any
# test: the configs outside a row above, the preflight runtime's
# config runs, the memory-tmp env helper, and the comment mask
# driver-sql's isolation test imports.
- 'packages/metadata-protocol/vitest.config.ts'
- 'packages/runtime/vitest.config.ts'
- 'packages/services/service-analytics/vitest.config.ts'
- 'packages/qa/vitest-filter-preflight/src/**'
- 'packages/runtime/src/expected-read-refusal-noise.ts'
- 'scripts/vitest-memory-tmp.mjs'
- 'scripts/js-comment-mask.mjs'
- 'scripts/invoked-as.mjs'
# [#38528] The guard that holds this list to the closures.
- 'scripts/check-temporal-live-filter.mjs'
- '.github/workflows/ci.yml'

# ── WHICH TEST CORE SHARDS START (#26084) ─────────────────────────────
Expand Down Expand Up @@ -3419,6 +3486,18 @@ jobs:
- name: prune-turbo-cache self-test
run: node scripts/ci/prune-turbo-cache.mjs --self-test

# [#38528] The `temporal_live` filter above must hold every workspace
# source the live-server tests of `temporal-conformance` load, or a queue
# entry changing only that source skips the live job and goes red first on
# `main`. This gate walks those tests' import closures and reds on a file
# no row matches (its header is the authority). Here because Build Core
# starts on every diff that can move a closure or the list (`packages/**`,
# this file, the gate itself are `core` rows) and installs the workspace
# the gate reads vitest configs with; it reads no `dist/`, so it runs
# before the build, like the self-tests above.
- name: temporal_live covers every source a live test loads
run: node scripts/check-temporal-live-filter.mjs --self-test && node scripts/check-temporal-live-filter.mjs

# ── Turbo remote cache (#21186) ─────────────────────────────────────
# Vercel's managed Turborepo remote cache. objectstack-ai/cloud's
# test.yml builds this repo at its pinned SHA with the same command and
Expand Down
Loading
Loading