durgaprasadml opened a new pull request, #40698:
URL: https://github.com/apache/superset/pull/40698

   ### SUMMARY
   
   Fixes a startup/import failure caused by missing geohash module availability 
in fresh environments and CI setups.
   
   Recent CI runs on both Superset 4.x and 6.x started failing during 
initialization with:
   
   python ModuleNotFoundError: No module named 'geohash' 
   
   This PR adds a compatibility-safe fallback mechanism for geohash imports and 
improves resilience across environments where different geohash package 
variants are installed.
   
   ### ROOT CAUSE
   
   The Python geohash ecosystem contains multiple package variants (geohash, 
python-geohash, geohash2) that expose different module names and installation 
behaviors.
   
   Recent dependency/environment changes caused Superset initialization to fail 
in clean CI environments where the expected geohash module was unavailable.
   
   ### CHANGES
   
   - Added robust geohash import compatibility handling
   - Improved fallback behavior for supported geohash implementations
   - Prevented initialization failures in clean environments
   - Preserved backward compatibility with existing installations
   - Added regression coverage for import resolution behavior
   
   ### TESTING
   
   Verified locally with:
   
   - Fresh virtual environment installs
   - Clean initialization flow
   - Existing dependency configurations
   - CI-compatible installation scenarios
   
   Tests executed successfully for:
   - geohash import resolution
   - fallback behavior
   - initialization/startup paths
   
   ### IMPACT
   
   - Fixes CI initialization failures
   - Improves dependency robustness
   - Maintains compatibility across Superset versions and environments
   - No breaking API or behavioral changes
   
   Fixes #40692


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to