-
Notifications
You must be signed in to change notification settings - Fork 48
REFACTOR: tiler reads VariableBuffer.alias_of instead of legacy _alias #203
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
mert-ogul
wants to merge
1
commit into
pulp-platform:devel
Choose a base branch
from
mert-ogul:refactor/tiler-alias-of-201
base: devel
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 all commits
Commits
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
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
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.
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.
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.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
Define one valid storage resolution rule for multi-parent aliases.
alias_ofnow permits multiple parents, but these consumers select a parent by name order. This can assign an arbitrary address. InDeeploy/TilingExtension/TilerExtension.py, an in-pattern parent can satisfy line 340 whiledealiasBuffer()selects another root that is absent fromnodeList; line 345 then fails.Deeploy/DeeployTypes.py#L570-L576: resolve all parent paths and require one canonical storage root, or reject conflicting roots.Deeploy/TilingExtension/MemoryScheduler.py#L658-L661: use the canonical storage parent or verify that all eligible parents have the same address.Deeploy/TilingExtension/TilerExtension.py#L337-L345: resolve the parent selected from the current pattern instead of an unrelated lexicographic parent.DeeployTest/testTypes.py#L227-L252: add a multi-parent case where the in-pattern parent is not the lexicographically first parent.📍 Affects 4 files
Deeploy/DeeployTypes.py#L570-L576(this comment)Deeploy/TilingExtension/MemoryScheduler.py#L658-L661Deeploy/TilingExtension/TilerExtension.py#L337-L345DeeployTest/testTypes.py#L227-L252🤖 Prompt for AI Agents
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.
I think this is a valid comment, can you please take a look?
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.
🧩 Analysis chain
🏁 Script executed:
Length of output: 21435
🏁 Script executed:
Length of output: 12040
@Xeratec, I confirmed that the finding is valid.VariableBuffer.alias_ofis aSet[str], and the PR objective requires multi-alias support. However,NetworkContext.dealiasBuffer()selectssorted(alias.alias_of)[0]. This selection does not define a storage rule when parent paths reach different roots.There is a concrete failure in
Deeploy/TilingExtension/TilerExtension.py. The code enters the alias branch when any parent is inblockNames. It then callsdealiasBuffer(). If the lexicographically first parent is outside the pattern,aliasNodesis empty and the assertion fails.MemoryScheduler.pyhas a related issue. It assigns the address space from a selected immediate in-pattern parent. However, its global-buffer shortcut first uses the root returned bydealiasBuffer(). That result can be unrelated to the in-pattern parent.The current built-in reshape template adds only one parent. Therefore, current reshape generation does not expose the defect. This does not invalidate the finding because the new representation and PR scope permit multiple parents.
I recommend keeping the finding open and changing the implementation to do one of these actions:
alias_ofpaths to resolve to the same storage root, and reject conflicting roots.dealiasBuffer(),MemoryScheduler, andTilerExtension.The test should add two parents where the in-pattern parent is not lexicographically first. It should verify either correct allocation from the selected storage root or a clear rejection of conflicting roots.
You are interacting with an AI system.