Skip to content

Conversation

@tab
Copy link
Owner

@tab tab commented Jan 25, 2026

  • Add concurrency: workers setting to config.yaml
  • Extend default configuration with concurrency workers
  • Validate that concurrency workers > 0 in config validation

- Add concurrency: workers setting to config.yaml
- Extend default configuration with concurrency workers
- Validate that concurrency workers > 0 in config validation
@tab tab requested a review from Copilot January 25, 2026 16:38
@tab tab self-assigned this Jan 25, 2026
Copy link

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 adds configurable concurrency worker settings to the application's configuration system. Users can now specify the number of concurrent workers in fuku.yaml, with validation ensuring the value is greater than zero.

Changes:

  • Added concurrency.workers configuration field with validation
  • Updated WorkerPool to use configured worker count instead of hardcoded constant
  • Enhanced test coverage for concurrency configuration loading and validation

Reviewed changes

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

Show a summary per file
File Description
internal/config/config.go Added Concurrency struct with Workers field, validation logic, and default initialization
internal/config/config_test.go Added comprehensive tests for concurrency configuration validation and loading
internal/app/runner/workerpool.go Modified NewWorkerPool to accept Config parameter and use configured worker count
internal/app/runner/workerpool_test.go Updated tests to use configured workers from Config instead of constant
internal/app/errors/errors.go Added ErrInvalidConcurrencyWorkers error and errors.Is export
fuku.yaml Added example concurrency configuration with 10 workers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.57%. Comparing base (6b25dde) to head (e386431).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
+ Coverage   87.46%   87.57%   +0.11%     
==========================================
  Files          34       34              
  Lines        2584     2591       +7     
==========================================
+ Hits         2260     2269       +9     
+ Misses        285      284       -1     
+ Partials       39       38       -1     
Files with missing lines Coverage Δ
internal/app/runner/workerpool.go 100.00% <100.00%> (ø)
internal/config/config.go 88.81% <100.00%> (+2.04%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tab tab merged commit 8597657 into master Jan 25, 2026
5 checks passed
@tab tab deleted the feature/concurrency-configuration branch January 25, 2026 16:40
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.

3 participants