Skip to content

Conversation

advancedxy
Copy link
Contributor

I noticed this failure on another PR's CI run: https://github.com/Eventual-Inc/Daft/actions/runs/11715735385/job/32632612788?pr=3134

This is a flaky test and should be fixed.

@github-actions github-actions bot added the chore label Nov 7, 2024
Copy link

codspeed-hq bot commented Nov 7, 2024

CodSpeed Performance Report

Merging #3243 will not alter performance

Comparing advancedxy:fix_flaky_test (41ac479) with main (baca61e)

Summary

✅ 17 untouched benchmarks

@desmondcheongzx desmondcheongzx self-requested a review November 7, 2024 04:37
@@ -2352,6 +2352,9 @@ mod tests {

let scale: usize = rng.gen_range(0..=MAX_SCALE);
Copy link
Member

Choose a reason for hiding this comment

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

would it simpler to set the lower bound for scale to 1 instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered that too. I think 0 is a valid scale, thus I prefer to include that in the test.

WDYT? I'm OK to set the lower bound to 1.

Copy link
Collaborator

@desmondcheongzx desmondcheongzx Nov 7, 2024

Choose a reason for hiding this comment

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

IMO keeping the lower bound of the scale to 0 is fine.

I would say instead of doing EPSILON * factor below, simply doing

let epsilon = if scale == 0 { 1.0 } else { 0.1 };

would be easier

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, let me fix it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks! Looks good

@@ -2352,6 +2352,9 @@ mod tests {

let scale: usize = rng.gen_range(0..=MAX_SCALE);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks! Looks good

@desmondcheongzx desmondcheongzx merged commit 104fbc3 into Eventual-Inc:main Nov 7, 2024
38 checks passed
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