-
Notifications
You must be signed in to change notification settings - Fork 23
fix: Re-evaluate a step's template-scope let bindings in template scope #362
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
Open
leongdl
wants to merge
11
commits into
OpenJobDescription:mainline
Choose a base branch
from
leongdl:fix/template-scope-let-path-format
base: mainline
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
dbfd1b5
fix: Re-evaluate a step's template-scope let bindings in template scope
leongdl 32eafb2
fix: Re-tag template-scope let values to host format before seeding them
leongdl 473d2eb
test: Put both step-level bindings in the template-scope prefix
leongdl 2d2cfc1
fix: Narrow the template-scope let prefix to format-neutral symbols
leongdl 3bb92ad
test: Make the let-split assertions host-aware instead of POSIX-only
leongdl d5398e5
fix: Keep host-context rules out of the template-scope let scope
leongdl 5c3c8c9
fix: Read a step's resolved let instead of re-deriving it
leongdl 27054b3
refactor: Drop unused script param from let helpers
leongdl 8d0f1c8
test: Fix two unsound let-binding assertions
leongdl b93b338
refactor: Collapse the duplicate let-binding helper and correct two d…
leongdl ded3168
docs: Correct the empty-let purity test to a dependency-boundary claim
leongdl 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The graceful-degradation design here means the fix is a silent no-op on the declared dependency floor.
pyproject.tomlpinsopenjd-model >= 0.11.6, < 0.12; on 0.11.6 neitherpath_formatnor_template_scope_let_countexists, sogetattr(..., 0)returns 0, the split never happens, and the Windows PATH-rendering divergence this PR exists to fix is still live. An installation that resolves to the floor gets none of the fix and no signal that it did not.If the model-side half has shipped, the floor should be raised to that version and this two-branch forward +
getattrfallback can collapse to the unconditional form the comment already anticipates. If it has not shipped yet, consider a follow-up marker so the floor bump is not forgotten — as written there is nothing in the tree that will fail when the model catches up.Relatedly, the new tests do not degrade the way the source does:
test_template_scope_let_split.py::test_path_format_is_load_bearingandTestEndToEndScopeAgreement::test_a_step_level_path_binding_agrees_across_the_two_evaluationscallapply_let_bindings(..., path_format=...)directly, which raisesTypeErroron a floor-version model. So the suite already assumes a model newer than the declared floor.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, and blocked rather than fixable here: released
openjd-model0.11.6 has neitherpath_formatnor_template_scope_let_count, so on the declared floor the split never happens. The floor gets raised to the release carrying openjd-model#341, which is step 4 of the merge order and also clears the known mypy failure. Staying open until that releases.