Skip to content

chore(ci): reduce BDD readiness polling delay - #4187

Draft
strantalis wants to merge 5 commits into
codex/bdd-go-cachefrom
codex/bdd-readiness-polling
Draft

strantalis wants to merge 5 commits into
codex/bdd-go-cachefrom
codex/bdd-readiness-polling

Conversation

@strantalis

@strantalis strantalis commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Stack merge order: release cache policy → shared BDD setup and Go cache → readiness polling → Docker cache.

Proposed Changes

The BDD harness sleeps for one second after each failed Platform health probe. Across 85 Platform startups this can add substantial idle time: baseline run 37528870922 spent about 93s in readiness waits.

Poll every 100ms, retain the 200ms request timeout, and use a 40s overall deadline to preserve the old startup allowance. Propagate scenario cancellation into pending HTTP requests and close every probe response body. Policy/database isolation and the all-services health requirement stay unchanged.

This is the readiness layer of the BDD performance stack. Measure startup and total BDD duration after the Go-cache layer lands, then compare this layer separately.

Checklist

  • Documented polling intervals and the startup allowance

Testing Instructions

  • make fmt with pinned golangci-lint v2.13.2 passes.
  • Diff-aware workspace lint reports zero new issues; ordinary make lint encounters existing SDK/service/CLI lint findings. govulncheck reports vulnerabilities in unchanged dependencies and the local Go 1.26.3 standard library.
  • SDK README code-block tests pass.
  • Full make test passes fixture/SDK/service unit tests but fails in existing service/rttests because localhost:8080 has no running Platform. Infrastructure was supplied for Keycloak and testcontainers Postgres; the external round-trip stack was not provisioned.
  • GOFLAGS=-short make test passes across all workspace modules with race detection.
  • git diff --check passes. Full functional BDD validation is delegated to the PR workflow.

The existing functional and scale BDD jobs exercise Platform startup. Both passed on the previous head. The extra unit tests of BDD setup were removed; the tagged BDD test binary still compiles. Existing commits are preserved through signed additive merges.

Signed-off-by: strantalis <strantalis@virtru.com>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the size/s label Oct 7, 2026
@strantalis
strantalis added this pull request to stack #4189 October 7, 2026 11:02
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 227.174235ms
Throughput 440.19 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 24.347910049s
Average Latency 243.112253ms
Throughput 205.36 requests/second

@strantalis strantalis changed the title perf(bdd): poll Platform readiness more frequently chore(ci): reduce BDD readiness polling delay Oct 7, 2026
Signed-off-by: strantalis <strantalis@virtru.com>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@strantalis
strantalis removed this pull request from stack #4189 October 7, 2026 11:24
@strantalis
strantalis added this pull request to stack #4191 October 7, 2026 11:24
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 335.994335ms
Throughput 297.62 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 33.757803333s
Average Latency 336.955166ms
Throughput 148.11 requests/second

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 435.133917ms
Throughput 229.81 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 44.46174696s
Average Latency 443.641243ms
Throughput 112.46 requests/second

Signed-off-by: strantalis <strantalis@virtru.com>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 412.591859ms
Throughput 242.37 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 44.091059887s
Average Latency 439.897109ms
Throughput 113.40 requests/second

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 445.733229ms
Throughput 224.35 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 42.027509691s
Average Latency 419.017946ms
Throughput 118.97 requests/second

Signed-off-by: strantalis <strantalis@virtru.com>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 296.305929ms
Throughput 337.49 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 33.517536648s
Average Latency 334.630908ms
Throughput 149.18 requests/second

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 385.045576ms
Throughput 259.71 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 40.43577972s
Average Latency 403.597574ms
Throughput 123.65 requests/second

Signed-off-by: strantalis <strantalis@virtru.com>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 422.57865ms
Throughput 236.64 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 46.556256188s
Average Latency 464.510728ms
Throughput 107.40 requests/second

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

⚠️ Govulncheck found vulnerabilities ⚠️

The following modules have known vulnerabilities:

  • otdfctl
  • service
  • tests-bdd

See the workflow run for details.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant