Repository navigation
harness: the PostgreSQL value-refusal cells read the remedy sentence from the product's text_remedy and run the declared-text remedy (see #1233) - #1247
Open
panchenkoai wants to merge 1 commit into
Conversation
…from the product's text_remedy and run the declared-text remedy (see #1233) Why: #1233 changed the PostgreSQL value-refusal wording; three live cells still asserted the old phrases and the nightly went red. What: types::text_remedy is the one sentence; the operator-contract remedy cell, the two-dimensional jsonb[] cell and the multi-dimensional int[] cell read it from there, and the remedy cell runs the declared-text remedy besides the query projection.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
#1233 changed the PostgreSQL value-refusal wording (the remedy is now "Declare
col: textundercolumns:... or project the column in the export'squery:"). Three live cells still asserted the old phrases, so Nightly Live is red (runs 45707637420, 45746063461 on 1d15cf1):live_operator_contract::an_unrepresentable_value_is_refused_by_code_postgres(remedy cell: "the refusal no longer saysmaps the sentinels to a real bound")live_type_policy::a_postgres_two_dimensional_jsonb_array_keeps_the_multi_dimensional_refusaltype_roundtrip pg_edge_cases::pg_edge_multidim_array_fails_loud_not_silent_nullThe product text is the owner-intended #1233; the tests were stale.
What
rivet::types::text_remedy(waspub(crate)) is re-exported;tests/commonexposestext_remedyandsays_text_remedyover it. The three cells derive the sentence from the product, so a later wording change cannot leave them stale.columns: { t: text }delivers the source, graded by the default oracle) besides the query projection. The old PG "exclude the column" remedy is dropped: the refusal no longer names it.maps the sentinels to a real bound,cast-to-text,::text/cast hints,Declare \``) in tests/ and dev/: no other cell asserts them. The CDC stream wording (NOT_ONE_DIMENSIONAL`, src/source/cdc/value.rs) is unchanged by types: a PostgreSQL date, time, timestamp or array column declared text is delivered as the server's text, and the value refusals name that remedy #1233 and its lib test still holds. MySQL/MSSQL/Oracle cells assert their own sentences and codes, not this one.Invariants
puband re-exported).Evidence
Summary 2 tests run: 0 passed, 2 failed;refuse-then-remedy: the refusal no longer says 'maps the sentinels to a real bound';Summary 1 test run: 0 passed, 1 failed(the failure must name the cast-to-text remediation)Summary 2 tests run: 2 passed(remedy celltest result: ok. 1 passed, both oracle grades PASS dst_count 2);Summary 1 test run: 1 passedNot verified here: repeat x5, the gate-env pass with a Postgres state URL (remedies are skipped there by design, named skip), seeded-recall, mutants on CI.