Skip to content

TML-3532: The SQL ORM reads and writes only the columns a model's fields map #2909

TML-3532: The SQL ORM reads and writes only the columns a model's fields map

TML-3532: The SQL ORM reads and writes only the columns a model's fields map #2909

Triggered via pull request October 9, 2026 08:12
Status Failure
Total duration 12m 24s
Artifacts –

ci.yml

on: pull_request
Matrix: test-packages
Matrix: test-integration
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 14 notices
Package Tests (3/4)
Process completed with exit code 1.
Package Tests (3/4)
Process completed with exit code 1.
[@internal/target-postgres] test/psl-print/refusals-models.test.ts > models and relations > refuses a many-to-many relation whose junction model has no relation back to it: packages/3-targets/3-targets/postgres/test/psl-print/refusal-support.ts#L113
ContractValidationError: Relation "tags" on model "public:Widget" joins on "id", which is not a column of junction table "public.WidgetTag" ❯ validateRelationJoinFields ../../../2-sql/1-core/contract/src/validators.ts:883:21 ❯ validateSqlContractFully ../../../2-sql/1-core/contract/src/validators.ts:1099:3 ❯ PostgresContractSerializer.parseSqlContractStructure ../../../2-sql/9-family/src/core/ir/sql-contract-serializer-base.ts:127:12 ❯ PostgresContractSerializer.deserializeContract ../../../2-sql/9-family/src/core/ir/sql-contract-serializer-base.ts:105:60 ❯ deserialize test/psl-print/refusal-support.ts:113:38 ❯ printingWidget test/psl-print/refusal-support.ts:140:19 ❯ test/psl-print/refusals-models.test.ts:182:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'CONTRACT.VALIDATION_FAILED', phase: 'domain' }
Coverage
Process completed with exit code 1.
[@internal/target-postgres] test/psl-print/refusals-models.test.ts > models and relations > refuses a many-to-many relation whose junction model has no relation back to it: packages/3-targets/3-targets/postgres/test/psl-print/refusal-support.ts#L113
ContractValidationError: Relation "tags" on model "public:Widget" joins on "id", which is not a column of junction table "public.WidgetTag" ❯ validateRelationJoinFields ../../../2-sql/1-core/contract/src/validators.ts:883:21 ❯ validateSqlContractFully ../../../2-sql/1-core/contract/src/validators.ts:1099:3 ❯ PostgresContractSerializer.parseSqlContractStructure ../../../2-sql/9-family/src/core/ir/sql-contract-serializer-base.ts:127:12 ❯ PostgresContractSerializer.deserializeContract ../../../2-sql/9-family/src/core/ir/sql-contract-serializer-base.ts:105:60 ❯ deserialize test/psl-print/refusal-support.ts:113:38 ❯ printingWidget test/psl-print/refusal-support.ts:140:19 ❯ test/psl-print/refusals-models.test.ts:182:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'CONTRACT.VALIDATION_FAILED', phase: 'domain' }
Test
Process completed with exit code 1.
Detect inert diff
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Build
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
E2E Tests
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Type Check
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Supabase Acceptance
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Package Tests (4/4)
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Test Examples
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Package Tests (2/4)
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Package Tests (3/4)
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Package Tests (1/4)
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Fixtures
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Coverage
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Test
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Lint
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"