ci_logger 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3ef69b1f08389623edc46eadeecb5caab6cd9cc5cf993b6eddf8f964c3b8908
4
- data.tar.gz: 5aa92e9108400d33f65c075996498030cd69922ec8d9e568ae8b2cb888954d54
3
+ metadata.gz: 1ce341924bdc0f1a3761810fb5d58009a503cd9688b54deb96851e13e6f2ffaf
4
+ data.tar.gz: 1934aeee05c62941aec7eb654453444a3e1b10878d34e1e3348b388c25f01897
5
5
  SHA512:
6
- metadata.gz: b792b58199a032f4cf4e1404f40e5625e5f34b7064b5a32e57299a4a6e285cd6116fce0d84b8a0439a2800052d5f0a931e682c4799e83771bd79ca383a3738a0
7
- data.tar.gz: e5215e8fa3f9c60928f8526858f0ad2f8f462954a9b39377193aec190cf60ee241ef157560f090be7e7c670d67cfac6dfde4f94e10f26de5d4bd042b5bb182fa
6
+ metadata.gz: 80239a598de56634fafb6dfda2789daeb45fe930689299a5e33bc57bf5ec61d2b79c43e0c6bfb18cf35e4faf0964a257755aadb261f5a0523c7335b6124b31ed
7
+ data.tar.gz: 032d18696a2d8c1a94cdbf50c7e293298e58bab9b6a288c6abff751b59ab38e8f41ac7b498fd62af04900a0e9428f899fa6af551b348f4101ba821147dd01bd5
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # CiLogger
2
2
 
3
- We perform a significant number of tests using CI on a daily basis. Whenever a test fails, we need to examine the log. However, the current log output is excessively large, making it challenging to identify the root cause of the failed test.
3
+ In our CI process, we often look at logs to figure out issues with flaky tests—tests that fail sometimes but not always, especially when we can't make them fail in the same way on our own computers. The problem is, it's hard to tell which logs are about the failed tests because logs from tests that passed and failed are all mixed together.
4
4
 
5
- CiLogger specifically generates logs for failed tests, which proves invaluable during the investigation of test failures.
5
+ CiLogger makes this easier by only keeping logs from tests that didn't pass, including the tricky flaky ones. This means when a flaky test won't fail the same way for us locally, we can quickly find and look at the right logs to help us understand and fix the problem.
6
6
 
7
7
  ## prerequisite
8
8
 
9
9
  - rspec or minitest
10
- - rails(>= 6.0)
10
+ - rails(>= 6.1)
11
11
 
12
12
  ## Installation
13
13
 
@@ -5,7 +5,14 @@ module CiLogger
5
5
 
6
6
  config.before_initialize do
7
7
  if CiLogger.enabled?
8
- Rails.logger = CiLogger::Logger.new(Rails.logger)
8
+ if defined?(ActiveSupport::BroadcastLogger) && Rails.logger.is_a?(ActiveSupport::BroadcastLogger)
9
+ Rails.logger.instance_variable_get(:@broadcasts).map! do |logger|
10
+ CiLogger::Logger.new(logger)
11
+ end
12
+ else
13
+ Rails.logger = CiLogger::Logger.new(Rails.logger)
14
+ end
15
+
9
16
  begin
10
17
  require "rspec/core"
11
18
  require "ci_logger/rspec/integration"
@@ -1,3 +1,3 @@
1
1
  module CiLogger
2
- VERSION = '0.8.0'
2
+ VERSION = '0.9.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-15 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.0
19
+ version: 6.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 6.0.0
26
+ version: 6.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.4.17
82
+ rubygems_version: 3.4.22
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Faster logger for CI