Repository navigation
test(pipeline): a chain built before a job equals the chain built inside it (ITL-1470) - #579
Closed
eywalker wants to merge 8 commits into
Conversation
* docs(spiraldb): design the switch to spiral-sdk (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(spiraldb): state the evidence exactly (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(spiraldb)!: read SpiralDB through spiral-sdk (ITL-1186) Reading only: table source, connector reads, listing, pins, where and counts. Tests are being ported. Writes are refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(spiraldb): migration tool, sign-in check, review fixes (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(spiraldb): freeze the schema table's form, version 1 (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(spiraldb): name a changed table in the migration tool; test its steps (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(spiraldb): withdraw the migration marker on any failure after it; SpiralDB out of the write matrices (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(spiraldb): reading, refusals and the review findings (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(spiraldb): spiral-sdk, the schema table and the migration; conformance on fake and service (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(scripts): import spiral dynamically in the migration tool (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(spiraldb): say which reads refuse an incomplete record (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(spiraldb): refuse a source in a forked child before its inherited lock (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(spiraldb): CodeRabbit's review of the reading path (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(spiraldb): never adopt another program's schema table; hold the warning's lock (ITL-1186) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(pipeline): show a source by its assigned label (ITL-1454) Display only: the diagram, node preview, explain(), trace() and RestrictedAggregationWarning. No name, hash, id or stored path changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(sources): read a source's label past its class's hooks (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(pipeline): read the display-name tables through the spiral-sdk fake (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(spiraldb): hold no lock while issuing UnrecordedTableSchemaWarning (ITL-1454) A warning hook may wait for another thread that reads an unrecorded table. Addresses CodeRabbit's last thread on #550 (discussion_r4687711390). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(pipeline): narrow source labels to the diagram, preview and warning (ITL-1454) explain() and trace() are main's again: their public values must not move. Reading a label never raises, runs no metaclass hook, and a line break in a label is shown escaped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(pipeline): bind two labelled sources in either order (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(sources): read class data past metaclass properties too (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(sources): use only plain display parts (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…55) (#552) * feat(pipeline): show a source by its assigned label (ITL-1454) Display only: the diagram, node preview, explain(), trace() and RestrictedAggregationWarning. No name, hash, id or stored path changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(sources): read a source's label past its class's hooks (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(pipeline): read the display-name tables through the spiral-sdk fake (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(spiraldb): hold no lock while issuing UnrecordedTableSchemaWarning (ITL-1454) A warning hook may wait for another thread that reads an unrecorded table. Addresses CodeRabbit's last thread on #550 (discussion_r4687711390). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(pipeline): narrow source labels to the diagram, preview and warning (ITL-1454) explain() and trace() are main's again: their public values must not move. Reading a label never raises, runs no metaclass hook, and a line break in a label is shown escaped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(pipeline): bind two labelled sources in either order (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(sources): read class data past metaclass properties too (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(sources): use only plain display parts (ITL-1454) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(pipeline): draw a SemiJoin's right input as a constraint (ITL-1455) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(pipeline): read a constraint's declaration without running code (ITL-1455) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(pipeline): cover several constraining inputs, with stable test names (ITL-1455) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…rial (ITL-1459) (#556)
…s Tutorials (ITL-1460) (#557) * docs(tutorial): plain-language pass over Getting Started and the tutorial (ITL-1459) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(tutorial): say what the node of a source offers (ITL-1459) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(tutorial): say what batch gathers after group_by, and the stale output of an undone edit (ITL-1459) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(tutorial): split Part 8 into short tutorials and rename the section Tutorials (ITL-1460) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * docs(dev): style guide rules for short tutorials (ITL-1460) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ne-job-from-streams-made' into eywalker/itl-1470-a-stream-built-before-a-job-gets-other
…ide it (ITL-1470) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Author
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.
Fixes ITL-1470.
Stacked on #500 (ITL-1387). The base of this pull request is #500's branch, so the diff is the test, the changelog fragment and the plan. It goes against
mainonce #500 lands. There is no library change here: #500 is the fix.Reading the diff. This branch was made from current
main(5eb327a) with #500's branch merged in, and #500's branch is five commits behindmain. Until #500's branch hasmainmerged in, or the base of this pull request moves tomain, the diff here also shows those fivemaincommits. The files this pull request adds are three:tests/test_pipeline/test_stream_built_before_job.py,changelog.d/ITL-1470.mdanddocs/dev/plans/itl-1470-stream-built-before-a-job.md(commits a47ca72 and bbb6d29). The checks here therefore run #500 together with currentmain.Cause
Pipeline.compilemade a stream that a pod produced before thewithblock a source slot named<label>:<content hash>. The slot then did what a slot must (ITL-1112): it named its system-tag columns by the hash of its own declared schema, and its pipeline identity was that schema alone. Its content identity delegated to the bound stream. So the content hash stayed that of the chain, while the system-tag column names and the pipeline hash (and the pipeline-table path) moved.The right names are those of the chain built inside the job, which are also those of the plain stream: a single-stream operator keeps its input's system-tag column names. The slot rule is right for an explicit slot; the bug was making the stream a slot unasked. #500 removes that: a stream given to a step brings its upstream steps down to its sources.
Probe: before the job against inside it
unitsis aDictSourcewith tagss,uand datax,y; a function podadd(x, y)is added inside the job, over a chain built before the job or inside it. Columns: the job's nodes, the hash inadd's system-tag column names,add's content hash,add's pipeline hash.On
main(5eb327a):SelectTagColumns:<hash>,add5c5451d9cc030050283fd855bc73a2dd392bSelectTagColumns,add,units567df99d33170050283fd8550c0f0f1718ccMapTags:<hash>,addea17494f640f99c66b92e4b7db3d1330c806MapTags,add,units567df99d331799c66b92e4b764c08366c560MapTags:<hash>,addb99c44582f154c363a993935d4fc134cf989MapTags,SelectTagColumns,add,units567df99d33174c363a9939356747690efbc5SourceSpecMismatchError(ITL-1126)Join,SelectDataColumns,add,other,units567df99d3317,dca48bdd714c2464482e030d4463cbcb853dadd,units567df99d33178f5eff63a0367817bf4359b6add,units567df99d33178f5eff63a0367817bf4359b6On #500 (edb0e6d):
SelectTagColumns,add,units567df99d33170050283fd8550c0f0f1718ccSelectTagColumns,add,units567df99d33170050283fd8550c0f0f1718ccMapTags,add,units567df99d331799c66b92e4b764c08366c560MapTags,add,units567df99d331799c66b92e4b764c08366c560MapTags,SelectTagColumns,add,units567df99d33174c363a9939356747690efbc5MapTags,SelectTagColumns,add,units567df99d33174c363a9939356747690efbc5Join,SelectDataColumns,add,other,units567df99d3317,dca48bdd714c2464482e030d4463cbcb853dJoin,SelectDataColumns,add,other,units567df99d3317,dca48bdd714c2464482e030d4463cbcb853dadd,units567df99d33178f5eff63a0367817bf4359b6add,units567df99d33178f5eff63a0367817bf4359b6The plain stream outside any job equals the "inside" row in both tables.
On
mainthe two forms wrote their pipeline table at two paths (.../schema:<pipeline hash>), each with its own column names, and shared the function result table, which holds no system-tag column. So no single table held both sets of names; one content hash had two pipeline tables.The test
tests/test_pipeline/test_stream_built_before_job.py: a source with two tags and two data columns, a second source for the join, and a function pod with two outputs. Chains: select, map, select then map, join, join then select then map.test_a_chain_built_before_the_job_equals_the_chain_built_inside(each chain, sync and async): node names and types, content and pipeline hashes, every node's column names, system-tag column names and rows, stored table paths, stored column names and stored rows.test_the_job_node_has_the_names_and_hashes_of_the_plain_stream(each chain, built before and inside): the job's node against the same step outside any job.It fails on
main(15 of 20 fail: every before-against-inside case and every "before" case against the plain stream; the 5 "inside" cases pass) and passes on #500 (20 pass).What moves
Nothing beyond what #500 lists, and only for a job whose step in a
withblock takes a stream a pod produced before the block:<label>:<hash>is replaced by the upstream steps and the real sources;Unchanged: content hashes, the function result-table path and its rows, source ids, record ids. No golden value moves (
generate_golden_hashes.py --checkmatches on #500's head). No design-issues entry (coordinator's decision).The plan is
docs/dev/plans/itl-1470-stream-built-before-a-job.md.🤖 Generated with Claude Code