Skip to content

ci: Improving generate_random_versions #3623

@dangotbanned

Description

@dangotbanned

Description

I've been stung by a false sense of security from this guy utils/generate_random_versions.py:

So I wanted to discuss ways we could improve the script.
It does catch things but often later than the PR that introduced the bug 😔

Idea 1

I think a lot of my pain would've been avoided if polars 1.0.0 or 1.1.0 had a greater chance of running.

That is only going to happen on ~9% of runs (2/23) right now, so maybe we could weight the choice towards these versions some more?

@FBruzzesi I hear you do the good maths, can we do any better than random.choice?

polars_version = random.choice(POLARS_VERSION)

Idea ...

Help me out here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions