Skip to content

Conversation

@zhangfengcdt
Copy link
Member

@zhangfengcdt zhangfengcdt commented Nov 22, 2025

The CI build was failing because set_dev_version.py only updated the workspace package version to include the -alphaN suffix, but didn't update the workspace dependencies versions. This caused Cargo to fail with version mismatch errors like:

  error: failed to select a version for the requirement `sedona-expr = "^0.2.0"`
  candidate versions found which didn't match: 0.2.0-alpha87

This fix updates the script to also replace version numbers in the workspace dependencies section, ensuring they match the prerelease version (e.g., "0.2.0-alpha390").

In addition, the PR also fix a python test to make the expected minimum clearance line unambiguous.

  Old (ambiguous):
  "MULTIPOLYGON(((0.5 0.5,0 0,0 1,0.5 0.5)),((0.5 0.5,1 1,1 0,0.5 0.5)),((2.5 2.5,2 2,2 3,2.5 2.5)),((2.5 2.5,3 3,3
  2,2.5 2.5)))",
  "LINESTRING (2.5 2.5, 3 2.5)",  # Could also be (2.5 2.5, 2 2.5)
  New (unambiguous):
  "MULTIPOLYGON(((0.5 0.5,0 0,0 1,0.5 0.5)),((0.5 0.5,1 1,1 0,0.5 0.5)),((2.5 2.5,2 2,2 3,2.5 2.5)),((2.5 2.5,3.5
  3.5,3.5 1.5,2.5 2.5)))",
  "LINESTRING (2.5 2.5, 2 2.5)",  # Now clearly the only answer

The fourth triangle's vertices changed from (2.5 2.5, 3 3, 3 2) to (2.5 2.5, 3.5 3.5, 3.5 1.5), moving the right edge further away:

  • Distance from (2.5, 2.5) to left edge (x=2): 0.5 ✓ (minimum)
  • Distance from (2.5, 2.5) to right edge (x=3.5): 1.0

The CI build was failing because set_dev_version.py only updated the
workspace package version to include the -alphaN suffix, but didn't
update the workspace dependencies versions. This caused Cargo to fail
with version mismatch errors like:

  error: failed to select a version for the requirement `sedona-expr = "^0.2.0"`
  candidate versions found which didn't match: 0.2.0-alpha87

This fix updates the script to also replace version numbers in the
workspace dependencies section, ensuring they match the prerelease
version (e.g., "0.2.0-alpha390").
@zhangfengcdt zhangfengcdt marked this pull request as ready for review November 22, 2025 19:40
@zhangfengcdt zhangfengcdt requested a review from Copilot November 22, 2025 19:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes CI build failures caused by version mismatches in Cargo.toml when setting development versions. The script now updates both the workspace package version and workspace dependencies versions to include the alpha prerelease suffix, ensuring consistency across the configuration.

Key changes:

  • Added logic to update workspace dependencies versions with the alpha suffix
  • Added comments to clarify the purpose of each version update section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zhangfengcdt zhangfengcdt changed the title fix: Update workspace dependencies versions in set_dev_version.py fix: update set_dev_version.py and fix minimum clearance line unit test Nov 22, 2025
Copy link
Member

@paleolimbot paleolimbot left a comment

Choose a reason for hiding this comment

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

Thank you!

@zhangfengcdt zhangfengcdt merged commit c5d1773 into apache:main Nov 23, 2025
5 checks passed
@paleolimbot paleolimbot added this to the 0.2.0 milestone Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants