File tree 10 files changed +19
-16
lines changed
sidekiq/server_internal_tracer
10 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ name: Unit Tests
6
6
push :
7
7
branches :
8
8
- master
9
+ - tonycthsu/*
9
10
pull_request :
10
11
branches :
11
12
- master
Original file line number Diff line number Diff line change 212
212
let ( :agent_base_url ) { "http://#{ hostname } :#{ port } " }
213
213
214
214
[ :fiddle , :signal ] . each do |trigger |
215
- it "reports crashes via http when app crashes with #{ trigger } " , skip : ENV [ 'BATCHED_TASKS' ] do
215
+ it "reports crashes via http when app crashes with #{ trigger } " do
216
216
fork_expectations = proc do |status :, stdout :, stderr :|
217
217
expect ( Signal . signame ( status . termsig ) ) . to eq ( 'SEGV' ) . or eq ( 'ABRT' )
218
218
expect ( stderr ) . to include ( '[BUG] Segmentation fault' )
269
269
# Do nothing, it's ok
270
270
end
271
271
272
- it 'reports crashes via uds when app crashes with fiddle' , skip : ENV [ 'BATCHED_TASKS' ] do
272
+ it 'reports crashes via uds when app crashes with fiddle' do
273
273
fork_expectations = proc do |status :, stdout :, stderr :|
274
274
expect ( Signal . signame ( status . termsig ) ) . to eq ( 'SEGV' ) . or eq ( 'ABRT' )
275
275
expect ( stderr ) . to include ( '[BUG] Segmentation fault' )
Original file line number Diff line number Diff line change 69
69
70
70
context 'when in a Pry session' do
71
71
it 'returns true' do
72
- skip ( 'Temporarily skipping for batched tests from Github Actions' ) if ENV [ 'BATCHED_TASKS' ]
73
72
Tempfile . create ( 'test' ) do |f |
74
73
f . write ( repl_script )
75
74
f . close
Original file line number Diff line number Diff line change 119
119
end
120
120
end
121
121
122
- context 'when in fork' , skip : ENV [ 'BATCHED_TASKS' ] do
122
+ context 'when in fork' do
123
123
before { skip 'Fork not supported on current platform' unless Process . respond_to? ( :fork ) }
124
124
125
125
it do
169
169
end
170
170
end
171
171
172
- context 'when in fork' , skip : ENV [ 'BATCHED_TASKS' ] do
172
+ context 'when in fork' do
173
173
before { skip 'Fork not supported on current platform' unless Process . respond_to? ( :fork ) }
174
174
175
175
it do
209
209
end
210
210
end
211
211
212
- context 'when in fork' , skip : ENV [ 'BATCHED_TASKS' ] do
212
+ context 'when in fork' do
213
213
before { skip 'Fork not supported on current platform' unless Process . respond_to? ( :fork ) }
214
214
215
215
it do
245
245
expect ( worker ) . to have_received ( :enqueue ) . with ( event )
246
246
end
247
247
248
- context 'when in fork' , skip : !Process . respond_to? ( :fork ) || ENV [ 'BATCHED_TASKS' ] do
248
+ context 'when in fork' , skip : !Process . respond_to? ( :fork ) do
249
249
it do
250
250
telemetry
251
251
expect_in_fork do
Original file line number Diff line number Diff line change 105
105
end
106
106
end
107
107
108
- context 'secondary client' , skip : ENV [ 'BATCHED_TASKS' ] do
108
+ context 'secondary client' do
109
109
around do |example |
110
110
without_warnings do
111
111
# Reset before and after each example; don't allow global state to linger.
Original file line number Diff line number Diff line change 1
1
require 'datadog/tracing/contrib/support/spec_helper'
2
2
require_relative '../support/helper'
3
3
4
- RSpec . describe 'Server internal tracer heartbeat' , skip : ENV [ 'BATCHED_TASKS' ] do
4
+ RSpec . describe 'Server internal tracer heartbeat' do
5
5
include SidekiqServerExpectations
6
6
7
7
before do
Original file line number Diff line number Diff line change 1
1
require 'datadog/tracing/contrib/support/spec_helper'
2
2
require_relative '../support/helper'
3
3
4
- RSpec . describe 'Server internal tracer' , skip : ENV [ 'BATCHED_TASKS' ] do
4
+ RSpec . describe 'Server internal tracer' do
5
5
include SidekiqServerExpectations
6
6
7
7
before do
Original file line number Diff line number Diff line change 1
1
require 'datadog/tracing/contrib/support/spec_helper'
2
2
require_relative '../support/helper'
3
3
4
- RSpec . describe 'Server internal tracer' , skip : ENV [ 'BATCHED_TASKS' ] do
4
+ RSpec . describe 'Server internal tracer' do
5
5
include SidekiqServerExpectations
6
6
before do
7
7
unless Datadog ::Tracing ::Contrib ::Sidekiq ::Integration . compatible_with_server_internal_tracing?
Original file line number Diff line number Diff line change 1
1
require 'datadog/tracing/contrib/support/spec_helper'
2
2
require_relative '../support/helper'
3
3
4
- RSpec . describe 'Server internal tracer' , skip : ENV [ 'BATCHED_TASKS' ] do
4
+ RSpec . describe 'Server internal tracer' do
5
5
include SidekiqServerExpectations
6
6
7
7
before do
Original file line number Diff line number Diff line change 1
- require 'pry'
2
1
require 'json'
3
2
require 'psych'
4
3
require 'ostruct'
@@ -243,6 +242,7 @@ namespace :github do
243
242
'push' => {
244
243
'branches' => [
245
244
'master' ,
245
+ 'tonycthsu/*' ,
246
246
]
247
247
} ,
248
248
'pull_request' => {
@@ -336,11 +336,14 @@ namespace :github do
336
336
matrix = eval ( File . read ( 'Matrixfile' ) ) . freeze # rubocop:disable Security/Eval
337
337
338
338
exceptions = [
339
- # 'sidekiq', # Connection refused - connect(2) for 127.0.0.1:6379 (RedisClient::CannotConnectError)
339
+ 'sidekiq' ,
340
+ 'main' ,
341
+ 'crashtracking' ,
342
+ 'mongodb'
340
343
]
341
344
342
- # candidates = exceptions
343
- candidates = matrix . keys - exceptions
345
+ candidates = exceptions
346
+ # candidates = matrix.keys - exceptions
344
347
345
348
raise 'No candidates.' if candidates . empty?
346
349
You can’t perform that action at this time.
0 commit comments