Repository navigation
v4 T-4 Phase-3: python.dag scalar-tower fact-bundle rework #3309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c17d64a
WIP: v4 T-4 Phase-3: python.dag per-language fact-bundle rework — sca…
briansrls fb06d4b
v4 T-4 Phase-3: python.dag scalar-tower fact-bundle rework
briansrls c6c48be
v4 T-4 Phase-3: finalize python.dag scalar-tower reseed design
briansrls 9744238
v4 T-4 Phase-3: correct ratchet-fix node ref in python.dag ledger rows
briansrls 68ef7ab
v4 T-4 Phase-3: SG-0 / P5 receipt for python.dag smoke test
briansrls a88c5ce
Merge remote-tracking branch 'origin/main' into session/stern-eagle-698
briansrls 62e2773
WIP: v4 T-4 Phase-3: python.dag per-language fact-bundle rework — sca…
briansrls 81bf071
Resolve merge conflicts: union python + cpp/lean/machine_code smoke t…
briansrls 958b4de
Merge remote-tracking branch 'origin/main' into session/stern-eagle-698
briansrls 55abb16
Merge remote-tracking branch 'origin/main' into session/stern-eagle-698
briansrls File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
28 changes: 28 additions & 0 deletions
28
src/v3/compiler/tests/integration/v4_extdeps_python_dag_smoke_test.rs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| //! **Layer:** integration | ||
|
briansrls marked this conversation as resolved.
Resolved
|
||
| //! | ||
| //! Smoke `compile_to_dag` on `src/v4/extdeps/languages/python.dag` — | ||
| //! T-4 Python primitive scaffold must lower+infer with **zero** module | ||
| //! diagnostics after the D2-REV scalar-tower fact-bundle Phase-3 rework | ||
| //! (flat `PythonScalar` coproduct; per-primitive grounding rows gated). | ||
|
|
||
| use v3_compiler::compile_to_dag; | ||
| use v3_compiler::CompileError; | ||
|
|
||
| const PYTHON_DAG: &str = include_str!("../../../../v4/extdeps/languages/python.dag"); | ||
| const PYTHON_PATH: &str = "src/v4/extdeps/languages/python.dag"; | ||
|
|
||
| #[test] | ||
| fn v4_extdeps_python_dag_compiles() { | ||
| match compile_to_dag(PYTHON_DAG, PYTHON_PATH) { | ||
| Ok(dag) => assert!( | ||
| dag.diagnostics().is_empty(), | ||
| "{PYTHON_PATH}: expected empty diagnostics, got {:?}", | ||
| dag.diagnostics().iter().collect::<Vec<_>>() | ||
| ), | ||
| Err(CompileError::Semantic(dag)) => panic!( | ||
| "{PYTHON_PATH}: semantic errors: {:?}", | ||
| dag.diagnostics().iter().collect::<Vec<_>>() | ||
| ), | ||
| Err(other) => panic!("{PYTHON_PATH}: {other:?}"), | ||
| } | ||
| } | ||
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.