Skip to content

fix 0.5.x release cargo publish - #1379

Merged
kevinjqliu merged 3 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/fix-cargo-publish
May 27, 2025
Merged

kevinjqliu merged 3 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/fix-cargo-publish

Conversation

@kevinjqliu

@kevinjqliu kevinjqliu commented May 27, 2025 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes #.

What changes are included in this PR?

This PR removes iceberg-catalog-memory as a dev-dependency of crates/iceberg. The dependency is not used and caused cargo publish to fail during the 0.5.0 release (See #1325 (comment))

This PR also changes .github/workflows/release_python.yml to depend on publish.yml since we only want to publish pyiceberg-core to pypi after the crates are successfully published.

https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow

Are these changes tested?

Yes, I tested the github action changes by pushing this PR to my fork's main and then push a new tag, with some minor changes so that the github action can run succesfully.
The tag push triggered the Publish workflow (https://github.com/kevinjqliu/iceberg-rust/actions/runs/15265739052) which ran successfully and triggered the Publish Python 🐍 distribution 📦 to PyPI workflow (https://github.com/kevinjqliu/iceberg-rust/actions/runs/15265757444)

liurenjie1024
liurenjie1024 previously approved these changes May 27, 2025

@liurenjie1024 liurenjie1024 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @kevinjqliu for this fix!

@kevinjqliu

Copy link
Copy Markdown
Contributor Author

im going to test the github action on my fork first before merging

@liurenjie1024

Copy link
Copy Markdown
Contributor

The ut failure is caused by generating doc. I think we could remove those docs for now.

Comment thread crates/iceberg/src/lib.rs
//! ## Scan A Table
//!
//! ```rust, no_run
//! ```rust, ignore

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@liurenjie1024 wdyt of using ignore here for now? i didnt want to remove all the docs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, it's fine to me.

@kevinjqliu
kevinjqliu merged commit 48433cb into apache:main May 27, 2025
@kevinjqliu
kevinjqliu deleted the kevinjqliu/fix-cargo-publish branch May 27, 2025 03:52
liurenjie1024 pushed a commit that referenced this pull request Jun 16, 2025
## Which issue does this PR close?



## What changes are included in this PR?
Follow up to #1379. This PR changes the pypi publishing step to trigger
on previous workflow's successful run

Also see
#1325 (comment)


## Are these changes tested?

yes, tested the new logic
```
if: ${{ !contains(github.event.workflow_run.head_branch, '-') || github.event_name == 'workflow_dispatch' }}
```
by pushing a new tag to my fork and checking the github workflow run

-
[publish](https://github.com/kevinjqliu/iceberg-rust/actions/runs/15658709460/job/44113281419)
-
[pypi](https://github.com/kevinjqliu/iceberg-rust/actions/runs/15658721165/job/44113329600),
the job triggered
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