Skip to content

Conversation

@willnet
Copy link
Contributor

@willnet willnet commented Jul 28, 2025

  • Add Ruby 3.4 to the CI matrix
  • Fix Rubocop violations
  • Fix unit test failure caused by missing case handling in sidekiq_user method

CI result is here.

willnet added 3 commits July 28, 2025 09:51
Fixed all violations using `rubocop -a`
The following test started failing after the commit Harmonize interface with seuros@68d734f

```
  1) Error:
SidekiqCommonTest#test_sidekiq_user_with_role:
KeyError: key not found: :sidekiq_user
    lib/capistrano/sidekiq.rb:56:in 'Hash#fetch'
    lib/capistrano/sidekiq.rb:56:in 'Capistrano::SidekiqCommon#sidekiq_user'
    test/unit_test.rb:58:in 'SidekiqCommonTest#test_sidekiq_user_with_role'
```

This occurred because the implementation did not account for the case where sidekiq_user or run_as is missing in role.properties. I judged the implementation to be incorrect and fixed the code accordingly.
@seuros seuros merged commit 9ac4beb into seuros:master Jul 28, 2025
3 checks passed
@willnet willnet deleted the fix-ci-fails branch July 29, 2025 02:52
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