Skip to content
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

Allow symlink'd experimental folder by using absolute and not resolved paths #798

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

zulissimeta
Copy link
Collaborator

@zulissimeta zulissimeta commented Aug 7, 2024

Currently we ask developers to put dev code into fairchem/src/fairchem/experimental. These paths are then loaded automatically. The current code resolves any paths, so if fairchem/src/fairchem/experimental is a symlink (say to a github repo cloned elsewhere) the crawler will fail as the paths do not look relative to the fairchem root.

This PR would remove the .resolve() calls (replacing with .absolute() where appropriate) in the import so that the folder will be crawled without resolving symlinks.

@zulissimeta zulissimeta changed the title Allow symlink'ed experimental folder by using absolute and not resolved paths Allow symlink'd experimental folder by using absolute and not resolved paths Aug 7, 2024
@zulissimeta zulissimeta requested review from misko and levineds August 7, 2024 23:10
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/fairchem/core/common/utils.py 65.74% <100.00%> (ø)

Copy link
Collaborator

@lbluque lbluque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zulissimeta zulissimeta enabled auto-merge August 8, 2024 01:03
@zulissimeta zulissimeta added this pull request to the merge queue Aug 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 8, 2024
@zulissimeta zulissimeta added this pull request to the merge queue Aug 8, 2024
Merged via the queue into main with commit 21d936f Aug 8, 2024
7 checks passed
@zulissimeta zulissimeta deleted the no_experimental_resolve branch August 8, 2024 17:55
@zulissimeta zulissimeta added minor Minor version release major Major / breaking version release patch Patch version release and removed major Major / breaking version release patch Patch version release labels Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Minor version release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants