Skip to content

fix: fix flaky test#550

Merged
stuebingerb merged 1 commit intomainfrom
fix/fix-flaky-test
Feb 24, 2026
Merged

fix: fix flaky test#550
stuebingerb merged 1 commit intomainfrom
fix/fix-flaky-test

Conversation

@stuebingerb
Copy link
Owner

KGraphQL uses a dataloader with a timed dispatcher that loads all requested items in a single batch every 100ms. Depending on the execution time of the test query, this can include more items than anticipated by the test, so we lessen the assertion a bit to also allow less than the expected loads.

This commit also reverts the temporary adjustments and the extra test that were introduced to help with analyzing.

Resolves #425

KGraphQL uses a dataloader with a timed dispatcher that loads all
requested items in a single batch every 100ms. Depending on the
execution time of the test query, this can include more items than
anticipated by the test, so we lessen the assertion a bit to also
allow _less_ than the expected loads.

This commit also reverts the temporary adjustments and the extra test
that were introduced to help with analyzing.

Resolves #425
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.79%. Comparing base (6aa6115) to head (8e7e218).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #550   +/-   ##
=======================================
  Coverage   83.79%   83.79%           
=======================================
  Files         152      152           
  Lines        4936     4936           
  Branches      863      863           
=======================================
  Hits         4136     4136           
  Misses        497      497           
  Partials      303      303           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Feb 24, 2026

🐰 Bencher Report

Branchfix/fix-flaky-test
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
com.apurebase.kgraphql.FunctionExecutionBenchmark.benchmarkFunctionExecution📈 view plot
🚷 view threshold
6,100,052.59 ops/s
(+1.81%)Baseline: 5,991,645.14 ops/s
5,626,125.08 ops/s
(92.23%)
com.apurebase.kgraphql.ParallelExecutionBenchmark.queryBenchmark📈 view plot
🚷 view threshold
1.30 ops/s
(-0.10%)Baseline: 1.30 ops/s
1.30 ops/s
(99.97%)
com.apurebase.kgraphql.QueryBenchmark.largeList📈 view plot
🚷 view threshold
4.64 ops/s
(+6.64%)Baseline: 4.35 ops/s
2.08 ops/s
(44.81%)
com.apurebase.kgraphql.QueryBenchmark.manyChildren📈 view plot
🚷 view threshold
192.03 ops/s
(-1.30%)Baseline: 194.56 ops/s
182.95 ops/s
(95.27%)
com.apurebase.kgraphql.QueryBenchmark.manyDataChildren📈 view plot
🚷 view threshold
8.95 ops/s
(-0.06%)Baseline: 8.96 ops/s
8.89 ops/s
(99.30%)
com.apurebase.kgraphql.QueryBenchmark.manyOperations📈 view plot
🚷 view threshold
291.11 ops/s
(-0.08%)Baseline: 291.35 ops/s
252.23 ops/s
(86.65%)
com.apurebase.kgraphql.QueryBenchmark.nestedObject📈 view plot
🚷 view threshold
7,908.87 ops/s
(-0.81%)Baseline: 7,973.46 ops/s
6,873.72 ops/s
(86.91%)
com.apurebase.kgraphql.RequestCachingBenchmark.invalidRequest📈 view plot
🚷 view threshold
224,398.92 ops/s
(-0.97%)Baseline: 226,596.46 ops/s
209,932.45 ops/s
(93.55%)
com.apurebase.kgraphql.RequestCachingBenchmark.largeRequest📈 view plot
🚷 view threshold
8,523.52 ops/s
(+3.84%)Baseline: 8,208.48 ops/s
7,218.14 ops/s
(84.68%)
com.apurebase.kgraphql.RequestCachingBenchmark.smallRequest📈 view plot
🚷 view threshold
11,982.44 ops/s
(-1.50%)Baseline: 12,164.31 ops/s
10,420.34 ops/s
(86.96%)
com.apurebase.kgraphql.SimpleExecutionOverheadBenchmark.benchmark📈 view plot
🚷 view threshold
475,146.55 ops/s
(+1.01%)Baseline: 470,404.51 ops/s
455,865.69 ops/s
(95.94%)
🐰 View full continuous benchmarking report in Bencher

@stuebingerb stuebingerb merged commit bcbe5da into main Feb 24, 2026
11 of 12 checks passed
@stuebingerb stuebingerb deleted the fix/fix-flaky-test branch February 24, 2026 12:56
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.

Fix flaky test

1 participant