Skip to content

Fix lint failures blocking CI on infra cleanup implementation#566

Merged
intel352 merged 5 commits intomainfrom
copilot/implement-wfctl-infra-cleanup-tag
May 6, 2026
Merged

Fix lint failures blocking CI on infra cleanup implementation#566
intel352 merged 5 commits intomainfrom
copilot/implement-wfctl-infra-cleanup-tag

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

CI lint job was failing on two findings introduced alongside the wfctl infra cleanup --tag implementation.

Fixes

  • cmd/wfctl/infra_provider_dispatch_test.gospecNames helper was defined but never called; the two computeInfraPlan closures duplicated its body inline. Replaced the inline loops with specNames(specs) calls.

  • cmd/iac-codemod/refactor_plan.go — Two // generates: <code> comments flagged by gocritic/commentedOutCode because they contained valid Go syntax (:=, return). Reworded to // AST output: `<code>` format.

Copilot AI requested review from Copilot and removed request for Copilot May 6, 2026 04:44
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

⏱ Benchmark Results

No significant performance regressions detected.

benchstat comparison (baseline → PR)
## benchstat: baseline → PR
baseline-bench.txt:260: parsing iteration count: invalid syntax
baseline-bench.txt:411159: parsing iteration count: invalid syntax
baseline-bench.txt:782203: parsing iteration count: invalid syntax
baseline-bench.txt:1186142: parsing iteration count: invalid syntax
baseline-bench.txt:1525131: parsing iteration count: invalid syntax
baseline-bench.txt:1861336: parsing iteration count: invalid syntax
benchmark-results.txt:260: parsing iteration count: invalid syntax
benchmark-results.txt:360429: parsing iteration count: invalid syntax
benchmark-results.txt:666355: parsing iteration count: invalid syntax
benchmark-results.txt:980744: parsing iteration count: invalid syntax
benchmark-results.txt:1280406: parsing iteration count: invalid syntax
benchmark-results.txt:1625512: parsing iteration count: invalid syntax
goos: linux
goarch: amd64
pkg: github.com/GoCodeAlone/workflow/dynamic
cpu: AMD EPYC 9V74 80-Core Processor                
                            │ baseline-bench.txt │
                            │       sec/op       │
InterpreterCreation-4               2.325m ± 10%
ComponentLoad-4                     2.670m ±  1%
ComponentExecute-4                  1.400µ ±  1%
PoolContention/workers-1-4          779.5n ±  0%
PoolContention/workers-2-4          785.6n ±  2%
PoolContention/workers-4-4          785.6n ±  1%
PoolContention/workers-8-4          783.4n ±  1%
PoolContention/workers-16-4         782.0n ±  1%
ComponentLifecycle-4                2.688m ±  0%
SourceValidation-4                  1.609µ ±  1%
RegistryConcurrent-4                583.5n ±  4%
LoaderLoadFromString-4              2.724m ±  0%
geomean                             12.70µ

                            │ 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

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                            │ benchmark-results.txt │
                            │        sec/op         │
InterpreterCreation-4                 3.741m ± 169%
ComponentLoad-4                       3.750m ±   5%
ComponentExecute-4                    1.985µ ±   2%
PoolContention/workers-1-4            1.242µ ±   1%
PoolContention/workers-2-4            1.230µ ±   2%
PoolContention/workers-4-4            1.239µ ±   1%
PoolContention/workers-8-4            1.240µ ±   2%
PoolContention/workers-16-4           1.244µ ±   1%
ComponentLifecycle-4                  3.878m ±   2%
SourceValidation-4                    2.292µ ±   1%
RegistryConcurrent-4                  941.2n ±   6%
LoaderLoadFromString-4                3.731m ±   2%
geomean                               19.22µ

                            │ 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

pkg: github.com/GoCodeAlone/workflow/middleware
cpu: AMD EPYC 9V74 80-Core Processor                
                                  │ baseline-bench.txt │
                                  │       sec/op       │
CircuitBreakerDetection-4                  231.0n ± 4%
CircuitBreakerExecution_Success-4          17.59n ± 0%
CircuitBreakerExecution_Failure-4          55.15n ± 0%
geomean                                    60.74n

                                  │ 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

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                                  │ benchmark-results.txt │
                                  │        sec/op         │
