You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate steno logging library directly into cloud_controller_ng
This integrates the steno logging library as an internal component rather
than an external gem dependency, allowing for better control, customization,
and maintainability within the Cloud Controller codebase.
Key Changes:
- Integrated steno library code from cloudfoundry/steno repository
- Removed steno gem dependency from Gemfile
- Flattened steno directory structure under lib/steno/
- Removed unused steno features (Windows support, context providers, tagged logging)
- Updated all require paths from 'steno' to 'steno/steno'
- Removed lib/steno.rb wrapper file
Steno Modifications:
- Replaced Yajl with Oj JSON parser for better performance
- Added syslog gem dependency for syslog sink functionality
- Removed unused yajl-ruby gem
- Applied RuboCop auto-corrections to integrated steno code
- Integrated custom RFC3339 codec (lib/steno/codec/codec_rfc3339.rb)
- Documented modification policy in README.md
Bug Fixes:
- Fixed race condition in syslog reset for parallel test execution
- Added reset! method to Syslog singleton for proper test cleanup
- Added nil guard to syslog sink add_record method
- Fixed syslog sink mock leakage between tests
- Fixed steno JSON codec timestamp test to accept Numeric types
Test Infrastructure:
- Moved steno tests to spec/isolated_specs/steno/ to prevent mock leakage
- Restored and updated all steno unit tests
- Fixed test isolation issues with syslog mocking
- Created isolated test helper (spec/isolated_specs/steno/spec_helper.rb)
Documentation:
- Added NOTICE file from original steno repository
- Added LICENSE file (Apache 2.0)
- Created comprehensive README.md with integration history
- Documented Rails/Delegate RuboCop change
Related Changes:
- Removed unused ByteQuantity class (replaced by ByteConverter)
- Updated cloud_controller version files
This integration enables better debugging, faster iteration, and eliminates
external dependency management for a critical logging component.
0 commit comments