Skip to content

Commit 638a836

Browse files
authored
Action: Add test for unstable Ruby VMs (#1550)
1 parent 50e2f8e commit 638a836

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/test-head.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test unstable
2+
on: [push]
3+
jobs:
4+
test-head:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
ruby: [head, jruby-head, truffleruby-head]
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: ruby/setup-ruby@77ca66ce2792fb05b8b204a203328e12593a64f3 # v1.72.1
13+
with:
14+
ruby-version: ${{ matrix.ruby }}
15+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
16+
continue-on-error: true
17+
- run: bundle exec rake test:main
18+
continue-on-error: true
19+
- run: bundle exec rake spec:main
20+
continue-on-error: true
21+
- run: bundle exec rake spec:contrib
22+
continue-on-error: true
23+
- run: bundle exec rake spec:opentracer
24+
continue-on-error: true
25+
# A few contrib jobs that `ddtrace` already includes their gem in the global Gemfile.
26+
# We technically don't need appraisal to run them, thus are easy candidates for early testing.
27+
- run: bundle exec rake spec:rake
28+
continue-on-error: true
29+
- run: bundle exec rake spec:rspec
30+
continue-on-error: true
31+
- run: bundle exec rake spec:concurrent_ruby
32+
continue-on-error: true
33+
- run: bundle exec rake spec:http
34+
continue-on-error: true

spec/ddtrace/span_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
let(:duration_wall_time) { 0.0001 }
200200

201201
context 'without start or end time provided' do
202-
let(:static_time) { Time.new('2010-09-16 00:03:15 +0200') }
202+
let(:static_time) { Time.utc(2010, 9, 15, 22, 3, 15) }
203203

204204
before do
205205
# We set the same time no matter what.

0 commit comments

Comments
 (0)