CircuitBreakerDetection-4                     466.6n ± 0%
CircuitBreakerExecution_Success-4             59.73n ± 1%
CircuitBreakerExecution_Failure-4             64.89n ± 1%
geomean                                       121.8n

                                  │ 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

pkg: github.com/GoCodeAlone/workflow/module
cpu: AMD EPYC 9V74 80-Core Processor                
                                 │ baseline-bench.txt │
                                 │       sec/op       │
JQTransform_Simple-4                     625.3n ± 34%
JQTransform_ObjectConstruction-4         1.085µ ±  0%
JQTransform_ArraySelect-4                2.582µ ±  1%
JQTransform_Complex-4                    31.61µ ±  2%
JQTransform_Throughput-4                 1.326µ ±  1%
SSEPublishDelivery-4                     50.01n ±  1%
geomean                                  1.242µ

                                 │ baseline-bench.txt │
                                 │        B/op        │
JQTransform_Simple-4                   1.273Ki ± 0%
JQTransform_ObjectConstruction-4       1.773Ki ± 0%
JQTransform_ArraySelect-4              2.625Ki ± 0%
JQTransform_Complex-4                  16.22Ki ± 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      │
JQTransform_Simple-4                     10.00 ± 0%
JQTransform_ObjectConstruction-4         15.00 ± 0%
JQTransform_ArraySelect-4                30.00 ± 0%
JQTransform_Complex-4                    324.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
                                 │ benchmark-results.txt │
                                 │        sec/op         │
JQTransform_Simple-4                        1.025µ ± 21%
JQTransform_ObjectConstruction-4            1.564µ ±  2%
JQTransform_ArraySelect-4                   3.369µ ±  1%
JQTransform_Complex-4                       36.33µ ±  1%
JQTransform_Throughput-4                    1.898µ ±  2%
SSEPublishDelivery-4                        76.47n ±  3%
geomean                                     1.747µ

                                 │ benchmark-results.txt │
                                 │         B/op          │
JQTransform_Simple-4                      1.273Ki ± 0%
JQTransform_ObjectConstruction-4          1.773Ki ± 0%
JQTransform_ArraySelect-4                 2.625Ki ± 0%
JQTransform_Complex-4                     16.22Ki ± 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       │
JQTransform_Simple-4                        10.00 ± 0%
JQTransform_ObjectConstruction-4            15.00 ± 0%
JQTransform_ArraySelect-4                   30.00 ± 0%
JQTransform_Complex-4                       324.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 9V74 80-Core Processor                
                                    │ baseline-bench.txt │
                                    │       sec/op       │
SchemaValidation_Simple-4                   873.8n ± 11%
SchemaValidation_AllFields-4                1.281µ ±  1%
SchemaValidation_FormatValidation-4         1.250µ ±  1%
SchemaValidation_ManySchemas-4              1.261µ ±  2%
geomean                                     1.152µ

                                    │ 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

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                                    │ benchmark-results.txt │
                                    │        sec/op         │
SchemaValidation_Simple-4                      1.019µ ± 34%
SchemaValidation_AllFields-4                   1.514µ ±  2%
SchemaValidation_FormatValidation-4            1.478µ ±  1%
SchemaValidation_ManySchemas-4                 1.506µ ±  4%
geomean                                        1.361µ

                                    │ 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

pkg: github.com/GoCodeAlone/workflow/store
cpu: AMD EPYC 9V74 80-Core Processor                
                                   │ baseline-bench.txt │
                                   │       sec/op       │
EventStoreAppend_InMemory-4                746.6n ± 11%
EventStoreAppend_SQLite-4                  8.689m ± 72%
GetTimeline_InMemory/events-10-4           7.793µ ±  1%
GetTimeline_InMemory/events-50-4           43.47µ ±  1%
GetTimeline_InMemory/events-100-4          86.66µ ±  0%
GetTimeline_InMemory/events-500-4          444.4µ ±  0%
GetTimeline_InMemory/events-1000-4         903.1µ ±  0%
GetTimeline_SQLite/events-10-4             66.06µ ±  1%
GetTimeline_SQLite/events-50-4             172.5µ ±  1%
GetTimeline_SQLite/events-100-4            302.4µ ±  1%
GetTimeline_SQLite/events-500-4            1.327m ±  0%
GetTimeline_SQLite/events-1000-4           2.604m ±  1%
geomean                                    176.4µ

                                   │ baseline-bench.txt │
                                   │        B/op        │
EventStoreAppend_InMemory-4                 841.0 ± 12%
EventStoreAppend_SQLite-4                 2.004Ki ± 22%
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.75Ki

                                   │ baseline-bench.txt │
                                   │     allocs/op      │
EventStoreAppend_InMemory-4                  7.000 ± 0%
EventStoreAppend_SQLite-4                    53.00 ± 2%
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
                                   │ benchmark-results.txt │
                                   │        sec/op         │
EventStoreAppend_InMemory-4                    1.123µ ± 1%
EventStoreAppend_SQLite-4                      1.306m ± 7%
GetTimeline_InMemory/events-10-4               14.12µ ± 3%
GetTimeline_InMemory/events-50-4               78.27µ ± 1%
GetTimeline_InMemory/events-100-4              125.4µ ± 5%
GetTimeline_InMemory/events-500-4              629.5µ ± 1%
GetTimeline_InMemory/events-1000-4             1.273m ± 3%
GetTimeline_SQLite/events-10-4                 85.76µ ± 3%
GetTimeline_SQLite/events-50-4                 251.5µ ± 3%
GetTimeline_SQLite/events-100-4                464.0µ ± 1%
GetTimeline_SQLite/events-500-4                2.039m ± 1%
GetTimeline_SQLite/events-1000-4               4.091m ± 2%
geomean                                        221.0µ

                                   │ benchmark-results.txt │
                                   │         B/op          │
EventStoreAppend_InMemory-4                    745.0 ± 13%
EventStoreAppend_SQLite-4                    1.984Ki ±  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.02Ki

                                   │ 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

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

Copilot AI requested review from Copilot and removed request for Copilot May 6, 2026 05:00
Copilot AI changed the title [WIP] Implement wfctl infra cleanup --tag for full-wfctl conformance Fix lint failures blocking CI on infra cleanup implementation May 6, 2026
Copilot AI requested a review from intel352 May 6, 2026 05:02
@intel352 intel352 marked this pull request as ready for review May 6, 2026 06:00
Copilot AI review requested due to automatic review settings May 6, 2026 06:00
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 addresses CI lint failures introduced during the wfctl infra cleanup --tag work by removing unused code in tests and rewording comments that were being flagged by gocritic.

Changes:

  • Refactored infra_provider_dispatch_test.go to reuse the existing specNames helper instead of duplicating its logic inline.
  • Reworded code-like comments in refactor_plan.go to avoid triggering gocritic/commentedOutCode.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cmd/wfctl/infra_provider_dispatch_test.go Reuses specNames(specs) in two seams to eliminate unused/duplicated logic in the test.
cmd/iac-codemod/refactor_plan.go Rewords code-generation comments to avoid gocritic lint findings.

Comment thread cmd/iac-codemod/refactor_plan.go Outdated
@intel352
Copy link
Copy Markdown
Contributor

intel352 commented May 6, 2026

@copilot resolve the merge conflicts in this pull request and #566 (review)

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 6, 2026

@copilot resolve the merge conflicts in this pull request and #566 (review)

Merged origin/main into this branch (commit 180513f). Conflict in cmd/iac-codemod/refactor_plan.go resolved by adopting the emits an assignment: / emits a return statement: phrasing from main while also applying the reviewer's suggestion to use <pkgAlias> instead of hardcoded platform. Also removed the now-superfluous //nolint:unused on specNames since the function is actively called in both closures.

@intel352
Copy link
Copy Markdown
Contributor

intel352 commented May 6, 2026

@copilot resolve the merge conflicts in this pull request

Copilot AI requested review from Copilot and removed request for Copilot May 6, 2026 18:20
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 6, 2026

@copilot resolve the merge conflicts in this pull request

Merged origin/main (commit ff58fc4). The only conflict was the <pkgAlias> vs platform comment in refactor_plan.go — kept the <pkgAlias> placeholder as already requested by the reviewer.

@intel352 intel352 merged commit ea6e044 into main May 6, 2026
20 checks passed
@intel352 intel352 deleted the copilot/implement-wfctl-infra-cleanup-tag branch May 6, 2026 18:43
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.

Implement wfctl infra cleanup --tag for full-wfctl conformance gate cleanup

3 participants