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 +4 -4
- data/README.md +3 -3
- data/lib/ci_logger/railtie.rb +8 -1
- data/lib/ci_logger/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ce341924bdc0f1a3761810fb5d58009a503cd9688b54deb96851e13e6f2ffaf
|
4
|
+
data.tar.gz: 1934aeee05c62941aec7eb654453444a3e1b10878d34e1e3348b388c25f01897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80239a598de56634fafb6dfda2789daeb45fe930689299a5e33bc57bf5ec61d2b79c43e0c6bfb18cf35e4faf0964a257755aadb261f5a0523c7335b6124b31ed
|
7
|
+
data.tar.gz: 032d18696a2d8c1a94cdbf50c7e293298e58bab9b6a288c6abff751b59ab38e8f41ac7b498fd62af04900a0e9428f899fa6af551b348f4101ba821147dd01bd5
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# CiLogger
|
2
2
|
|
3
|
-
|
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
|
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.
|
10
|
+
- rails(>= 6.1)
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
data/lib/ci_logger/railtie.rb
CHANGED
@@ -5,7 +5,14 @@ module CiLogger
|
|
5
5
|
|
6
6
|
config.before_initialize do
|
7
7
|
if CiLogger.enabled?
|
8
|
-
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"
|
data/lib/ci_logger/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|
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.
|
82
|
+
rubygems_version: 3.4.22
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Faster logger for CI
|