Skip to content

[benchmark] Fix: random fail Benchmark_O.test.md #21459

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

Merged
merged 2 commits into from
Dec 21, 2018
Merged

[benchmark] Fix: random fail Benchmark_O.test.md #21459

merged 2 commits into from
Dec 21, 2018

Conversation

palimondo
Copy link
Contributor

When the two measured samples from Ackermann happen to have the exact same value, the delta compression produces a comma instead of a number. Accept both forms.

Resolves SR-9544.

When the two measured samples from `Ackermann` happen to have the exact same value, the delta compression produces a comma instead of number. Accept both forms.

https://bugs.swift.org/browse/SR-9544
@palimondo
Copy link
Contributor Author

@swift-ci please test

@palimondo
Copy link
Contributor Author

@eeckstein Please review 🙏

In my local tests the simplified ERE from second commit seems to work, too. Can you please verify that what I wrote actually means "accept either a comma or series of numbers"?

@swift-ci

This comment has been minimized.

@swift-ci

This comment has been minimized.

@palimondo
Copy link
Contributor Author

@swift-ci please test

@palimondo palimondo merged commit 76012e0 into master Dec 21, 2018
@palimondo palimondo deleted the SR-9544 branch December 21, 2018 00:10
@jrose-apple
Copy link
Contributor

jrose-apple commented Dec 21, 2018

Ah, your regex means what you said, but it's not what you actually want. The pattern you want is {{[0-9]*}}, i.e. a possibly-omitted decimal number, not {{,|[0-9]+}}.

@palimondo palimondo restored the SR-9544 branch December 21, 2018 21:55
@palimondo
Copy link
Contributor Author

Oh, you are right! The number of commas doesn't change.

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.

4 participants