Skip to content

Conversation

@petern48
Copy link
Contributor

@petern48 petern48 commented May 3, 2025

Closes #1942

Rationale for this change

This condenses similar CI logic into one place

Are these changes tested?

Are there any user-facing changes?

No

- name: Install
run: make install
- name: Run integration tests
run: make test-integration
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think we want to do this.

L68's test-coverage runs both the unit tests and integrations tests
This line here runs the integration tests again.

I think we'd want to get rid of one OR have one run unit tests and another run integration tests.

Looking at both github actions. python-ci runs the matrix for python v3.9-3.12 whereas python-integration only runs for the default python version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, nice catch. Personally, I like the idea of having them stay separate, so they can run in parallel. I pushed a change separating them while still running the full Python version matrix for both unit and integration tests with coverage. What do you think?

@petern48 petern48 requested a review from kevinjqliu May 6, 2025 00:33
- name: Linters
run: make lint
- name: Tests
run: make test-coverage
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I see. This will also run the integration tests 🤣

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Any specific reason for depth 2? The default is 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was copy and paste from the old python-integration.yml file. I did however check on who introduced it in the first place... and it turns out it was you at this commit :)

Shall I remove it? I don't see a reason either?

Copy link
Contributor

Choose a reason for hiding this comment

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

yep 1 is enough :D

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! just small change on the fetch-depth

@petern48 petern48 requested a review from kevinjqliu May 6, 2025 17:02
@kevinjqliu kevinjqliu merged commit 201057e into apache:main May 6, 2025
10 checks passed
@kevinjqliu
Copy link
Contributor

Thanks @petern48 for the contribution and @Fokko for the review :)

gabeiglio pushed a commit to Netflix/iceberg-python that referenced this pull request Aug 13, 2025
<!--
Thanks for opening a pull request!
-->

<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->
Closes apache#1942

# Rationale for this change
This condenses similar CI logic into one place

# Are these changes tested?

# Are there any user-facing changes?
No

<!-- In the case of user-facing changes, please add the changelog label.
-->
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.

remove redundant ci tests

3 participants