This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Add ALLOW_RETRIES to a few flaky tests
ClosedPublic

Authored by philnik on Jan 16 2023, 7:06 PM.

Details

Reviewers
ldionne
Mordante
Group Reviewers
Restricted Project
Commits
rG70b716db965a: [libc++] Add ALLOW_RETRIES to a few flaky tests
Summary

Fixes #59464

Diff Detail

Event Timeline

philnik created this revision.Jan 16 2023, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 7:06 PM
philnik requested review of this revision.Jan 16 2023, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 7:06 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante accepted this revision.Jan 17 2023, 9:44 AM

Thanks for working on this. Did you check whether there are other flacky tests?
LGTM, but make sure the CI is green.

This revision is now accepted and ready to land.Jan 17 2023, 9:44 AM
ldionne requested changes to this revision.Jan 17 2023, 9:46 AM
ldionne added inline comments.
libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.pass.cpp
1–2 ↗(On Diff #489671)

This one is not flaky, it's simply too slow. I would instead split it up.

I'd rather not use ALLOW_RETRIES since that isn't what it was meant for -- it was meant to help with tests that are inherently timing-sensitive, not with tests that are just too slow. For example, if ranges.transform.pass.cpp were to fail due to a legitimate problem in the code, it wouldn't make sense to retry it 3 times.

This revision now requires changes to proceed.Jan 17 2023, 9:46 AM
philnik updated this revision to Diff 489929.Jan 17 2023, 1:11 PM
philnik marked an inline comment as done.

Address comments

ldionne accepted this revision.Jan 17 2023, 2:24 PM

LGTM if this actually helps.

This revision is now accepted and ready to land.Jan 17 2023, 2:24 PM
This revision was landed with ongoing or failed builds.Jan 17 2023, 3:10 PM
This revision was automatically updated to reflect the committed changes.