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

Deflake CI #1751

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Deflake CI #1751

merged 2 commits into from
Feb 2, 2024

Conversation

LebedevRI
Copy link
Collaborator

same as #272

As it can be seen in e.g. https://github.com/google/benchmark/actions/runs/7711328637/job/21016492361
We may get 65: BM_Complexity_O1_BigO 0.00 N^2 0.00 N^2

As it can be seen in e.g. https://github.com/google/benchmark/actions/runs/7711328637/job/21016492361
We may get `65: BM_Complexity_O1_BigO                           0.00 N^2        0.00 N^2  `
@LebedevRI LebedevRI changed the title complexity_test: deflake Deflake CI Feb 1, 2024
@LebedevRI LebedevRI force-pushed the deflake-test branch 2 times, most recently from bc4de08 to e9df833 Compare February 1, 2024 22:12
We were still getting zero times there. Perhaps this is better?
@LebedevRI
Copy link
Collaborator Author

@dmah42 green is good right? :)

@LebedevRI LebedevRI requested a review from dmah42 February 1, 2024 22:24
@@ -88,7 +88,7 @@ const char *enum_big_o_1 = "\\([0-9]+\\)";
// FIXME: Tolerate both '(1)' and 'lgN' as output when the complexity is auto
// deduced.
// See https://github.com/google/benchmark/issues/272
const char *auto_big_o_1 = "(\\([0-9]+\\))|(lgN)";
const char *auto_big_o_1 = "(\\([0-9]+\\))|(lgN)|(N\\^2)";
Copy link
Member

Choose a reason for hiding this comment

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

maybe rename the variable too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm, i believe the name is still correct.
It is only used for the function where the true/correct complexity is O(1),
we just fail to auto-detect it because of the noise in CI.

Copy link
Member

Choose a reason for hiding this comment

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

auto_big_o_1_or_lgn_or_n2_actually_we_have_no_idea_what_this_should_be

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

:)

@LebedevRI LebedevRI merged commit b04cec1 into google:main Feb 2, 2024
80 checks passed
@LebedevRI
Copy link
Collaborator Author

@dmah42 thank you!

@LebedevRI LebedevRI deleted the deflake-test branch February 2, 2024 15:39
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.

2 participants