delphix / virtualization-sdk

Delphix vSDK.
Apache License 2.0
7 stars 25 forks source link

DLPX-79403 ENVIRONMENT_DISCOVER operation fails with PluginSocketNotReadyException for EBS vsdk plugin on dvp 4.0.2 #431

Closed SumoSourabh closed 2 years ago

SumoSourabh commented 2 years ago

Context:

When plugin developers add symlink folders to /src directory, dvp build does not create .pyc files in the same folder because of the missing legacy=true when compiling build folder.

Plugin developers can use symlink folders as they have common code which they would like to use when developing plugins for different systems like WINDOWS or UNIX.

Problem:

Absence of .pyc files for symlinks folder after build fails the plugin imports.

Solution:

When we copy the src folder to build folder, we copy the symlink folder as a folder to build folder. Compiling the build folder after the copy using legacy=true creates the .pyc files in the same folder which can be copied to zip files.

Testing

Notes To Reviewers: