polyrun 3.2.0-java → 3.2.1-java
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/CHANGELOG.md +5 -0
- data/README.md +2 -0
- data/lib/polyrun/benchmark/pressure/cooker.rb +3 -2
- data/lib/polyrun/benchmark/pressure/process_sample.rb +15 -7
- data/lib/polyrun/benchmark/pressure.rb +1 -1
- data/lib/polyrun/coverage/merge_merge_two.rb +3 -1
- data/lib/polyrun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c60271dbd9d9b546e078b80b09f733eb8421910d41fefffe646f4afdd962c66
|
|
4
|
+
data.tar.gz: a7ff582d9aa778ce791b5693738530b0e157fa0ad22f6792a84993a25d87cea6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76005ec5e7abfe17c190c7c3466598224df2666e5f7b3eb610371c5b211b9442b2fb020b3ed5d8131759a3510fc80fee2f62753d676bb4fd29210289278a3fc9
|
|
7
|
+
data.tar.gz: 6a8696a4f86aba4090b689accadfd771bb7ac34d0c19f0b8e8462b9ff0679c21581b52fb9468706b5d8897b264bce08c052e59943d0216a8c50e2f1a24025b55
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 3.2.1 (2026-12-03)
|
|
4
|
+
|
|
5
|
+
- Finish installation and use the Ruby coverage merger when native coverage acceleration cannot be built.
|
|
6
|
+
- Reduce the time and memory allocations needed to merge coverage with the Ruby implementation.
|
|
7
|
+
|
|
3
8
|
## 3.2.0 (2026-12-01)
|
|
4
9
|
|
|
5
10
|
- Add the experimental `polyrun-legacy` gem for local and CI sharding, suite configuration, preparation, and test reports on MRI Ruby 1.8.7 and newer on POSIX. The Legacy smoke check also runs on JRuby and TruffleRuby Native.
|
data/README.md
CHANGED
|
@@ -14,6 +14,8 @@ Design changes go through `rfcs/` (RFC 0001).
|
|
|
14
14
|
|
|
15
15
|
To check the main gem on another Ruby implementation, set `POLYRUN_ENGINE_RUBY` to the target executable and run `make smoke-engine`. The target builds the Ruby and Java variants of `polyrun` and checks the installed CLI and Bundler's package selection using those local artifacts.
|
|
16
16
|
|
|
17
|
+
Coverage merging works without native acceleration. If the optional accelerator fails to compile or link, installation continues and the extension build log records that Polyrun will use Ruby to merge coverage. You can see this log during installation with `gem install --verbose polyrun`. Maintainers can run `make native-extension` to require a working accelerator.
|
|
18
|
+
|
|
17
19
|
JRuby 10.0.8.0 and TruffleRuby Native 40.1.0 collect line coverage. Leave `POLYRUN_COVERAGE_BRANCHES` unset for collection on these releases. You can merge existing branch coverage fragments on either engine.
|
|
18
20
|
|
|
19
21
|
Polyrun can run a Spinel-compiled executable as a shard worker. Set `POLYRUN_SPINEL` to the compiler executable and run `make smoke-spinel` to compile and run a worker that uses the legacy partition library. For full CLI compatibility, see the [Spinel probe](docs/issues/20261201172900_alternative-ruby-implementations.md).
|
|
@@ -88,11 +88,12 @@ module Polyrun
|
|
|
88
88
|
def gate(series_or_metrics, ceilings)
|
|
89
89
|
metrics = series_or_metrics["metrics"] || series_or_metrics
|
|
90
90
|
failures = []
|
|
91
|
+
failures << "insufficient_samples" if series_or_metrics["gateable"] == false
|
|
91
92
|
ceilings.each do |key, limit|
|
|
92
93
|
next if limit.nil?
|
|
93
|
-
next unless metrics.key?(key)
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
value = metrics[key]
|
|
96
|
+
failures << key unless value.is_a?(Numeric) && value.finite? && value <= limit
|
|
96
97
|
end
|
|
97
98
|
{"pass" => failures.empty?, "failures" => failures, "metrics" => metrics, "ceilings" => ceilings}
|
|
98
99
|
end
|
|
@@ -10,20 +10,28 @@ module Polyrun
|
|
|
10
10
|
module ProcessSample
|
|
11
11
|
module_function
|
|
12
12
|
|
|
13
|
-
def sample
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
"wall_s" => monotonic_s,
|
|
17
|
-
"cpu_user_s" => times.utime,
|
|
18
|
-
"cpu_system_s" => times.stime,
|
|
13
|
+
def sample(before_workload: false)
|
|
14
|
+
counters = workload_counters unless before_workload
|
|
15
|
+
resources = {
|
|
19
16
|
"rss_bytes" => rss_bytes,
|
|
20
17
|
"heap_bytes" => heap_bytes,
|
|
21
|
-
"gc" => gc_sample,
|
|
22
18
|
"storage_bytes" => 0,
|
|
23
19
|
"network_in_bytes" => 0,
|
|
24
20
|
"network_out_bytes" => 0
|
|
25
21
|
}
|
|
22
|
+
resources.merge!(counters || workload_counters)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def workload_counters
|
|
26
|
+
times = Process.times
|
|
27
|
+
{
|
|
28
|
+
"wall_s" => monotonic_s,
|
|
29
|
+
"cpu_user_s" => times.utime,
|
|
30
|
+
"cpu_system_s" => times.stime,
|
|
31
|
+
"gc" => gc_sample
|
|
32
|
+
}
|
|
26
33
|
end
|
|
34
|
+
private_class_method :workload_counters
|
|
27
35
|
|
|
28
36
|
def diff(before, after_sample, extras: {})
|
|
29
37
|
wall_s = after_sample["wall_s"] - before["wall_s"]
|
|
@@ -33,7 +33,7 @@ module Polyrun
|
|
|
33
33
|
|
|
34
34
|
def measure(label:, ops: nil, gc_start: true, extras: {})
|
|
35
35
|
GC.start if gc_start
|
|
36
|
-
before = sample
|
|
36
|
+
before = ProcessSample.sample(before_workload: true)
|
|
37
37
|
started = ProcessSample.monotonic_s
|
|
38
38
|
yield
|
|
39
39
|
wall_s = ProcessSample.monotonic_s - started
|
|
@@ -95,6 +95,8 @@ module Polyrun
|
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
def merge_line_hits(left, right)
|
|
98
|
+
return left + right if Integer === left && Integer === right
|
|
99
|
+
|
|
98
100
|
return right if left.nil?
|
|
99
101
|
return left if right.nil?
|
|
100
102
|
return "ignored" if left == "ignored" || right == "ignored"
|
|
@@ -137,7 +139,7 @@ module Polyrun
|
|
|
137
139
|
end
|
|
138
140
|
end
|
|
139
141
|
end
|
|
140
|
-
index.
|
|
142
|
+
index.keys.sort.map { |key| index.fetch(key) }
|
|
141
143
|
end
|
|
142
144
|
|
|
143
145
|
def branch_key(branch)
|
data/lib/polyrun/version.rb
CHANGED