Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nodejs-polars): missing build and publish targets #2102

Merged
merged 2 commits into from
Dec 21, 2021

Conversation

Brooooooklyn
Copy link
Contributor

@Brooooooklyn Brooooooklyn commented Dec 21, 2021

This pull request has been tested in https://github.com/Brooooooklyn/polars/actions/runs/1606199035

Note: the package on the npm is broken for now, because the some of optionalDependencies was missing.

If you want to draft a new version of Node.js on npm, I recommend you to create an npm scope such as @pola or @polars, because packages without scope are easy to trigger npm's spam detection

@Brooooooklyn Brooooooklyn force-pushed the master branch 2 times, most recently from 5c1aad6 to 0cb445a Compare December 21, 2021 11:15
build: |
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=32;
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=128;
Copy link
Member

Choose a reason for hiding this comment

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

If we set this to 1 we get a faster binary. That's definitely worth it.

Copy link
Member

Choose a reason for hiding this comment

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

Let's also set LTO=true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are codegen issues in Rust while compiling i686-windows-msvc target: rust-lang/rust#67497.
So I disable it only in target i686-pc-windows-msvc

Copy link
Member

Choose a reason for hiding this comment

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

Right, maybe we could add a comment to that PR so that we remember why we did it.

@ritchie46
Copy link
Member

Thanks a lot for this. 👍

@ritchie46
Copy link
Member

@universalmind303 could you review this one?

@@ -124,7 +124,7 @@ describe("lazyframe", () => {
});
expect(actual).toFrameEqualIgnoringOrder(expected);
});
test("dropDuplicates:maintainOrder", () =>{
test.skip("dropDuplicates:maintainOrder", () =>{
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a reason this test is skipped?

Copy link
Collaborator

Choose a reason for hiding this comment

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

otherwise looks good, Thanks for adding all of the additional targets!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@universalmind303 It was passed on my local machine, but failed in CI... I don't know why.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ill take a look at it. But I think we can still merge this in as its a great addition.

@ritchie46 ritchie46 merged commit 6dd84b3 into pola-rs:master Dec 21, 2021
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.

3 participants