Equivalency bound tests can fail on a slow CI runner
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start in tests/Vouch.Tests/EquivalencyTests.cs and read Bound and Bounded alongside the three named 2-second equivalency tests. Check how Task.Run affects when the timing bound begins, then run those tests; done means they pass on CI while still failing with the #26 fix held out.
Written by the indexing model from the issue text.
Description
Goal
The 2 second equivalency bound tests fail on a real blowup, not on a slow CI runner.
Where
tests/Vouch.Tests/EquivalencyTests.cs: Bound and Bounded (lines 1273 to 1285), used by Shared_graph_of_11_levels_is_equivalent_within_2_seconds, Any_order_200000_reversed_uris_match_within_2_seconds and Any_order_200000_reversed_equatable_objects_match_within_2_seconds.
Covers
-
Any_order_200000_reversed_equatable_objects_match_within_2_secondsfailed on CI run 45932139702 (PR #53) after 2 s. A rerun of the same commit passed, and so did the release dry run and a local run ofEquivalencyTests.
Bounded starts the clock when it queues the call with Task.Run, so time spent waiting for a thread pool thread during a parallel test run counts against the bound.
Done when
- The time checked against the bound starts when the call starts, not when it is queued.
- With the fix from #26 (bcd50d0) held out, the three tests still fail.
- The three tests pass on CI.
Risks
- A bound raised too far stops catching the regression it was written for. The holdout above is the check.
Out of scope
Other timing tests, unless they fail the same way.
- Dominant language
- C#
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 56m
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BaryoDev/Vouch
-
Difficulty 4/5 1-2 days Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
Roadmap to 1.0: FluentAssertions parity, small core plus opt-in packagesMay be free again @arnelirobles claimed this 28 days ago, and no pull request is open. Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
BaryoDev/Vouch#20 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Facepunch/sbox-public#12456 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mcneel/rhino.inside-revit#1736 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
reactiveui/Primitives#254 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Kyrodan/KeeAnywhere#510 ·
-
area-Tools-ILLink untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day