selective-ruby-rspec 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rwx/push.yml +30 -0
- data/.semaphore/semaphore.yml +3 -3
- data/lib/selective/ruby/rspec/monkeypatches.rb +15 -1
- data/lib/selective/ruby/rspec/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62c43ea583ced828eb1374ee97a0405c1eda16f909c0e737e27077479e1b1fb5
|
|
4
|
+
data.tar.gz: b8bf65b1aa2cf640f00dbfaf72766c3c5ba6dea27a9573ba1ebae7569d1c5350
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f70122134cb0811c1737a5cae7826fd2c4aee263b50beff0524b91ebd2e9fe30ae42583726c13cca2143509f86db597dc70ff708fb058b72c4df3908b5d759e
|
|
7
|
+
data.tar.gz: '018e9c4cb1a84c0cf7fdf35df8a464d5d9b75f1c96634dda4a45fa2efa87cbc9606fba8ea00e0dc7b07f3e286a5d71bf940d55e7996fed2b7a23025aa97dc249'
|
data/.rwx/push.yml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
on:
|
|
2
|
+
github:
|
|
3
|
+
push:
|
|
4
|
+
init:
|
|
5
|
+
commit-sha: ${{ event.git.sha }}
|
|
6
|
+
|
|
7
|
+
base:
|
|
8
|
+
image: ubuntu:24.04
|
|
9
|
+
config: rwx/base 1.0.2
|
|
10
|
+
|
|
11
|
+
tasks:
|
|
12
|
+
- key: code
|
|
13
|
+
call: git/clone 2.0.7
|
|
14
|
+
with:
|
|
15
|
+
repository: https://github.com/selectiveci/selective-ruby-rspec.git
|
|
16
|
+
ref: ${{ init.commit-sha }}
|
|
17
|
+
github-token: ${{ github.token }}
|
|
18
|
+
- key: ruby
|
|
19
|
+
call: ruby/install 1.2.27
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: 4.0.3
|
|
22
|
+
- key: install-dependencies
|
|
23
|
+
use: [code, ruby]
|
|
24
|
+
run: bundle install
|
|
25
|
+
- key: run-tests
|
|
26
|
+
use: [install-dependencies]
|
|
27
|
+
env:
|
|
28
|
+
SELECTIVE_API_KEY: ${{ vaults.selective.secrets.selective-ruby-rspec-api-key }}
|
|
29
|
+
parallel: 4
|
|
30
|
+
run: bundle exec selective rspec
|
data/.semaphore/semaphore.yml
CHANGED
|
@@ -2,8 +2,8 @@ version: v1.0
|
|
|
2
2
|
name: Ruby
|
|
3
3
|
agent:
|
|
4
4
|
machine:
|
|
5
|
-
type:
|
|
6
|
-
os_image:
|
|
5
|
+
type: f1-standard-2
|
|
6
|
+
os_image: ubuntu2404
|
|
7
7
|
blocks:
|
|
8
8
|
- name: Run RSpec tests
|
|
9
9
|
task:
|
|
@@ -11,7 +11,7 @@ blocks:
|
|
|
11
11
|
- name: Run RSpec tests
|
|
12
12
|
parallelism: 2
|
|
13
13
|
commands:
|
|
14
|
-
- sem-version ruby
|
|
14
|
+
- sem-version ruby 4.0.3
|
|
15
15
|
- checkout
|
|
16
16
|
- bundle install
|
|
17
17
|
- bundle exec selective rspec
|
|
@@ -38,6 +38,13 @@ module Selective
|
|
|
38
38
|
super
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
def example_started(example)
|
|
42
|
+
if example.execution_result.started_at
|
|
43
|
+
[@examples, @failed_examples, @pending_examples].each { |list| list.delete(example) }
|
|
44
|
+
end
|
|
45
|
+
super
|
|
46
|
+
end
|
|
47
|
+
|
|
41
48
|
def register_listener(listener, *notifications)
|
|
42
49
|
# Prevent double registration of listeners with
|
|
43
50
|
# the same output path.
|
|
@@ -123,7 +130,14 @@ module Selective
|
|
|
123
130
|
|
|
124
131
|
def run(*args)
|
|
125
132
|
@exception = nil
|
|
126
|
-
|
|
133
|
+
# Records the files this example executes when the server has
|
|
134
|
+
# asked for a test map; a plain pass-through otherwise (and on
|
|
135
|
+
# older cores that predate test maps).
|
|
136
|
+
if ::Selective::Ruby::Core.const_defined?(:TestMap)
|
|
137
|
+
::Selective::Ruby::Core::TestMap.around(id) { super(*args) }
|
|
138
|
+
else
|
|
139
|
+
super
|
|
140
|
+
end
|
|
127
141
|
end
|
|
128
142
|
end
|
|
129
143
|
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: selective-ruby-rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Wood
|
|
8
8
|
- Nate Vick
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2026-10-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: zeitwerk
|
|
@@ -39,6 +39,20 @@ dependencies:
|
|
|
39
39
|
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: 0.2.3
|
|
42
|
+
- !ruby/object:Gem::Dependency
|
|
43
|
+
name: benchmark
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: 0.5.0
|
|
49
|
+
type: :runtime
|
|
50
|
+
prerelease: false
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: 0.5.0
|
|
42
56
|
description: Selective is an intelligent test runner for your current CI provider.
|
|
43
57
|
Get real-time test results, intelligent ordering based on code changes, shorter
|
|
44
58
|
run times, automatic flake detection, the ability to re-enqueue failed tests, and
|
|
@@ -50,6 +64,7 @@ executables: []
|
|
|
50
64
|
extensions: []
|
|
51
65
|
extra_rdoc_files: []
|
|
52
66
|
files:
|
|
67
|
+
- ".rwx/push.yml"
|
|
53
68
|
- ".semaphore/semaphore.yml"
|
|
54
69
|
- LICENSE
|
|
55
70
|
- Rakefile
|
|
@@ -65,7 +80,7 @@ metadata:
|
|
|
65
80
|
homepage_uri: https://www.selective.ci
|
|
66
81
|
source_code_uri: http://github.com/selectiveci/selective-ruby-rspec
|
|
67
82
|
changelog_uri: https://github.com/selectiveci/selective-ruby-rspec/blob/main/CHANGELOG.md
|
|
68
|
-
post_install_message:
|
|
83
|
+
post_install_message:
|
|
69
84
|
rdoc_options: []
|
|
70
85
|
require_paths:
|
|
71
86
|
- lib
|
|
@@ -80,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
95
|
- !ruby/object:Gem::Version
|
|
81
96
|
version: '0'
|
|
82
97
|
requirements: []
|
|
83
|
-
rubygems_version: 3.
|
|
84
|
-
signing_key:
|
|
98
|
+
rubygems_version: 3.4.10
|
|
99
|
+
signing_key:
|
|
85
100
|
specification_version: 4
|
|
86
101
|
summary: Selective Ruby RSpec Client
|
|
87
102
|
test_files: []
|