-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Cleanup external data path validation #27539
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
Merged
adrianlizarraga
merged 30 commits into
main
from
adrianl/InMemModel_ExtDataPath_SymLinkCheck
Mar 14, 2026
Merged
Changes from 14 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
7ca5f45
Resolve symlinks when validating external data path for models loaded…
adrianlizarraga 579974d
Add debugging if test does not fail as expected
adrianlizarraga b1c99d4
Skip one test on Android because we cant pratically create a file out…
adrianlizarraga d9c2137
Experiment: use same code in wasm
adrianlizarraga f74cc9a
Merge branch 'main' into adrianl/InMemModel_ExtDataPath_SymLinkCheck
adrianlizarraga 1a35f8d
Dont check cwd on wasm builds
adrianlizarraga a414b6f
Merge main and resolve conflicts
adrianlizarraga 46bbe20
Use the std::filesystem functions that return a std::error_code inste…
adrianlizarraga 13d87b2
Simplify validation function with helpers
adrianlizarraga 017f1d2
Clean up
adrianlizarraga 2eaa639
Remove base_dir parameter from ValidateExternalDataPath
adrianlizarraga ced629a
Add handling and tests for relative model paths
adrianlizarraga 627d4af
Detect if CWD == root_dir in tests
adrianlizarraga f0ef6dd
Update comment on test edge case
adrianlizarraga 9c5a0f6
Start addressing some review comments
adrianlizarraga a62b6a3
Merge branch 'main' into adrianl/InMemModel_ExtDataPath_SymLinkCheck
adrianlizarraga 75c7e9e
Update test's expected result when the cwd is at the filesystem root …
adrianlizarraga a41425b
Remove #if __wasm__ from tests to get logs
adrianlizarraga b8b4328
Merge branch 'main' into adrianl/InMemModel_ExtDataPath_SymLinkCheck
adrianlizarraga e36fcc5
Address more review comments: defer wasm handling, edit error message…
adrianlizarraga 595055a
Use a set to prevent repeated validation attempts
adrianlizarraga 4cd24c2
Require external data path to exist
adrianlizarraga 020a106
Update comment and use #ifdef __wasm__
adrianlizarraga 0f79804
Use std::move() and update comment to mention wasm logic
adrianlizarraga 6d4050b
Add #ifdef for Win32 test
adrianlizarraga 944213a
Review comments == simplify
adrianlizarraga 6f397ca
Use fs::is_symlink and adjust error messages
adrianlizarraga c7a6a75
Merge branch 'main' into adrianl/InMemModel_ExtDataPath_SymLinkCheck
adrianlizarraga 7cc1a7c
Add is_symlink error code message to returned status
adrianlizarraga 85951fd
Merge branch 'main' into adrianl/InMemModel_ExtDataPath_SymLinkCheck
adrianlizarraga 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
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.