Skip to content

Minor: extend ci to test each package - #7940

Closed
Weijun-H wants to merge 6 commits into
apache:mainfrom
Weijun-H:extend-ci
Closed

Minor: extend ci to test each package#7940
Weijun-H wants to merge 6 commits into
apache:mainfrom
Weijun-H:extend-ci

Conversation

@Weijun-H

Copy link
Copy Markdown
Member

Which issue does this PR close?

Related #7933

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@alamb

Copy link
Copy Markdown
Contributor

FYI CI is going to fail #7939

@alambalamb 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.

❤️ -- thank you @Weijun-H

Comment thread.github/workflows/rust.yml Outdated

- name: Check workspace without default features
run: cargo check --no-default-features -p datafusion
- name: Check workspace without default features in each package tests

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.

This is a really neat way of iterating over the packages

@Weijun-H

Copy link
Copy Markdown
MemberAuthor

Draft until fix #7933

@alamb

Copy link
Copy Markdown
Contributor

BTW there are a few other outstanding PRs that might help get the checks working -- #7934

@alamb

Copy link
Copy Markdown
Contributor

#7933 is fixed

@github-actionsgithub-actionsBot added the core Core DataFusion crate label Oct 26, 2023
@Weijun-H

Weijun-H commented Oct 26, 2023

Copy link
Copy Markdown
MemberAuthor

#7933 is fixed

@alamb I tried to merge #7934, it didn't solve #7933

@Weijun-H
Weijun-Hforce-pushed the extend-ci branch 2 times, most recently from 3149b3f to 4ec8399CompareOctober 26, 2023 20:22
Comment on lines +74 to +78
- name: Check tests in each package
run: |
for package in $(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name'); do
cargo check --tests --package "$package" || exit 1
done

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I am not sure if we need --no-default-features to check tests 🤔

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.

I think this command verifies that cargo test --package "$package" will compile successfully, but it doesn't check if cargo test --no-default-features --package "$package" would run successfully

But I am not sure how common running cargo test --no-default-features --package "$package" is 🤔

@alamb

Copy link
Copy Markdown
Contributor

This PR looks like it would be good to go if it got rebased against main -- is that correct @Weijun-H ?

@Weijun-H

Copy link
Copy Markdown
MemberAuthor

This PR looks like it would be good to go if it got rebased against main -- is that correct @Weijun-H ?

Yes, it is.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.

@github-actionsgithub-actionsBot added the Stale PR has not had any activity for some time label Apr 24, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coreCore DataFusion crateStalePR has not had any activity for some time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Weijun-H@alamb