Skip to content

fix(ers): address inline claims review feedback - #3836

Merged
jrschumacher merged 1 commit into
test-3801-provider-contract-matrixfrom
fix/3794-review-followups
Aug 7, 2026
Merged

fix(ers): address inline claims review feedback#3836
jrschumacher merged 1 commit into
test-3801-provider-contract-matrixfrom
fix/3794-review-followups

Conversation

@jrschumacher

Copy link
Copy Markdown
Member

Summary

  • normalize typed JWT claim slices ([]float64, []bool, and []int) before structpb serialization
  • add regression coverage proving typed and nested claim slices are accepted by structpb.NewStruct
  • remove inappropriate t.Helper() calls from top-level tests
  • use testify/require consistently in the tests introduced by fix(ers): pass inline claims through multi-strategy context #3794

Testing

  • cd service && go test ./pkg/protohelper ./entityresolution/multi-strategy ./entityresolution/multi-strategy/v2 -count=1
  • cd service && golangci-lint run ./pkg/protohelper ./entityresolution/multi-strategy ./entityresolution/multi-strategy/v2
  • cd tests-bdd && go test ./cukes -run "^TestConvertInterfaceToAny_PlainClaimsJSON$" -count=1
  • cd tests-bdd && golangci-lint run --disable nestif ./cukes (the package has a pre-existing nestif finding in steps_localplatform.go)

Context

Follow-up to review comments on #3794, stacked above #3809 so the existing ERS PR stack can merge without another restack.

@jrschumacher
jrschumacher requested a review from a team as a code owner August 4, 2026 21:13
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 85ac0d28-737b-463c-b801-b1eeb8a9a5f5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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 Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 102.402291ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 53.026558ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 240.61461ms
Throughput 415.60 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 28.117137646s
Average Latency 280.159186ms
Throughput 177.83 requests/second

elizabethhealy
elizabethhealy previously approved these changes Aug 4, 2026

@elizabethhealy elizabethhealy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@jrschumacher
jrschumacher force-pushed the test-3801-provider-contract-matrix branch from bf75d26 to 0541af3 Compare August 5, 2026 14:42
@jrschumacher
jrschumacher force-pushed the fix/3794-review-followups branch from b7dc2e9 to 079f8f1 Compare August 5, 2026 14:43
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 203.401723ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 112.640025ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 426.484801ms
Throughput 234.47 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 49.347897826s
Average Latency 490.080927ms
Throughput 101.32 requests/second

@jrschumacher
jrschumacher force-pushed the test-3801-provider-contract-matrix branch from 0541af3 to 72d990b Compare August 5, 2026 21:50
@jrschumacher
jrschumacher force-pushed the fix/3794-review-followups branch from 079f8f1 to 6feadfb Compare August 5, 2026 21:50
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 160.760916ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 91.042066ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 541.370553ms
Throughput 184.72 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 49.927169136s
Average Latency 497.815538ms
Throughput 100.15 requests/second

@jrschumacher
jrschumacher force-pushed the test-3801-provider-contract-matrix branch from 72d990b to 7bf5613 Compare August 6, 2026 01:39
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ Govulncheck found vulnerabilities ⚠️

The following modules have known vulnerabilities:

  • examples
  • otdfctl
  • sdk
  • service
  • lib/fixtures
  • tests-bdd

See the workflow run for details.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 195.931714ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 108.93019ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 436.933432ms
Throughput 228.87 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 51.994810333s
Average Latency 517.053922ms
Throughput 96.16 requests/second

@jrschumacher
jrschumacher merged commit 83bff99 into test-3801-provider-contract-matrix Aug 7, 2026
37 of 41 checks passed
@jrschumacher
jrschumacher deleted the fix/3794-review-followups branch August 7, 2026 09:22
jrschumacher added a commit that referenced this pull request Aug 7, 2026
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
jrschumacher added a commit that referenced this pull request Aug 7, 2026
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
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.

2 participants