Equivalency bound tests can fail on a slow CI runner

Open Beginner friendly
#54 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
testing

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_seconds failed 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 of EquivalencyTests.

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BaryoDev/Vouch

All issues in BaryoDev/Vouch

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.