Skip to content

Commit 77a85fb

Browse files
authored
Merge pull request #946 from ruby-concurrency/travis
Travis is done and never coming back
2 parents 4cfc0a1 + e3d8773 commit 77a85fb

24 files changed

+38
-46
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Update the [CHANGELOG](CHANGELOG.md) with a description of what you have changed
110110

111111
#### Check on Your Pull Request
112112

113-
Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI and AppVeyor. Everything should look green, otherwise fix issues (amending your commit).
113+
Go back to your pull request after a few minutes and see whether it passed muster with GitHub Actions. Everything should look green, otherwise fix issues (amending your commit).
114114

115115
Please note that testing concurrency is hard. Very hard. We have a few tests that occasionally fail due (mostly) to incorrect synchronization within the test itself. If everything passes locally but you see an error on CI, it's possibly you've become victim to one of the tests. Don't worry, the Concurrent Ruby team reviews the tests output of all failed CI runs and will let you know if the failing test is unrelated to your commit.
116116

Rakefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ begin
7777
options = %w[ --color
7878
--backtrace
7979
--order defined
80-
--format documentation
81-
--tag ~notravis ]
80+
--format documentation ]
8281
t.rspec_opts = [*options].join(' ')
8382
end
8483

spec/concurrent/actor_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def on_message(message)
148148
end
149149
end
150150

151-
it 'terminates with all its children', notravis: true do
151+
it 'terminates with all its children' do
152152
child = subject.ask! :child
153153
expect(subject.ask!(:terminated?)).to be_falsey
154154
subject.ask(:terminate!).wait
@@ -313,7 +313,7 @@ def on_message(message)
313313
end
314314

315315
describe 'pool' do
316-
it 'supports asks', notravis: true do
316+
it 'supports asks' do
317317
children = Queue.new
318318
pool = Concurrent::Actor::Utils::Pool.spawn! 'pool', 5 do |index|
319319
worker = Concurrent::Actor::Utils::AdHoc.spawn! name: "worker-#{index}", supervised: true do

spec/concurrent/agent_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def update(time, old_value, new_value)
927927
expect(count).to eq expected
928928
end
929929

930-
it 'blocks forever if restarted with :clear_actions true', notravis: true do
930+
it 'blocks forever if restarted with :clear_actions true' do
931931
pending('the timing is nearly impossible'); fail
932932
subject = Agent.new(0, error_mode: :fail)
933933

@@ -965,7 +965,7 @@ def update(time, old_value, new_value)
965965
finish.count_down
966966
end
967967

968-
it 'returns true when all prior actions have processed', notravis: true do
968+
it 'returns true when all prior actions have processed' do
969969
subject = Agent.new(0)
970970
subject.send_via(executor) { sleep(1) }
971971
5.times { subject.send_via(executor) { nil } }
@@ -980,7 +980,7 @@ def update(time, old_value, new_value)
980980
expect(subject.await_for(5)).to eq true
981981
end
982982

983-
it 'returns false if restarted with :clear_actions true', notravis: true do
983+
it 'returns false if restarted with :clear_actions true' do
984984
pending('the timing is nearly impossible'); fail
985985
subject = Agent.new(0, error_mode: :fail)
986986

@@ -1033,7 +1033,7 @@ def update(time, old_value, new_value)
10331033
expect(subject.await_for(5)).to eq true
10341034
end
10351035

1036-
it 'raises an error if restarted with :clear_actions true', notravis: true do
1036+
it 'raises an error if restarted with :clear_actions true' do
10371037
pending('the timing is nearly impossible'); fail
10381038
subject = Agent.new(0, error_mode: :fail)
10391039

@@ -1083,7 +1083,7 @@ def update(time, old_value, new_value)
10831083
expect(Concurrent.monotonic_time - start).to be > 0.5
10841084
end
10851085

1086-
it 'blocks forever when timeout is nil and restarted with :clear_actions true', notravis: true do
1086+
it 'blocks forever when timeout is nil and restarted with :clear_actions true' do
10871087
pending('the timing is nearly impossible'); fail
10881088
subject = Agent.new(0, error_mode: :fail)
10891089

@@ -1116,7 +1116,7 @@ def update(time, old_value, new_value)
11161116
expect(subject.wait(5)).to eq true
11171117
end
11181118

1119-
it 'returns false when timeout is given and restarted with :clear_actions true', notravis: true do
1119+
it 'returns false when timeout is given and restarted with :clear_actions true' do
11201120
pending('the timing is nearly impossible'); fail
11211121
subject = Agent.new(0, error_mode: :fail)
11221122

spec/concurrent/atomic/cyclic_barrier_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module Concurrent
5656
end
5757

5858
describe 'reset' do
59-
it 'should release all waiting threads', notravis: true do
59+
it 'should release all waiting threads' do
6060
start_latch = CountDownLatch.new(1)
6161
continue_latch = CountDownLatch.new(1)
6262

@@ -120,7 +120,7 @@ module Concurrent
120120
expect(latch.wait(1)).to be_truthy
121121
end
122122

123-
it 'return false if barrier has been reset', notravis: true do
123+
it 'return false if barrier has been reset' do
124124
latch = CountDownLatch.new(1)
125125

126126
t = in_thread { latch.count_down if barrier.wait == false }

spec/concurrent/atomic/event_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def subject.simulate_spurious_wake_up
169169
expect(latch.wait(0.1)).to be false
170170
end
171171

172-
it 'should resist spurious wake ups with timeout', notravis: true do
172+
it 'should resist spurious wake ups with timeout' do
173173
latch = CountDownLatch.new(1)
174174
t = in_thread{ subject.wait(0.5); latch.count_down }
175175
t.join(0.1)

spec/concurrent/atomic/reentrant_read_write_lock_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def wait_up_to(secs, &condition)
277277
end
278278
end
279279

280-
it "wakes up waiting readers when the write lock is released", notravis: true do
280+
it "wakes up waiting readers when the write lock is released" do
281281
latch1,latch2 = CountDownLatch.new,CountDownLatch.new
282282
good = AtomicFixnum.new(0)
283283
threads = [

spec/concurrent/channel/buffer/base_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Concurrent::Channel::Buffer
44

5-
RSpec.describe Base, edge: true, notravis: true do
5+
RSpec.describe Base, edge: true do
66

77
subject { described_class.new }
88

spec/concurrent/channel/buffer/buffered_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Concurrent::Channel::Buffer
44

5-
RSpec.describe Buffered, edge: true, notravis: true do
5+
RSpec.describe Buffered, edge: true do
66

77
let(:capacity) { 10 }
88
subject { described_class.new(capacity) }

spec/concurrent/channel/buffer/dropping_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Concurrent::Channel::Buffer
44

5-
RSpec.describe Dropping, edge: true, notravis: true do
5+
RSpec.describe Dropping, edge: true do
66

77
subject { described_class.new(10) }
88

0 commit comments

Comments
 (0)