fix(cli): DSPX-4607 annotate deprecated Action.Value use in migration test - #3969
fix(cli): DSPX-4607 annotate deprecated Action.Value use in migration test#3969dmihalcik-virtru wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change documents intentional use of the deprecated ChangesLegacy action test coverage
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This change documents intentional legacy action coverage in a migration test without changing runtime behavior or assertions. No current merge-blocking risk remains. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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. Comment |
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
a22ca22 to
4b08b25
Compare
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
… test golangci-lint v2.13.2 reports SA1019 for the deprecated policy.Action.Value oneof. This test deliberately exercises the legacy standard-action path, so annotate rather than migrate. Signed-off-by: Dave Mihalcik <dmihalcik@virtru.com>
4b08b25 to
c5cd9ef
Compare
Invalidated by push of c5cd9ef
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
X-Test Failure Reportopentdf |
|
Part of the DSPX-4607 lint burndown, following the golangci-lint v2.13.2 bump (#3965, merged). Branched from
main, independent of the other burndown PRs.Best merged after #3968 (goconst tuning), which clears the other 133
otdfctlfindings.What
golangci-lint v2.13.2 reports one
SA1019inotdfctl:TestResolveExisting…constructs apolicy.ActionwhoseIdis literally"legacy"and deliberately sets the deprecatedValueoneof so the resolver takes the standard-action path — see the comment two blocks up: "entirely on the proto Standard enum to reach the standard-action path". Migrating it toNamewould delete the behaviour the test exists to cover, so it's annotated instead.Testing
(run against the tuned config from #3968;
otdfctlgoes from 134 findings to 0 across the two PRs)Summary by CodeRabbit
DSPX-4607 burndown index
.golangci.yamlgoconst tuning +gomodguard_v2migration (merged)service/kas), chore(core): DSPX-4607 drop stale lib/fixtures nolint directives and reuse keycloakBoolTrue #3971 (lib/fixtures), fix(sdk): DSPX-4607 canonicalize DPoP headers and extract zipstream constants #3973 (sdk), fix(examples): DSPX-4607 clear goconst and SA1019 lint findings #3974 (examples), fix(ci): DSPX-4607 clear tests-bdd goconst, gosec, nestif and sloglint findings #3975 (tests-bdd), fix(policy): DSPX-4607 clear sloglint and SA1019 lint findings #3977 (service/policy), fix(core): DSPX-4607 clear sloglint, goconst, nolintlint and SA1019 findings #3978 (servicecore)