Skip to content

Add CI check for crates.io patches#1407

Merged
timsaucer merged 1 commit intoapache:mainfrom
timsaucer:ci/add-check-crates-patch
Mar 4, 2026
Merged

Add CI check for crates.io patches#1407
timsaucer merged 1 commit intoapache:mainfrom
timsaucer:ci/add-check-crates-patch

Conversation

@timsaucer
Copy link
Member

Which issue does this PR close?

Closes #1399

Rationale for this change

This PR will cause CI to fail for release candidates with release patches in this repository.

What changes are included in this PR?

Add CI script.
Add example section to Cargo.toml with comment

Are there any user-facing changes?

None, CI only

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nuno-faria nuno-faria left a comment

Choose a reason for hiding this comment

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

LGTM. The CI on PRs will still run normally right?

# We cannot publish to crates.io with any patches in the below section. Developers
# must remove any entries in this section before creating a release candidate.
[patch.crates-io]
# datafusion = { git = "https://github.com/apache/datafusion.git", rev = "6713439497561fa74a94177e5b8632322fb7cea5" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this last line meant to be committed?

Copy link
Contributor

Choose a reason for hiding this comment

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

L98 is commented out. i assume it wont be parsed by tomllib 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, exactly. This is intentional to show as an example and commented out to show it still passes CI

@alamb
Copy link
Contributor

alamb commented Mar 4, 2026

This is quite exciting to see -- specifically that we are working to improve the velocity of datafusion-python 🚀

@timsaucer timsaucer merged commit 7b630ee into apache:main Mar 4, 2026
19 checks passed
@timsaucer timsaucer deleted the ci/add-check-crates-patch branch March 4, 2026 15:24
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.

RFC: Should main be patched to latest datafusion periodically?

4 participants