Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/ruby.yml → .github/workflows/launchable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby
name: Launchable

on:
push:
branches: [ master ]
branches: [ launchable ]
pull_request:
branches: [ master ]
branches: [ launchable ]

env:
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN }}
LAUNCHABLE_DEBUG: 1
LAUNCHABLE_REPORT_ERROR: 1

jobs:
test:
Expand All @@ -32,8 +37,26 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Install launchable command
run: |
pip install launchable
- name: verify
run: launchable verify
- name: record build
run: launchable record build --name ${GITHUB_RUN_ID}
- name: Run tests
run: |
bundle exec rake clobber
bundle exec rake compile
bundle exec rake test_console
TESTOPTS="--runner=junitxml --junitxml-output-file=result.xml" bundle exec rake test_all
- name: launchable record tests
run: launchable record tests file result.xml
if: always()
39 changes: 0 additions & 39 deletions .github/workflows/protocol.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/ruby-macos.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/test_test.yml

This file was deleted.

1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ gem "rake-compiler"
gem "test-unit", "~> 3.0"
gem "test-unit-rr"
gem "json-schema"
gem "test-unit-runner-junitxml"
2 changes: 1 addition & 1 deletion lib/debug/abbrev_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class AbbrevCommand
class TrieNode
def initialize
@children = {}
@types = {} # set
@types = {} # se
end

def append c, type
Expand Down
6 changes: 6 additions & 0 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ def process_request req

## control
when 'continue'
@start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
@q_msg << 'c'
send_response req, allThreadsContinued: true
when 'next'
Expand Down Expand Up @@ -532,6 +533,11 @@ def event type, *args
text = bp ? bp.description : 'temporary bp'
end

if @start_time
@end_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
$stderr.puts "Time: #{@end_time - @start_time}"
end

send_event 'stopped', reason: reason,
description: text,
text: text,
Expand Down
1 change: 1 addition & 0 deletions test/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require 'timeout'
require 'json'
require 'rbconfig'
require "test/unit/runner/junitxml"
require_relative '../../lib/debug/client'

require_relative 'assertions'
Expand Down