feat(consistent symlink): modify the IsSymlink method to identify both legacy as well as standard representation#4428
Conversation
0b8f1cd to
4287bf6
Compare
4936f08 to
b9d41ae
Compare
4287bf6 to
ee858ec
Compare
b9d41ae to
785688d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4428 +/- ##
=======================================
Coverage 83.31% 83.32%
=======================================
Files 163 163
Lines 19997 20000 +3
=======================================
+ Hits 16661 16665 +4
+ Misses 2717 2716 -1
Partials 619 619
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
785688d to
b8436c9
Compare
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves GCSFuse's interoperability by enabling it to consistently recognize symlinks created by various Google Cloud clients, including Storage Transfer Service (STS). By updating the symlink detection logic to support both legacy and standard GCS symlink formats, GCSFuse can now provide a more unified and reliable experience for users working with symbolic links across different Google Cloud services. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request updates the IsSymlink function to support a new StandardSymlinkMetadataKey for identifying symlinks, while maintaining backward compatibility with the deprecated SymlinkMetadataKey. The updated logic now checks for the legacy key's presence first, and if not found, then checks if the StandardSymlinkMetadataKey has a value of "true". A deprecation note has been added for the legacy key, and new unit tests have been introduced to validate the IsSymlink function's behavior with the new standard metadata key.
Description
This PR updates the IsSymlink method in GCSFuse to recognize both the legacy GCSFuse-specific symlink representation and the standard GCS symlink representation used by clients like Storage Transfer Service (STS)
Context: go/sts-consistent-symlink-handling-in-gcsfuse
Link to the issue in case of a bug fix.
b/489240501
Testing details
Any backward incompatible change? If so, please explain.
No