Skip to content

fix(secrets): reflect.Pointer not reflect.Ptr (forward-fix main Lint)#844

Merged
intel352 merged 1 commit into
mainfrom
fix/reflect-pointer-lint
Jun 2, 2026
Merged

fix(secrets): reflect.Pointer not reflect.Ptr (forward-fix main Lint)#844
intel352 merged 1 commit into
mainfrom
fix/reflect-pointer-lint

Conversation

@intel352
Copy link
Copy Markdown
Contributor

@intel352 intel352 commented Jun 2, 2026

Forward-fix: main CI Lint went red after #843 — golangci-lint v2.12.0 govet flags the deprecated reflect.Ptr alias (secrets/reachability.go:146) with "Constant reflect.Ptr should be inlined". Replaces it with the canonical reflect.Pointer. Local golangci v2.11.4 did not flag this (version gap). Verified: go vet ./secrets/ clean, build + secrets tests pass.

🤖 Generated with Claude Code

…v2.12.0)

golangci-lint v2.12.0 (CI) govet flags 'Constant reflect.Ptr should be
inlined' for the deprecated reflect.Ptr alias added in #843. Use the
canonical reflect.Pointer. (Local golangci v2.11.4 did not flag this —
version gap; main CI Lint went red on the #843 merge.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 2, 2026 23:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR forward-fixes a CI lint failure by updating the typed-nil detection in secrets to use the canonical reflect.Pointer kind constant instead of the deprecated reflect.Ptr alias, aligning with newer govet/golangci-lint behavior.

Changes:

  • Replace reflect.Ptr with reflect.Pointer in isNilProvider to satisfy govet (“Constant reflect.Ptr should be inlined”).
  • Keep nil-kind handling behavior unchanged while removing the lint regression on main.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

⏱ Benchmark Results

No significant performance regressions detected.

benchstat comparison (baseline → PR)
## benchstat: baseline → PR
baseline-bench.txt:302: parsing iteration count: invalid syntax
baseline-bench.txt:371265: parsing iteration count: invalid syntax
baseline-bench.txt:790591: parsing iteration count: invalid syntax
baseline-bench.txt:1354523: parsing iteration count: invalid syntax
baseline-bench.txt:1639641: parsing iteration count: invalid syntax
baseline-bench.txt:2276737: parsing iteration count: invalid syntax
benchmark-results.txt:302: parsing iteration count: invalid syntax
benchmark-results.txt:296607: parsing iteration count: invalid syntax
benchmark-results.txt:622708: parsing iteration count: invalid syntax
benchmark-results.txt:922052: parsing iteration count: invalid syntax
benchmark-results.txt:1236756: parsing iteration count: invalid syntax
benchmark-results.txt:1539949: parsing iteration count: invalid syntax
goos: linux
goarch: amd64
pkg: github.com/GoCodeAlone/workflow/dynamic
cpu: AMD EPYC 7763 64-Core Processor                
                            │ benchmark-results.txt │
                            │        sec/op         │
InterpreterCreation-4                  9.563m ± 66%
ComponentLoad-4                        3.707m ± 10%
ComponentExecute-4                     1.945µ ±  1%
PoolContention/workers-1-4             1.093µ ±  3%
PoolContention/workers-2-4             1.078µ ±  2%
PoolContention/workers-4-4             1.083µ ±  1%
PoolContention/workers-8-4             1.093µ ±  1%
PoolContention/workers-16-4            1.094µ ±  4%
ComponentLifecycle-4                   3.620m ±  1%
SourceValidation-4                     2.331µ ±  1%
RegistryConcurrent-4                   799.8n ±  5%
LoaderLoadFromString-4                 3.638m ±  1%
geomean                                19.25µ

                            │ benchmark-results.txt │
                            │         B/op          │
InterpreterCreation-4                  2.027Mi ± 0%
ComponentLoad-4                        2.180Mi ± 0%
ComponentExecute-4                     1.203Ki ± 0%
PoolContention/workers-1-4             1.203Ki ± 0%
PoolContention/workers-2-4             1.203Ki ± 0%
PoolContention/workers-4-4             1.203Ki ± 0%
PoolContention/workers-8-4             1.203Ki ± 0%
PoolContention/workers-16-4            1.203Ki ± 0%
ComponentLifecycle-4                   2.183Mi ± 0%
SourceValidation-4                     1.984Ki ± 0%
RegistryConcurrent-4                   1.133Ki ± 0%
LoaderLoadFromString-4                 2.182Mi ± 0%
geomean                                15.25Ki

                            │ benchmark-results.txt │
                            │       allocs/op       │
InterpreterCreation-4                   15.68k ± 0%
ComponentLoad-4                         18.02k ± 0%
ComponentExecute-4                       25.00 ± 0%
PoolContention/workers-1-4               25.00 ± 0%
PoolContention/workers-2-4               25.00 ± 0%
PoolContention/workers-4-4               25.00 ± 0%
PoolContention/workers-8-4               25.00 ± 0%
PoolContention/workers-16-4              25.00 ± 0%
ComponentLifecycle-4                    18.07k ± 0%
SourceValidation-4                       32.00 ± 0%
RegistryConcurrent-4                     2.000 ± 0%
LoaderLoadFromString-4                  18.06k ± 0%
geomean                                  183.3

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                            │ baseline-bench.txt │
                            │       sec/op       │
InterpreterCreation-4               8.359m ± 63%
ComponentLoad-4                     3.532m ± 11%
ComponentExecute-4                  1.995µ ±  2%
PoolContention/workers-1-4          1.229µ ±  2%
PoolContention/workers-2-4          1.230µ ±  2%
PoolContention/workers-4-4          1.198µ ±  0%
PoolContention/workers-8-4          1.199µ ±  1%
PoolContention/workers-16-4         1.213µ ±  2%
ComponentLifecycle-4                3.588m ±  2%
SourceValidation-4                  2.324µ ±  2%
RegistryConcurrent-4                942.2n ±  6%
LoaderLoadFromString-4              3.658m ±  1%
geomean                             20.14µ

                            │ baseline-bench.txt │
                            │        B/op        │
InterpreterCreation-4               2.027Mi ± 0%
ComponentLoad-4                     2.180Mi ± 0%
ComponentExecute-4                  1.203Ki ± 0%
PoolContention/workers-1-4          1.203Ki ± 0%
PoolContention/workers-2-4          1.203Ki ± 0%
PoolContention/workers-4-4          1.203Ki ± 0%
PoolContention/workers-8-4          1.203Ki ± 0%
PoolContention/workers-16-4         1.203Ki ± 0%
ComponentLifecycle-4                2.183Mi ± 0%
SourceValidation-4                  1.984Ki ± 0%
RegistryConcurrent-4                1.133Ki ± 0%
LoaderLoadFromString-4              2.182Mi ± 0%
geomean                             15.25Ki

                            │ baseline-bench.txt │
                            │     allocs/op      │
InterpreterCreation-4                15.68k ± 0%
ComponentLoad-4                      18.02k ± 0%
ComponentExecute-4                    25.00 ± 0%
PoolContention/workers-1-4            25.00 ± 0%
PoolContention/workers-2-4            25.00 ± 0%
PoolContention/workers-4-4            25.00 ± 0%
PoolContention/workers-8-4            25.00 ± 0%
PoolContention/workers-16-4           25.00 ± 0%
ComponentLifecycle-4                 18.07k ± 0%
SourceValidation-4                    32.00 ± 0%
RegistryConcurrent-4                  2.000 ± 0%
LoaderLoadFromString-4               18.06k ± 0%
geomean                               183.3

pkg: github.com/GoCodeAlone/workflow/middleware
cpu: AMD EPYC 7763 64-Core Processor                
                                  │ benchmark-results.txt │
                                  │        sec/op         │
CircuitBreakerDetection-4                     286.8n ± 5%
CircuitBreakerExecution_Success-4             21.56n ± 0%
CircuitBreakerExecution_Failure-4             66.80n ± 0%
geomean                                       74.47n

                                  │ benchmark-results.txt │
                                  │         B/op          │
CircuitBreakerDetection-4                    144.0 ± 0%
CircuitBreakerExecution_Success-4            0.000 ± 0%
CircuitBreakerExecution_Failure-4            0.000 ± 0%
geomean                                                 ¹
¹ summaries must be >0 to compute geomean

                                  │ benchmark-results.txt │
                                  │       allocs/op       │
CircuitBreakerDetection-4                    1.000 ± 0%
CircuitBreakerExecution_Success-4            0.000 ± 0%
CircuitBreakerExecution_Failure-4            0.000 ± 0%
geomean                                                 ¹
¹ summaries must be >0 to compute geomean

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                                  │ baseline-bench.txt │
                                  │       sec/op       │
CircuitBreakerDetection-4                  460.8n ± 3%
CircuitBreakerExecution_Success-4          59.73n ± 0%
CircuitBreakerExecution_Failure-4          65.98n ± 0%
geomean                                    122.0n

                                  │ baseline-bench.txt │
                                  │        B/op        │
CircuitBreakerDetection-4                 144.0 ± 0%
CircuitBreakerExecution_Success-4         0.000 ± 0%
CircuitBreakerExecution_Failure-4         0.000 ± 0%
geomean                                              ¹
¹ summaries must be >0 to compute geomean

                                  │ baseline-bench.txt │
                                  │     allocs/op      │
CircuitBreakerDetection-4                 1.000 ± 0%
CircuitBreakerExecution_Success-4         0.000 ± 0%
CircuitBreakerExecution_Failure-4         0.000 ± 0%
geomean                                              ¹
¹ summaries must be >0 to compute geomean

pkg: github.com/GoCodeAlone/workflow/module
cpu: AMD EPYC 7763 64-Core Processor                
                                 │ benchmark-results.txt │
                                 │        sec/op         │
IaCStateBackend_InProcess-4                 308.2n ± 36%
IaCStateBackend_GRPC-4                      9.546m ±  3%
JQTransform_Simple-4                        662.4n ± 35%
JQTransform_ObjectConstruction-4            1.486µ ±  2%
JQTransform_ArraySelect-4                   3.485µ ±  1%
JQTransform_Complex-4                       39.45µ ±  2%
JQTransform_Throughput-4                    1.851µ ±  1%
SSEPublishDelivery-4                        64.63n ±  1%
geomean                                     3.843µ

                                 │ benchmark-results.txt │
                                 │         B/op          │
IaCStateBackend_InProcess-4                416.0 ±  0%
IaCStateBackend_GRPC-4                   5.830Mi ± 12%
JQTransform_Simple-4                     1.273Ki ±  0%
JQTransform_ObjectConstruction-4         1.773Ki ±  0%
JQTransform_ArraySelect-4                2.625Ki ±  0%
JQTransform_Complex-4                    16.31Ki ±  0%
JQTransform_Throughput-4                 1.984Ki ±  0%
SSEPublishDelivery-4                       0.000 ±  0%
geomean                                                ¹
¹ summaries must be >0 to compute geomean

                                 │ benchmark-results.txt │
                                 │       allocs/op       │
IaCStateBackend_InProcess-4                 2.000 ± 0%
IaCStateBackend_GRPC-4                     6.835k ± 0%
JQTransform_Simple-4                        10.00 ± 0%
JQTransform_ObjectConstruction-4            15.00 ± 0%
JQTransform_ArraySelect-4                   30.00 ± 0%
JQTransform_Complex-4                       328.0 ± 0%
JQTransform_Throughput-4                    17.00 ± 0%
SSEPublishDelivery-4                        0.000 ± 0%
geomean                                                ¹
¹ summaries must be >0 to compute geomean

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                                 │ baseline-bench.txt │
                                 │       sec/op       │
IaCStateBackend_InProcess-4              350.1n ± 36%
IaCStateBackend_GRPC-4                   10.05m ±  8%
JQTransform_Simple-4                     712.8n ± 30%
JQTransform_ObjectConstruction-4         1.546µ ±  2%
JQTransform_ArraySelect-4                3.294µ ±  2%
JQTransform_Complex-4                    36.61µ ±  1%
JQTransform_Throughput-4                 1.869µ ±  1%
SSEPublishDelivery-4                     75.95n ±  1%
geomean                                  4.006µ

                                 │ baseline-bench.txt │
                                 │        B/op        │
IaCStateBackend_InProcess-4             416.0 ±  0%
IaCStateBackend_GRPC-4                5.813Mi ± 10%
JQTransform_Simple-4                  1.273Ki ±  0%
JQTransform_ObjectConstruction-4      1.773Ki ±  0%
JQTransform_ArraySelect-4             2.625Ki ±  0%
JQTransform_Complex-4                 16.31Ki ±  0%
JQTransform_Throughput-4              1.984Ki ±  0%
SSEPublishDelivery-4                    0.000 ±  0%
geomean                                             ¹
¹ summaries must be >0 to compute geomean

                                 │ baseline-bench.txt │
                                 │     allocs/op      │
IaCStateBackend_InProcess-4              2.000 ± 0%
IaCStateBackend_GRPC-4                  6.872k ± 0%
JQTransform_Simple-4                     10.00 ± 0%
JQTransform_ObjectConstruction-4         15.00 ± 0%
JQTransform_ArraySelect-4                30.00 ± 0%
JQTransform_Complex-4                    328.0 ± 0%
JQTransform_Throughput-4                 17.00 ± 0%
SSEPublishDelivery-4                     0.000 ± 0%
geomean                                             ¹
¹ summaries must be >0 to compute geomean

pkg: github.com/GoCodeAlone/workflow/schema
cpu: AMD EPYC 7763 64-Core Processor                
                                    │ benchmark-results.txt │
                                    │        sec/op         │
SchemaValidation_Simple-4                       1.110µ ± 1%
SchemaValidation_AllFields-4                    1.671µ ± 2%
SchemaValidation_FormatValidation-4             1.604µ ± 6%
SchemaValidation_ManySchemas-4                  1.828µ ± 3%
geomean                                         1.527µ

                                    │ benchmark-results.txt │
                                    │         B/op          │
SchemaValidation_Simple-4                      0.000 ± 0%
SchemaValidation_AllFields-4                   0.000 ± 0%
SchemaValidation_FormatValidation-4            0.000 ± 0%
SchemaValidation_ManySchemas-4                 0.000 ± 0%
geomean                                                   ¹
¹ summaries must be >0 to compute geomean

                                    │ benchmark-results.txt │
                                    │       allocs/op       │
SchemaValidation_Simple-4                      0.000 ± 0%
SchemaValidation_AllFields-4                   0.000 ± 0%
SchemaValidation_FormatValidation-4            0.000 ± 0%
SchemaValidation_ManySchemas-4                 0.000 ± 0%
geomean                                                   ¹
¹ summaries must be >0 to compute geomean

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                                    │ baseline-bench.txt │
                                    │       sec/op       │
SchemaValidation_Simple-4                   1.022µ ± 18%
SchemaValidation_AllFields-4                1.515µ ±  1%
SchemaValidation_FormatValidation-4         1.483µ ±  1%
SchemaValidation_ManySchemas-4              1.519µ ±  3%
geomean                                     1.367µ

                                    │ baseline-bench.txt │
                                    │        B/op        │
SchemaValidation_Simple-4                   0.000 ± 0%
SchemaValidation_AllFields-4                0.000 ± 0%
SchemaValidation_FormatValidation-4         0.000 ± 0%
SchemaValidation_ManySchemas-4              0.000 ± 0%
geomean                                                ¹
¹ summaries must be >0 to compute geomean

                                    │ baseline-bench.txt │
                                    │     allocs/op      │
SchemaValidation_Simple-4                   0.000 ± 0%
SchemaValidation_AllFields-4                0.000 ± 0%
SchemaValidation_FormatValidation-4         0.000 ± 0%
SchemaValidation_ManySchemas-4              0.000 ± 0%
geomean                                                ¹
¹ summaries must be >0 to compute geomean

pkg: github.com/GoCodeAlone/workflow/store
cpu: AMD EPYC 7763 64-Core Processor                
                                   │ benchmark-results.txt │
                                   │        sec/op         │
EventStoreAppend_InMemory-4                   1.271µ ± 14%
EventStoreAppend_SQLite-4                     1.392m ±  5%
GetTimeline_InMemory/events-10-4              15.42µ ±  3%
GetTimeline_InMemory/events-50-4              83.07µ ±  5%
GetTimeline_InMemory/events-100-4             132.5µ ± 27%
GetTimeline_InMemory/events-500-4             673.2µ ±  1%
GetTimeline_InMemory/events-1000-4            1.369m ±  2%
GetTimeline_SQLite/events-10-4                80.16µ ±  2%
GetTimeline_SQLite/events-50-4                234.6µ ±  1%
GetTimeline_SQLite/events-100-4               422.8µ ±  5%
GetTimeline_SQLite/events-500-4               1.897m ±  1%
GetTimeline_SQLite/events-1000-4              3.720m ±  1%
geomean                                       223.5µ

                                   │ benchmark-results.txt │
                                   │         B/op          │
EventStoreAppend_InMemory-4                    836.0 ± 10%
EventStoreAppend_SQLite-4                    1.985Ki ±  2%
GetTimeline_InMemory/events-10-4             7.953Ki ±  0%
GetTimeline_InMemory/events-50-4             46.62Ki ±  0%
GetTimeline_InMemory/events-100-4            94.48Ki ±  0%
GetTimeline_InMemory/events-500-4            472.8Ki ±  0%
GetTimeline_InMemory/events-1000-4           944.3Ki ±  0%
GetTimeline_SQLite/events-10-4               16.74Ki ±  0%
GetTimeline_SQLite/events-50-4               87.14Ki ±  0%
GetTimeline_SQLite/events-100-4              175.4Ki ±  0%
GetTimeline_SQLite/events-500-4              846.1Ki ±  0%
GetTimeline_SQLite/events-1000-4             1.639Mi ±  0%
geomean                                      67.66Ki

                                   │ benchmark-results.txt │
                                   │       allocs/op       │
EventStoreAppend_InMemory-4                     7.000 ± 0%
EventStoreAppend_SQLite-4                       53.00 ± 0%
GetTimeline_InMemory/events-10-4                125.0 ± 0%
GetTimeline_InMemory/events-50-4                653.0 ± 0%
GetTimeline_InMemory/events-100-4              1.306k ± 0%
GetTimeline_InMemory/events-500-4              6.514k ± 0%
GetTimeline_InMemory/events-1000-4             13.02k ± 0%
GetTimeline_SQLite/events-10-4                  382.0 ± 0%
GetTimeline_SQLite/events-50-4                 1.852k ± 0%
GetTimeline_SQLite/events-100-4                3.681k ± 0%
GetTimeline_SQLite/events-500-4                18.54k ± 0%
GetTimeline_SQLite/events-1000-4               37.29k ± 0%
geomean                                        1.162k

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                                   │ baseline-bench.txt │
                                   │       sec/op       │
EventStoreAppend_InMemory-4                1.159µ ±  6%
EventStoreAppend_SQLite-4                  957.0µ ±  3%
GetTimeline_InMemory/events-10-4           14.67µ ±  5%
GetTimeline_InMemory/events-50-4           82.57µ ±  2%
GetTimeline_InMemory/events-100-4          163.6µ ±  3%
GetTimeline_InMemory/events-500-4          821.9µ ±  3%
GetTimeline_InMemory/events-1000-4         1.679m ±  3%
GetTimeline_SQLite/events-10-4             66.45µ ± 10%
GetTimeline_SQLite/events-50-4             218.3µ ±  1%
GetTimeline_SQLite/events-100-4            412.9µ ±  1%
GetTimeline_SQLite/events-500-4            1.940m ±  3%
GetTimeline_SQLite/events-1000-4           3.825m ±  3%
geomean                                    220.9µ

                                   │ baseline-bench.txt │
                                   │        B/op        │
EventStoreAppend_InMemory-4                  814.0 ± 7%
EventStoreAppend_SQLite-4                  1.986Ki ± 1%
GetTimeline_InMemory/events-10-4           7.953Ki ± 0%
GetTimeline_InMemory/events-50-4           46.62Ki ± 0%
GetTimeline_InMemory/events-100-4          94.48Ki ± 0%
GetTimeline_InMemory/events-500-4          472.8Ki ± 0%
GetTimeline_InMemory/events-1000-4         944.3Ki ± 0%
GetTimeline_SQLite/events-10-4             16.74Ki ± 0%
GetTimeline_SQLite/events-50-4             87.14Ki ± 0%
GetTimeline_SQLite/events-100-4            175.4Ki ± 0%
GetTimeline_SQLite/events-500-4            846.1Ki ± 0%
GetTimeline_SQLite/events-1000-4           1.639Mi ± 0%
geomean                                    67.52Ki

                                   │ baseline-bench.txt │
                                   │     allocs/op      │
EventStoreAppend_InMemory-4                  7.000 ± 0%
EventStoreAppend_SQLite-4                    53.00 ± 0%
GetTimeline_InMemory/events-10-4             125.0 ± 0%
GetTimeline_InMemory/events-50-4             653.0 ± 0%
GetTimeline_InMemory/events-100-4           1.306k ± 0%
GetTimeline_InMemory/events-500-4           6.514k ± 0%
GetTimeline_InMemory/events-1000-4          13.02k ± 0%
GetTimeline_SQLite/events-10-4               382.0 ± 0%
GetTimeline_SQLite/events-50-4              1.852k ± 0%
GetTimeline_SQLite/events-100-4             3.681k ± 0%
GetTimeline_SQLite/events-500-4             18.54k ± 0%
GetTimeline_SQLite/events-1000-4            37.29k ± 0%
geomean                                     1.162k

Benchmarks run with go test -bench=. -benchmem -count=6.
Regressions ≥ 20% are flagged. Results compared via benchstat.

@intel352 intel352 merged commit b7ae6e8 into main Jun 2, 2026
23 checks passed
@intel352 intel352 deleted the fix/reflect-pointer-lint branch June 2, 2026 23:51
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.

2 participants