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

test: codspeed CI workflow #819

Closed
wants to merge 22 commits into from

Conversation

FBruzzesi
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

  • I am opening this with 3 queries only for the sake of example
  • I wonder if the data size we are using is relevant

Comment on lines 33 to 35
_ = benchmark(q1, lineitem)
_ = benchmark(q2, region, nation, supplier, part, partsupp)
_ = benchmark(q3, customer, lineitem, orders)
Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure that having multiple benchmarks in a single test is ok πŸ€”

Copy link
Member

Choose a reason for hiding this comment

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

You can use parametrize, yes, but you need to create different names for each result.

@DeaMariaLeon
Copy link
Member

Maybe you did it, but just in case: Don't forget to add Narwhals to CodSpeed (you need admin rights). Even if you were able to previously test your fork.

@FBruzzesi
Copy link
Member Author

Maybe you did it, but just in case: Don't forget to add Narwhals to CodSpeed (you need admin rights). Even if you were able to previously test your fork.

Maybe I am missing something, but checking in repo settings, I am able to see it enabled. Adding screenshots:

image

And then in configure:

image

From the error message it seems we still need a token?

@DeaMariaLeon
Copy link
Member

DeaMariaLeon commented Aug 20, 2024

I don't have access to: repo settings

OK. I didn't need a token. Plus it says that the repo has not been enabled.
What do you see on Narwhals permissions on Codspeed? BTW Codspeed only accepts organizations.

edit:
Please see https://docs.codspeed.io/features/roles-and-permissions/ if this is unclear.

@DeaMariaLeon
Copy link
Member

DeaMariaLeon commented Aug 20, 2024

Your name must be listed as admin or provider admin on "permissions". But not of your fork, the Narwhals organization:

Screenshot 2024-08-20 at 09 35 56

I stop now, I promise.

@FBruzzesi
Copy link
Member Author

FBruzzesi commented Aug 20, 2024

I should have enabled it, I will make a commit to trigger all the workflows one more time :)

Edit: Nice it works now πŸ™ŒπŸΌπŸŽ‰

Copy link

codspeed-hq bot commented Aug 20, 2024

CodSpeed Performance Report

Congrats! CodSpeed is installed πŸŽ‰

πŸ†• 4 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks

  • test_queries[dask] (295.1 ms)
  • test_queries[pandas] (13.9 ms)
  • test_queries[polars] (3.2 ms)
  • test_queries[pyarrow] (3.7 ms)

@FBruzzesi
Copy link
Member Author

@MarcoGorelli I will wait for an opinion before going rogue and implement all the queries πŸ˜‚

@MarcoGorelli
Copy link
Member

sure, looks good to me, thanks!

@DeaMariaLeon
Copy link
Member

Should this be closed?

@FBruzzesi
Copy link
Member Author

Hey @DeaMariaLeon thanks for the ping!

Sure I will close this as it is out of sync and wait for #863 to be finished before putting more effort into it

@FBruzzesi FBruzzesi closed this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants