Skip to content

Commit

Permalink
Merge pull request #5 from selectiveci/fix-profile-by-flag
Browse files Browse the repository at this point in the history
Suppress ProfileFormatter
  • Loading branch information
natevick authored Dec 1, 2023
2 parents 831fcb1 + 4b93e0a commit 9946e6a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 19 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@ jobs:
matrix:
ci_node_total: [4]
ci_node_index: [0, 1, 2, 3]
env:
SELECTIVE_API_KEY: ${{ secrets.SELECTIVE_API_KEY }}
SELECTIVE_RUN_ID: ${{ github.run_id }}
SELECTIVE_RUN_ATTEMPT: ${{ github.run_attempt }}
SELECTIVE_PR_TITLE: ${{ github.event.pull_request.title }}
SELECTIVE_RUNNER_ID: ${{ matrix.ci_node_index }}
CLONE_PAT: ${{ secrets.CLONE_PAT }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
bundler-cache: true

- name: Setup Selective
uses: selectiveci/setup-selective@v1
with:
api-key: ${{ secrets.SELECTIVE_API_KEY }}
runner-id: ${{ matrix.ci_node_index }}

- name: Run the default task
run: bundle exec selective rspec

Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/test_all_the_things.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,24 @@ jobs:
runners: [1, 2]

env:
SELECTIVE_API_KEY: ${{ secrets.SELECTIVE_API_KEY }}
BUNDLE_GEMFILE: ${{ matrix.gemfiles }}
SELECTIVE_HOST: wss://app.selective.ci
SELECTIVE_RUN_ID: ${{ github.run_id }}-${{ matrix.ruby }}-${{ matrix.gemfiles }}
SELECTIVE_RUN_ATTEMPT: ${{ github.run_attempt }}
SELECTIVE_PR_TITLE: ${{ github.event.pull_request.title }}
SELECTIVE_RUNNER_ID: ${{ matrix.ruby }}-${{ matrix.gemfiles }}-${{ matrix.runners }}
CLONE_PAT: ${{ secrets.CLONE_PAT }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true

- name: Download Transport
run: bin/get_transport
- name: Setup Selective
uses: selectiveci/setup-selective@v1
with:
api-key: ${{ secrets.SELECTIVE_API_KEY }}
runner-id: ${{ matrix.runners }}

- name: Run the default task
env:
SELECTIVE_RUN_ID: ${{ github.run_id }}-${{ matrix.ruby }}-${{ matrix.gemfiles }}
run: bundle exec selective rspec
1 change: 1 addition & 0 deletions gemfiles/rspec_3.10.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ gem "standard", "~> 1.19.1"
gem "irb"
gem "rspec_junit_formatter"
gem "appraisal", "~> 2.5"
gem "selective-ruby-core", git: "https://github.com/selectiveci/selective-ruby-core.git"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/rspec_3.11.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ gem "standard", "~> 1.19.1"
gem "irb"
gem "rspec_junit_formatter"
gem "appraisal", "~> 2.5"
gem "selective-ruby-core", git: "https://github.com/selectiveci/selective-ruby-core.git"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/rspec_3.12.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ gem "standard", "~> 1.19.1"
gem "irb"
gem "rspec_junit_formatter"
gem "appraisal", "~> 2.5"
gem "selective-ruby-core", git: "https://github.com/selectiveci/selective-ruby-core.git"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/rspec_3.8.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ gem "standard", "~> 1.19.1"
gem "irb"
gem "rspec_junit_formatter"
gem "appraisal", "~> 2.5"
gem "selective-ruby-core", git: "https://github.com/selectiveci/selective-ruby-core.git"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/rspec_3.9.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ gem "standard", "~> 1.19.1"
gem "irb"
gem "rspec_junit_formatter"
gem "appraisal", "~> 2.5"
gem "selective-ruby-core", git: "https://github.com/selectiveci/selective-ruby-core.git"

gemspec path: "../"
3 changes: 2 additions & 1 deletion lib/selective/ruby/rspec/monkeypatches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module Monkeypatches
MAP = {
"BaseTextFormatter" => [:message, :dump_pending, :seed, :close],
"ProgressFormatter" => [:start_dump],
"DocumentationFormatter" => [:message]
"DocumentationFormatter" => [:message],
"ProfileFormatter" => [:dump_profile]
}

MAP.each do |module_name, methods|
Expand Down

0 comments on commit 9946e6a

Please sign in to comment.