evilution 1.5.1 → 1.6.0
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/.rubocop_todo.yml +30 -0
- data/CHANGELOG.md +49 -0
- data/README.md +285 -45
- data/docs/architecture.md +110 -12
- data/docs/ast_pattern_syntax.md +35 -7
- data/docs/combined_runs_spike.md +407 -0
- data/docs/integrations.md +1 -1
- data/docs/isolation.md +63 -2
- data/docs/migration-from-mutant.md +16 -11
- data/docs/mutant_schemata_spike.md +387 -0
- data/docs/operator_yield_study.md +576 -0
- data/docs/probe_first_spike.md +264 -0
- data/lib/evilution/ast/ancestor_lookup.rb +36 -0
- data/lib/evilution/ast/callback_declaration.rb +36 -3
- data/lib/evilution/ast/class_body.rb +62 -16
- data/lib/evilution/ast/def_region.rb +130 -0
- data/lib/evilution/ast/local_declaration.rb +37 -0
- data/lib/evilution/ast/parent_index.rb +50 -0
- data/lib/evilution/ast/parse_cache.rb +27 -0
- data/lib/evilution/ast/parser.rb +8 -3
- data/lib/evilution/ast/pattern/filter.rb +53 -12
- data/lib/evilution/ast/skip_filter.rb +83 -0
- data/lib/evilution/ast/skip_sites/debug_output.rb +67 -0
- data/lib/evilution/ast/skip_sites/error_messages.rb +74 -0
- data/lib/evilution/ast/skip_sites/logging.rb +93 -0
- data/lib/evilution/ast/skip_sites/message.rb +44 -0
- data/lib/evilution/ast/skip_sites/nodes.rb +105 -0
- data/lib/evilution/ast/skip_sites/presets.rb +31 -0
- data/lib/evilution/ast/skip_sites/purity.rb +69 -0
- data/lib/evilution/ast/skip_sites/requires.rb +40 -0
- data/lib/evilution/ast/skip_sites.rb +9 -0
- data/lib/evilution/ast/source_surgeon.rb +20 -2
- data/lib/evilution/ast/syntax_check.rb +10 -8
- data/lib/evilution/baseline/report.rb +11 -2
- data/lib/evilution/baseline.rb +31 -6
- data/lib/evilution/cache/keys.rb +140 -0
- data/lib/evilution/cache/run_fingerprint.rb +51 -0
- data/lib/evilution/cache/skeleton.rb +57 -0
- data/lib/evilution/cache/spec_digest.rb +39 -0
- data/lib/evilution/cache.rb +143 -50
- data/lib/evilution/class_tree.rb +38 -0
- data/lib/evilution/cli/command.rb +12 -4
- data/lib/evilution/cli/commands/run.rb +12 -3
- data/lib/evilution/cli/commands/subjects.rb +5 -2
- data/lib/evilution/cli/parser/options_builder.rb +67 -3
- data/lib/evilution/cli/printers/environment.rb +34 -4
- data/lib/evilution/cli/printers/session_detail.rb +20 -3
- data/lib/evilution/compare/categorizer.rb +2 -1
- data/lib/evilution/compare/normalizer.rb +3 -2
- data/lib/evilution/config/sources.rb +3 -0
- data/lib/evilution/config/validators/base.rb +9 -0
- data/lib/evilution/config/validators/since.rb +22 -0
- data/lib/evilution/config/validators/skip_sites.rb +24 -0
- data/lib/evilution/config/validators/timeout_ceiling.rb +10 -0
- data/lib/evilution/config/validators/timeout_factor.rb +10 -0
- data/lib/evilution/config/validators/timeout_floor.rb +10 -0
- data/lib/evilution/config.rb +122 -6
- data/lib/evilution/coverage/load_tracker.rb +50 -0
- data/lib/evilution/coverage/map.rb +42 -5
- data/lib/evilution/coverage/map_builder.rb +123 -22
- data/lib/evilution/coverage/map_store.rb +15 -5
- data/lib/evilution/coverage/recorder.rb +42 -3
- data/lib/evilution/coverage_example_filter.rb +35 -0
- data/lib/evilution/equivalent/heuristic/comment_marking.rb +14 -1
- data/lib/evilution/example_filter.rb +20 -0
- data/lib/evilution/git/changed_lines.rb +103 -0
- data/lib/evilution/git/since_scope.rb +77 -0
- data/lib/evilution/git/unified_diff.rb +68 -0
- data/lib/evilution/infra_crash.rb +26 -0
- data/lib/evilution/integration/base.rb +97 -6
- data/lib/evilution/integration/crash_detector.rb +46 -6
- data/lib/evilution/integration/known_failures.rb +4 -0
- data/lib/evilution/integration/loading/body_call_neutralizer.rb +49 -11
- data/lib/evilution/integration/loading/callback_equivalence.rb +62 -0
- data/lib/evilution/integration/loading/callback_redeclaration.rb +151 -36
- data/lib/evilution/integration/loading/concern_redeclaration.rb +16 -12
- data/lib/evilution/integration/loading/concern_registry.rb +87 -0
- data/lib/evilution/integration/loading/concern_state_cleaner.rb +19 -8
- data/lib/evilution/integration/loading/created_modules.rb +56 -0
- data/lib/evilution/integration/loading/frozen_namespaces.rb +80 -0
- data/lib/evilution/integration/loading/mutation_applier.rb +42 -11
- data/lib/evilution/integration/loading/neutralization.rb +41 -0
- data/lib/evilution/integration/loading/redefinition_recovery.rb +5 -3
- data/lib/evilution/integration/loading/superseded_modules.rb +22 -19
- data/lib/evilution/integration/minitest/stop_hook.rb +57 -0
- data/lib/evilution/integration/minitest.rb +22 -2
- data/lib/evilution/integration/minitest_crash_detector.rb +19 -0
- data/lib/evilution/integration/rspec/baseline_runner.rb +3 -2
- data/lib/evilution/integration/rspec/crash_detector_lifecycle.rb +6 -1
- data/lib/evilution/integration/rspec/example_filter_applier.rb +16 -0
- data/lib/evilution/integration/rspec/example_ids.rb +23 -0
- data/lib/evilution/integration/rspec/example_order.rb +86 -0
- data/lib/evilution/integration/rspec/killer_first.rb +72 -0
- data/lib/evilution/integration/rspec/result_builder.rb +7 -0
- data/lib/evilution/integration/rspec/state_guard/example_group_descendants.rb +44 -0
- data/lib/evilution/integration/rspec/state_guard.rb +2 -2
- data/lib/evilution/integration/rspec/target_resolver.rb +42 -0
- data/lib/evilution/integration/rspec/test_file_resolver.rb +4 -2
- data/lib/evilution/integration/rspec.rb +98 -47
- data/lib/evilution/integration/stop_policy.rb +49 -0
- data/lib/evilution/integration/test_unit/dispatcher.rb +20 -1
- data/lib/evilution/integration/test_unit/subject_class_registry.rb +6 -1
- data/lib/evilution/integration/test_unit.rb +28 -2
- data/lib/evilution/isolation/fork.rb +58 -13
- data/lib/evilution/isolation/in_process.rb +12 -1
- data/lib/evilution/line_set.rb +72 -0
- data/lib/evilution/mcp/info_tool/actions/environment.rb +12 -16
- data/lib/evilution/mcp/info_tool/actions/subjects.rb +3 -5
- data/lib/evilution/mcp/info_tool/status_glossary.rb +15 -2
- data/lib/evilution/mcp/info_tool.rb +24 -17
- data/lib/evilution/mcp/mutate_tool/config_builder.rb +13 -1
- data/lib/evilution/mcp/mutate_tool/option_parser.rb +2 -2
- data/lib/evilution/mcp/mutate_tool/progress_streamer.rb +1 -1
- data/lib/evilution/mcp/mutate_tool/report_trimmer.rb +28 -5
- data/lib/evilution/mcp/mutate_tool/survived_enricher.rb +12 -7
- data/lib/evilution/mcp/mutate_tool.rb +32 -7
- data/lib/evilution/mcp/session_tool.rb +1 -2
- data/lib/evilution/mcp.rb +4 -0
- data/lib/evilution/mutation/line_diff.rb +111 -0
- data/lib/evilution/mutation.rb +17 -13
- data/lib/evilution/mutator/base.rb +121 -98
- data/lib/evilution/mutator/constant_value_subjects.rb +29 -1
- data/lib/evilution/mutator/line_range_filter.rb +27 -0
- data/lib/evilution/mutator/load_sources.rb +88 -0
- data/lib/evilution/mutator/operator/alias_removal.rb +2 -5
- data/lib/evilution/mutator/operator/argument_method_call_replacement.rb +3 -0
- data/lib/evilution/mutator/operator/attr_accessor_swap.rb +2 -5
- data/lib/evilution/mutator/operator/constant_namespace_strip.rb +3 -3
- data/lib/evilution/mutator/operator/freeze_removal.rb +29 -11
- data/lib/evilution/mutator/operator/method_call_removal.rb +3 -1
- data/lib/evilution/mutator/operator/mixin_removal.rb +2 -5
- data/lib/evilution/mutator/operator/superclass_removal.rb +2 -5
- data/lib/evilution/mutator/operator/symbol_literal.rb +1 -1
- data/lib/evilution/mutator/operator/visibility_removal.rb +2 -5
- data/lib/evilution/mutator/registry.rb +11 -5
- data/lib/evilution/mutator/restore_source_cache.rb +41 -0
- data/lib/evilution/parallel/pool.rb +11 -4
- data/lib/evilution/parallel/work_queue/dispatcher/result_stream.rb +40 -0
- data/lib/evilution/parallel/work_queue/dispatcher.rb +20 -7
- data/lib/evilution/parallel/work_queue/worker/loop.rb +7 -2
- data/lib/evilution/parallel/work_queue/worker.rb +10 -3
- data/lib/evilution/parallel/work_queue/worker_stat.rb +7 -0
- data/lib/evilution/parallel/work_queue.rb +69 -12
- data/lib/evilution/parallel_db_warning.rb +39 -12
- data/lib/evilution/process_supervisor.rb +22 -2
- data/lib/evilution/reporter/cli/item_formatters/coverage_gap.rb +13 -2
- data/lib/evilution/reporter/cli/item_formatters/subject_score.rb +5 -1
- data/lib/evilution/reporter/cli/line_formatters/mutations.rb +9 -2
- data/lib/evilution/reporter/cli/line_formatters/result_line.rb +9 -1
- data/lib/evilution/reporter/cli/line_formatters/skipped_sites.rb +14 -0
- data/lib/evilution/reporter/cli/line_formatters/uncovered_code.rb +17 -0
- data/lib/evilution/reporter/cli/metrics_block.rb +4 -0
- data/lib/evilution/reporter/cli/trailer.rb +4 -4
- data/lib/evilution/reporter/cli.rb +9 -2
- data/lib/evilution/reporter/html/assets/style.css +8 -0
- data/lib/evilution/reporter/html/sections/file_section.rb +9 -0
- data/lib/evilution/reporter/html/sections/uncovered_details.rb +27 -0
- data/lib/evilution/reporter/html/templates/file_section.html.erb +2 -1
- data/lib/evilution/reporter/html/templates/summary_cards.html.erb +3 -0
- data/lib/evilution/reporter/html/templates/uncovered_details.html.erb +11 -0
- data/lib/evilution/reporter/json/mutation_detail.rb +77 -0
- data/lib/evilution/reporter/json/subjects.rb +1 -0
- data/lib/evilution/reporter/json/timings.rb +42 -0
- data/lib/evilution/reporter/json.rb +13 -50
- data/lib/evilution/result/coverage_gap.rb +5 -0
- data/lib/evilution/result/mutation_result.rb +55 -3
- data/lib/evilution/result/mutation_timings.rb +54 -0
- data/lib/evilution/result/run_timings.rb +20 -0
- data/lib/evilution/result/subject_score.rb +8 -1
- data/lib/evilution/result/subject_scorer.rb +5 -3
- data/lib/evilution/result/summary.rb +49 -12
- data/lib/evilution/runner/baseline_runner.rb +47 -5
- data/lib/evilution/runner/diagnostics.rb +0 -13
- data/lib/evilution/runner/isolation_resolver.rb +16 -4
- data/lib/evilution/runner/mutation_executor/isolated_run.rb +34 -0
- data/lib/evilution/runner/mutation_executor/kill_history.rb +66 -0
- data/lib/evilution/runner/mutation_executor/mutation_runner.rb +31 -12
- data/lib/evilution/runner/mutation_executor/neutralizer/baseline_failed.rb +1 -0
- data/lib/evilution/runner/mutation_executor/neutralizer/infra_error.rb +6 -20
- data/lib/evilution/runner/mutation_executor/probe_first.rb +99 -0
- data/lib/evilution/runner/mutation_executor/probe_first_run.rb +59 -0
- data/lib/evilution/runner/mutation_executor/result_cache.rb +45 -14
- data/lib/evilution/runner/mutation_executor/result_notifier.rb +1 -1
- data/lib/evilution/runner/mutation_executor/result_packer.rb +54 -24
- data/lib/evilution/runner/mutation_executor/runless_verdict.rb +39 -0
- data/lib/evilution/runner/mutation_executor/strategy/parallel/hinted_items.rb +27 -0
- data/lib/evilution/runner/mutation_executor/strategy/parallel/ordered_delivery.rb +97 -0
- data/lib/evilution/runner/mutation_executor/strategy/parallel.rb +102 -83
- data/lib/evilution/runner/mutation_executor/timed_run.rb +33 -0
- data/lib/evilution/runner/mutation_executor/timeout_policy/adaptive.rb +67 -0
- data/lib/evilution/runner/mutation_executor/timeout_policy/base.rb +35 -0
- data/lib/evilution/runner/mutation_executor/timeout_policy/fixed.rb +17 -0
- data/lib/evilution/runner/mutation_executor/timeout_policy.rb +56 -0
- data/lib/evilution/runner/mutation_executor.rb +75 -10
- data/lib/evilution/runner/mutation_planner.rb +29 -21
- data/lib/evilution/runner/phase_clock.rb +22 -0
- data/lib/evilution/runner/report_publisher.rb +1 -1
- data/lib/evilution/runner/subject_pipeline.rb +18 -8
- data/lib/evilution/runner.rb +87 -26
- data/lib/evilution/session/diff.rb +9 -2
- data/lib/evilution/session/store.rb +17 -2
- data/lib/evilution/source_ast_cache.rb +10 -0
- data/lib/evilution/spec_ast_cache.rb +15 -0
- data/lib/evilution/spec_resolver/constant_references.rb +66 -0
- data/lib/evilution/spec_resolver/project_files.rb +50 -0
- data/lib/evilution/spec_resolver/sibling_spec_ranker.rb +111 -0
- data/lib/evilution/spec_resolver/spec_pattern.rb +19 -0
- data/lib/evilution/spec_resolver.rb +76 -65
- data/lib/evilution/spec_selector.rb +17 -13
- data/lib/evilution/subject.rb +7 -2
- data/lib/evilution/version.rb +1 -1
- data/lib/evilution/worker_database/copies.rb +73 -0
- data/lib/evilution/worker_database/schema.rb +39 -0
- data/lib/evilution/worker_database/sqlite_copy.rb +65 -0
- data/lib/evilution/worker_database.rb +214 -0
- data/schema/evilution.config.schema.json +74 -2
- metadata +84 -13
- data/lib/evilution/integration/rspec/state_guard/object_space_example_groups.rb +0 -42
- data/scripts/benchmark_density +0 -262
- data/scripts/benchmark_density.yml +0 -19
- data/scripts/canary_manifest.yml +0 -47
- data/scripts/compare_mutations +0 -421
- data/scripts/compare_mutations.yml +0 -24
- data/scripts/compare_targeting +0 -279
- data/scripts/compare_targeting.example.yml +0 -24
- data/scripts/mutant_json_adapter +0 -227
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "diagnostic"
|
|
4
|
+
|
|
5
|
+
# Points a forked parallel worker's ActiveRecord connection at the database
|
|
6
|
+
# config/database.yml resolves to for that worker.
|
|
7
|
+
#
|
|
8
|
+
# A preload boots the app in the parent, so database.yml is rendered once,
|
|
9
|
+
# before any worker exists, with the parent's TEST_ENV_NUMBER. A worker sets its
|
|
10
|
+
# own TEST_ENV_NUMBER only after the fork, too late for the already-resolved
|
|
11
|
+
# configuration: every worker would share the parent's database and see each
|
|
12
|
+
# other's writes. This re-renders database.yml in the worker and re-establishes
|
|
13
|
+
# the connection when the result differs.
|
|
14
|
+
#
|
|
15
|
+
# Only a connection that still matches the boot-time database.yml is replaced;
|
|
16
|
+
# one the app established by other means (an in-memory database set up in a
|
|
17
|
+
# test helper) is left alone. The worker's database must already hold the
|
|
18
|
+
# preloaded database's schema: an empty or missing one would fail every test
|
|
19
|
+
# and report every mutation killed, so the worker goes back to the preloaded
|
|
20
|
+
# database and says how to prepare its own.
|
|
21
|
+
#
|
|
22
|
+
# A worker left on the preloaded database (database.yml names the same one for
|
|
23
|
+
# every worker, or the worker's own is not prepared) would share it with the
|
|
24
|
+
# others: their fixture loads and writes collide, and verdicts depend on which
|
|
25
|
+
# mutations happen to run at the same time. With copies on, such a worker
|
|
26
|
+
# connects instead to its own copy of the preloaded SQLite database (Copies),
|
|
27
|
+
# which holds the same schema and data by construction.
|
|
28
|
+
#
|
|
29
|
+
# Only ActiveRecord::Base is switched; other connections are named in a
|
|
30
|
+
# warning. Evilution does not depend on Rails, so every reference is guarded. A
|
|
31
|
+
# failure is reported and the worker carries on with the inherited connection.
|
|
32
|
+
class Evilution::WorkerDatabase
|
|
33
|
+
autoload :Schema, File.expand_path("worker_database/schema", __dir__)
|
|
34
|
+
autoload :SqliteCopy, File.expand_path("worker_database/sqlite_copy", __dir__)
|
|
35
|
+
autoload :Copies, File.expand_path("worker_database/copies", __dir__)
|
|
36
|
+
|
|
37
|
+
def self.reconnect(stream: $stderr, copies: Copies::NONE)
|
|
38
|
+
new(stream: stream, copies: copies).reconnect
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Whether a Rails application with ActiveRecord is loaded in this process, so
|
|
42
|
+
# forked workers inherit a connection they can switch.
|
|
43
|
+
def self.app_booted?
|
|
44
|
+
return false unless defined?(::ActiveRecord::Base) && defined?(::Rails) && ::Rails.respond_to?(:application)
|
|
45
|
+
|
|
46
|
+
!::Rails.application.nil? && ::ActiveRecord::Base.respond_to?(:connection_db_config)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Whether a worker forked now, with copies on, would end up on a database of
|
|
50
|
+
# its own rather than the preloaded one: the preloaded connection is the one
|
|
51
|
+
# database.yml names (reconnect leaves any other alone) and it is a SQLite
|
|
52
|
+
# file a copy can be made of. Asked in the parent before the workers fork.
|
|
53
|
+
def self.copies_cover?
|
|
54
|
+
new(stream: $stderr, copies: Copies::NONE).copies_cover?
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def initialize(stream:, copies:)
|
|
58
|
+
@stream = stream
|
|
59
|
+
@copies = copies
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def reconnect
|
|
63
|
+
current = current_config
|
|
64
|
+
return if current.nil? || !same_config?(base.configurations, current)
|
|
65
|
+
|
|
66
|
+
isolate(current) unless refresh(current)
|
|
67
|
+
rescue StandardError, ScriptError => e
|
|
68
|
+
report("kept the preloaded connection (#{e.class}: #{e.message})")
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def copies_cover?
|
|
72
|
+
current = current_config
|
|
73
|
+
!current.nil? && same_config?(base.configurations, current) && SqliteCopy.copyable?(current.configuration_hash)
|
|
74
|
+
rescue StandardError, ScriptError
|
|
75
|
+
false
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
private
|
|
79
|
+
|
|
80
|
+
def current_config
|
|
81
|
+
base.connection_db_config if self.class.app_booted?
|
|
82
|
+
rescue ::ActiveRecord::ConnectionNotEstablished
|
|
83
|
+
nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Whether the worker switched to a database of its own that database.yml
|
|
87
|
+
# names. Rails re-reads and re-renders database.yml on every call, so this
|
|
88
|
+
# sees the worker's TEST_ENV_NUMBER.
|
|
89
|
+
def refresh(current)
|
|
90
|
+
rendered = ::Rails.application.config.database_configuration
|
|
91
|
+
fresh = lookup(::ActiveRecord::DatabaseConfigurations.new(rendered), current)
|
|
92
|
+
return false if fresh.nil? || same_hash?(fresh, current)
|
|
93
|
+
|
|
94
|
+
switch_to(current, rendered, fresh)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def base
|
|
98
|
+
::ActiveRecord::Base
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
def switch_to(current, rendered, fresh)
|
|
102
|
+
reference = Schema.of(base)
|
|
103
|
+
others = other_databases
|
|
104
|
+
previous = base.configurations
|
|
105
|
+
establish(rendered, fresh)
|
|
106
|
+
problem = unprepared(reference)
|
|
107
|
+
if problem.nil?
|
|
108
|
+
report_unswitched(fresh, others)
|
|
109
|
+
return true
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
establish(previous, current)
|
|
113
|
+
report_unprepared(fresh, current, problem)
|
|
114
|
+
false
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Moves the worker off the shared preloaded database onto a copy of its own.
|
|
118
|
+
def isolate(current)
|
|
119
|
+
return unless copyable?(current)
|
|
120
|
+
|
|
121
|
+
others = other_databases
|
|
122
|
+
copy = copy_config(current, @copies.provision(source_path(current)))
|
|
123
|
+
establish(configs_with(copy), copy)
|
|
124
|
+
report_unswitched(copy, others)
|
|
125
|
+
rescue StandardError, ScriptError => e
|
|
126
|
+
report("could not copy #{database(current)} (#{e.class}: #{e.message}); " \
|
|
127
|
+
"this worker shares it with the other workers.")
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def copyable?(db_config)
|
|
131
|
+
@copies.enabled? && SqliteCopy.copyable?(db_config.configuration_hash)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Where the SQLite adapter opens a relative path: under Rails.root, or the
|
|
135
|
+
# working directory without one.
|
|
136
|
+
def source_path(db_config)
|
|
137
|
+
File.expand_path(db_config.configuration_hash[:database], ::Rails.respond_to?(:root) ? ::Rails.root : nil)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
def copy_config(db_config, path)
|
|
141
|
+
::ActiveRecord::DatabaseConfigurations::HashConfig.new(
|
|
142
|
+
db_config.env_name, db_config.name, db_config.configuration_hash.merge(database: path)
|
|
143
|
+
)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# The boot-time db configs with the copied one in place, so code that
|
|
147
|
+
# reconnects by environment name (establish_connection(:test)) stays on it.
|
|
148
|
+
# ActiveRecord::Base.configurations= takes a list of db configs.
|
|
149
|
+
def configs_with(copy)
|
|
150
|
+
base.configurations.configurations.map do |db_config|
|
|
151
|
+
db_config.env_name == copy.env_name && db_config.name == copy.name ? copy : db_config
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
def establish(configurations, db_config)
|
|
156
|
+
base.configurations = configurations
|
|
157
|
+
base.establish_connection(db_config)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
def unprepared(reference)
|
|
161
|
+
Schema.of(base).missing_from(reference)
|
|
162
|
+
rescue StandardError => e
|
|
163
|
+
"#{e.class}: #{e.message}"
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Pools of other abstract classes, roles and shards keep pointing at the
|
|
167
|
+
# preloaded databases. Rails before 7.1 has no :all role (7.0 fails on it,
|
|
168
|
+
# 6.1 takes no argument) and lists the current role's pools only.
|
|
169
|
+
def other_databases
|
|
170
|
+
handler = base.connection_handler
|
|
171
|
+
pools = begin
|
|
172
|
+
handler.connection_pool_list(:all)
|
|
173
|
+
rescue NoMethodError, ArgumentError
|
|
174
|
+
handler.connection_pool_list
|
|
175
|
+
end
|
|
176
|
+
own = base.connection_pool
|
|
177
|
+
pools.reject { |pool| pool.equal?(own) }.map { |pool| database(pool.db_config) }.uniq
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def report_unswitched(fresh, others)
|
|
181
|
+
return if others.empty?
|
|
182
|
+
|
|
183
|
+
report("switched ActiveRecord::Base to #{database(fresh)}, but other connections still use " \
|
|
184
|
+
"the preloaded #{others.join(", ")}. See README.")
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
def report_unprepared(fresh, current, problem)
|
|
188
|
+
number = ENV.fetch("TEST_ENV_NUMBER", "")
|
|
189
|
+
uses = copyable?(current) ? "a copy of the preloaded" : "the preloaded"
|
|
190
|
+
report("#{database(fresh)} is not ready (#{problem}); this worker uses #{uses} " \
|
|
191
|
+
"#{database(current)}. Prepare it with `TEST_ENV_NUMBER=#{number} bin/rails db:test:prepare`.")
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
def report(message)
|
|
195
|
+
Evilution::Diagnostic.warn("[evilution] worker database: #{message}", stream: @stream)
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
def database(db_config)
|
|
199
|
+
db_config.configuration_hash[:database] || db_config.name
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
def same_config?(configurations, db_config)
|
|
203
|
+
resolved = lookup(configurations, db_config)
|
|
204
|
+
!resolved.nil? && same_hash?(resolved, db_config)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
def same_hash?(one, other)
|
|
208
|
+
one.configuration_hash == other.configuration_hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
def lookup(configurations, db_config)
|
|
212
|
+
configurations.configs_for(env_name: db_config.env_name, name: db_config.name)
|
|
213
|
+
end
|
|
214
|
+
end
|
|
@@ -15,7 +15,25 @@
|
|
|
15
15
|
"type": "integer",
|
|
16
16
|
"minimum": 1,
|
|
17
17
|
"default": 30,
|
|
18
|
-
"description": "Per-mutation timeout in seconds."
|
|
18
|
+
"description": "Per-mutation timeout in seconds. Left unset, each mutation's limit is timeout_factor x the baseline time of its spec files, kept between timeout_floor and timeout_ceiling; 30 is used where the baseline has no time for them. Setting it gives every mutation this fixed limit."
|
|
19
|
+
},
|
|
20
|
+
"timeout_factor": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"exclusiveMinimum": 0,
|
|
23
|
+
"default": 10,
|
|
24
|
+
"description": "Adaptive timeout: multiple of the baseline time of a mutation's spec files."
|
|
25
|
+
},
|
|
26
|
+
"timeout_floor": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"exclusiveMinimum": 0,
|
|
29
|
+
"default": 10,
|
|
30
|
+
"description": "Adaptive timeout: lowest limit in seconds. Must not exceed timeout_ceiling."
|
|
31
|
+
},
|
|
32
|
+
"timeout_ceiling": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"exclusiveMinimum": 0,
|
|
35
|
+
"default": 60,
|
|
36
|
+
"description": "Adaptive timeout: highest limit in seconds."
|
|
19
37
|
},
|
|
20
38
|
"format": {
|
|
21
39
|
"type": "string",
|
|
@@ -23,6 +41,11 @@
|
|
|
23
41
|
"default": "text",
|
|
24
42
|
"description": "Output format."
|
|
25
43
|
},
|
|
44
|
+
"output": {
|
|
45
|
+
"type": ["string", "null"],
|
|
46
|
+
"default": null,
|
|
47
|
+
"description": "Write the report to this file instead of standard output."
|
|
48
|
+
},
|
|
26
49
|
"target": {
|
|
27
50
|
"type": ["string", "null"],
|
|
28
51
|
"default": null,
|
|
@@ -37,7 +60,7 @@
|
|
|
37
60
|
},
|
|
38
61
|
"integration": {
|
|
39
62
|
"type": "string",
|
|
40
|
-
"enum": ["rspec", "minitest"],
|
|
63
|
+
"enum": ["rspec", "minitest", "test_unit"],
|
|
41
64
|
"default": "rspec",
|
|
42
65
|
"description": "Test framework integration."
|
|
43
66
|
},
|
|
@@ -57,12 +80,27 @@
|
|
|
57
80
|
"default": 1,
|
|
58
81
|
"description": "Number of parallel workers."
|
|
59
82
|
},
|
|
83
|
+
"copy_worker_databases": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": true,
|
|
86
|
+
"description": "With jobs above 1, a preloaded Rails app and a file-based SQLite test database, give each worker its own copy of the database."
|
|
87
|
+
},
|
|
60
88
|
"fail_fast": {
|
|
61
89
|
"type": ["integer", "null"],
|
|
62
90
|
"minimum": 1,
|
|
63
91
|
"default": null,
|
|
64
92
|
"description": "Stop after N surviving mutants. null or omitted = disabled."
|
|
65
93
|
},
|
|
94
|
+
"stop_on_kill": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"default": true,
|
|
97
|
+
"description": "Stop each mutation's test run at the first failing example that decides the verdict."
|
|
98
|
+
},
|
|
99
|
+
"killer_first": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"default": false,
|
|
102
|
+
"description": "Run the examples that killed nearby mutations first in each kill check. RSpec 3.13+ only, and only with stop_on_kill."
|
|
103
|
+
},
|
|
66
104
|
"baseline": {
|
|
67
105
|
"type": "boolean",
|
|
68
106
|
"default": true,
|
|
@@ -112,6 +150,13 @@
|
|
|
112
150
|
"default": [],
|
|
113
151
|
"description": "AST patterns to skip during mutation generation. See docs/ast_pattern_syntax.md."
|
|
114
152
|
},
|
|
153
|
+
"skip_sites": {
|
|
154
|
+
"type": "array",
|
|
155
|
+
"items": { "type": "string", "enum": ["logging", "debug_output", "error_messages", "requires"] },
|
|
156
|
+
"uniqueItems": true,
|
|
157
|
+
"default": [],
|
|
158
|
+
"description": "Presets of low-value code to leave unmutated: logging (log lines, deprecation warnings), debug_output (puts/print/warn/p/pp), error_messages (the message of a raised error), requires (load-time require/require_relative). See README, Skipping Low-Value Code."
|
|
159
|
+
},
|
|
115
160
|
"show_disabled": {
|
|
116
161
|
"type": "boolean",
|
|
117
162
|
"default": false,
|
|
@@ -179,6 +224,22 @@
|
|
|
179
224
|
"max_blocks": { "type": "integer", "minimum": 1 }
|
|
180
225
|
}
|
|
181
226
|
},
|
|
227
|
+
"example_targeting_strategy": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"enum": ["lexical", "coverage"],
|
|
230
|
+
"default": "lexical",
|
|
231
|
+
"description": "How the examples for each mutation are chosen: lexical (by spec structure) or coverage (by a per-example line-coverage map)."
|
|
232
|
+
},
|
|
233
|
+
"skip_uncovered": {
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"default": true,
|
|
236
|
+
"description": "With coverage targeting, report a mutation whose changed lines no example executes as uncovered without running it."
|
|
237
|
+
},
|
|
238
|
+
"probe_first": {
|
|
239
|
+
"type": "boolean",
|
|
240
|
+
"default": false,
|
|
241
|
+
"description": "Experimental: probe each subject with a raise first; when no test fails, report its other mutants as survivors without running them."
|
|
242
|
+
},
|
|
182
243
|
"quiet_children": {
|
|
183
244
|
"type": "boolean",
|
|
184
245
|
"default": false,
|
|
@@ -195,6 +256,17 @@
|
|
|
195
256
|
"default": "default",
|
|
196
257
|
"description": "Operator profile. strict adds aggressive truthiness mutators on top of default."
|
|
197
258
|
},
|
|
259
|
+
"canary": {
|
|
260
|
+
"type": "boolean",
|
|
261
|
+
"default": true,
|
|
262
|
+
"description": "Run a proof-of-life mutation at session start and abort if the pipeline misreports it."
|
|
263
|
+
},
|
|
264
|
+
"warmup": {
|
|
265
|
+
"type": ["string", "boolean"],
|
|
266
|
+
"enum": ["none", "rails", false],
|
|
267
|
+
"default": "none",
|
|
268
|
+
"description": "Warm lazily initialised framework state in the parent before workers fork: none or rails. false means none."
|
|
269
|
+
},
|
|
198
270
|
"hooks": {
|
|
199
271
|
"type": "object",
|
|
200
272
|
"default": {},
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: evilution
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Kiselev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: diff-lcs
|
|
@@ -59,7 +59,7 @@ dependencies:
|
|
|
59
59
|
version: '1.5'
|
|
60
60
|
- - "<"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
62
|
+
version: '3'
|
|
63
63
|
type: :runtime
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -69,7 +69,7 @@ dependencies:
|
|
|
69
69
|
version: '1.5'
|
|
70
70
|
- - "<"
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '
|
|
72
|
+
version: '3'
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
74
|
name: regexp_parser
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -130,10 +130,14 @@ files:
|
|
|
130
130
|
- comparison_results/operator_prioritization.md
|
|
131
131
|
- docs/architecture.md
|
|
132
132
|
- docs/ast_pattern_syntax.md
|
|
133
|
+
- docs/combined_runs_spike.md
|
|
133
134
|
- docs/integrations.md
|
|
134
135
|
- docs/isolation.md
|
|
135
136
|
- docs/migration-from-mutant.md
|
|
137
|
+
- docs/mutant_schemata_spike.md
|
|
136
138
|
- docs/mutation_density_benchmark.md
|
|
139
|
+
- docs/operator_yield_study.md
|
|
140
|
+
- docs/probe_first_spike.md
|
|
137
141
|
- docs/public_api.md
|
|
138
142
|
- docs/versioning.md
|
|
139
143
|
- exe/evil
|
|
@@ -141,15 +145,20 @@ files:
|
|
|
141
145
|
- lib/evilution.rb
|
|
142
146
|
- lib/evilution/ast.rb
|
|
143
147
|
- lib/evilution/ast/aasm_declaration.rb
|
|
148
|
+
- lib/evilution/ast/ancestor_lookup.rb
|
|
144
149
|
- lib/evilution/ast/callback_declaration.rb
|
|
145
150
|
- lib/evilution/ast/class_body.rb
|
|
146
151
|
- lib/evilution/ast/constant_names.rb
|
|
152
|
+
- lib/evilution/ast/def_region.rb
|
|
147
153
|
- lib/evilution/ast/heredoc_span.rb
|
|
148
154
|
- lib/evilution/ast/included_block.rb
|
|
149
155
|
- lib/evilution/ast/inheritance_scanner.rb
|
|
150
156
|
- lib/evilution/ast/literal_callable.rb
|
|
157
|
+
- lib/evilution/ast/local_declaration.rb
|
|
151
158
|
- lib/evilution/ast/local_reads.rb
|
|
152
159
|
- lib/evilution/ast/never_nil.rb
|
|
160
|
+
- lib/evilution/ast/parent_index.rb
|
|
161
|
+
- lib/evilution/ast/parse_cache.rb
|
|
153
162
|
- lib/evilution/ast/parser.rb
|
|
154
163
|
- lib/evilution/ast/pattern.rb
|
|
155
164
|
- lib/evilution/ast/pattern/filter.rb
|
|
@@ -159,6 +168,16 @@ files:
|
|
|
159
168
|
- lib/evilution/ast/regexp_pattern.rb
|
|
160
169
|
- lib/evilution/ast/round_half_mode.rb
|
|
161
170
|
- lib/evilution/ast/scope_declaration.rb
|
|
171
|
+
- lib/evilution/ast/skip_filter.rb
|
|
172
|
+
- lib/evilution/ast/skip_sites.rb
|
|
173
|
+
- lib/evilution/ast/skip_sites/debug_output.rb
|
|
174
|
+
- lib/evilution/ast/skip_sites/error_messages.rb
|
|
175
|
+
- lib/evilution/ast/skip_sites/logging.rb
|
|
176
|
+
- lib/evilution/ast/skip_sites/message.rb
|
|
177
|
+
- lib/evilution/ast/skip_sites/nodes.rb
|
|
178
|
+
- lib/evilution/ast/skip_sites/presets.rb
|
|
179
|
+
- lib/evilution/ast/skip_sites/purity.rb
|
|
180
|
+
- lib/evilution/ast/skip_sites/requires.rb
|
|
162
181
|
- lib/evilution/ast/sorbet_sig_detector.rb
|
|
163
182
|
- lib/evilution/ast/source_surgeon.rb
|
|
164
183
|
- lib/evilution/ast/syntax_check.rb
|
|
@@ -169,7 +188,12 @@ files:
|
|
|
169
188
|
- lib/evilution/baseline/report.rb
|
|
170
189
|
- lib/evilution/baseline/spec_failure.rb
|
|
171
190
|
- lib/evilution/cache.rb
|
|
191
|
+
- lib/evilution/cache/keys.rb
|
|
192
|
+
- lib/evilution/cache/run_fingerprint.rb
|
|
193
|
+
- lib/evilution/cache/skeleton.rb
|
|
194
|
+
- lib/evilution/cache/spec_digest.rb
|
|
172
195
|
- lib/evilution/child_output.rb
|
|
196
|
+
- lib/evilution/class_tree.rb
|
|
173
197
|
- lib/evilution/cli.rb
|
|
174
198
|
- lib/evilution/cli/command.rb
|
|
175
199
|
- lib/evilution/cli/commands.rb
|
|
@@ -235,11 +259,17 @@ files:
|
|
|
235
259
|
- lib/evilution/config/validators/jobs.rb
|
|
236
260
|
- lib/evilution/config/validators/preload.rb
|
|
237
261
|
- lib/evilution/config/validators/profile.rb
|
|
262
|
+
- lib/evilution/config/validators/since.rb
|
|
263
|
+
- lib/evilution/config/validators/skip_sites.rb
|
|
238
264
|
- lib/evilution/config/validators/spec_mappings.rb
|
|
239
265
|
- lib/evilution/config/validators/spec_pattern.rb
|
|
266
|
+
- lib/evilution/config/validators/timeout_ceiling.rb
|
|
267
|
+
- lib/evilution/config/validators/timeout_factor.rb
|
|
268
|
+
- lib/evilution/config/validators/timeout_floor.rb
|
|
240
269
|
- lib/evilution/config/validators/warmup.rb
|
|
241
270
|
- lib/evilution/coverage.rb
|
|
242
271
|
- lib/evilution/coverage/digest.rb
|
|
272
|
+
- lib/evilution/coverage/load_tracker.rb
|
|
243
273
|
- lib/evilution/coverage/map.rb
|
|
244
274
|
- lib/evilution/coverage/map_builder.rb
|
|
245
275
|
- lib/evilution/coverage/map_store.rb
|
|
@@ -272,20 +302,29 @@ files:
|
|
|
272
302
|
- lib/evilution/gem_detector.rb
|
|
273
303
|
- lib/evilution/git.rb
|
|
274
304
|
- lib/evilution/git/changed_files.rb
|
|
305
|
+
- lib/evilution/git/changed_lines.rb
|
|
306
|
+
- lib/evilution/git/since_scope.rb
|
|
307
|
+
- lib/evilution/git/unified_diff.rb
|
|
275
308
|
- lib/evilution/hooks.rb
|
|
276
309
|
- lib/evilution/hooks/loader.rb
|
|
277
310
|
- lib/evilution/hooks/registry.rb
|
|
311
|
+
- lib/evilution/infra_crash.rb
|
|
278
312
|
- lib/evilution/integration.rb
|
|
279
313
|
- lib/evilution/integration/base.rb
|
|
280
314
|
- lib/evilution/integration/crash_detector.rb
|
|
281
315
|
- lib/evilution/integration/known_failures.rb
|
|
282
316
|
- lib/evilution/integration/loading.rb
|
|
283
317
|
- lib/evilution/integration/loading/body_call_neutralizer.rb
|
|
318
|
+
- lib/evilution/integration/loading/callback_equivalence.rb
|
|
284
319
|
- lib/evilution/integration/loading/callback_redeclaration.rb
|
|
285
320
|
- lib/evilution/integration/loading/concern_redeclaration.rb
|
|
321
|
+
- lib/evilution/integration/loading/concern_registry.rb
|
|
286
322
|
- lib/evilution/integration/loading/concern_state_cleaner.rb
|
|
287
323
|
- lib/evilution/integration/loading/constant_pinner.rb
|
|
324
|
+
- lib/evilution/integration/loading/created_modules.rb
|
|
325
|
+
- lib/evilution/integration/loading/frozen_namespaces.rb
|
|
288
326
|
- lib/evilution/integration/loading/mutation_applier.rb
|
|
327
|
+
- lib/evilution/integration/loading/neutralization.rb
|
|
289
328
|
- lib/evilution/integration/loading/own_methods.rb
|
|
290
329
|
- lib/evilution/integration/loading/redefinition_recovery.rb
|
|
291
330
|
- lib/evilution/integration/loading/reeval_warning_filter.rb
|
|
@@ -295,6 +334,7 @@ files:
|
|
|
295
334
|
- lib/evilution/integration/loading/test_class_cache.rb
|
|
296
335
|
- lib/evilution/integration/loading/test_load_path.rb
|
|
297
336
|
- lib/evilution/integration/minitest.rb
|
|
337
|
+
- lib/evilution/integration/minitest/stop_hook.rb
|
|
298
338
|
- lib/evilution/integration/minitest/test_ids.rb
|
|
299
339
|
- lib/evilution/integration/minitest_crash_detector.rb
|
|
300
340
|
- lib/evilution/integration/rspec.rb
|
|
@@ -302,21 +342,25 @@ files:
|
|
|
302
342
|
- lib/evilution/integration/rspec/crash_detector_lifecycle.rb
|
|
303
343
|
- lib/evilution/integration/rspec/example_filter_applier.rb
|
|
304
344
|
- lib/evilution/integration/rspec/example_ids.rb
|
|
345
|
+
- lib/evilution/integration/rspec/example_order.rb
|
|
305
346
|
- lib/evilution/integration/rspec/framework_loader.rb
|
|
347
|
+
- lib/evilution/integration/rspec/killer_first.rb
|
|
306
348
|
- lib/evilution/integration/rspec/result_builder.rb
|
|
307
349
|
- lib/evilution/integration/rspec/state_guard.rb
|
|
308
350
|
- lib/evilution/integration/rspec/state_guard/anonymous_example_group_examples.rb
|
|
309
351
|
- lib/evilution/integration/rspec/state_guard/configuration_state.rb
|
|
310
352
|
- lib/evilution/integration/rspec/state_guard/configuration_streams.rb
|
|
353
|
+
- lib/evilution/integration/rspec/state_guard/example_group_descendants.rb
|
|
311
354
|
- lib/evilution/integration/rspec/state_guard/example_groups_constants.rb
|
|
312
355
|
- lib/evilution/integration/rspec/state_guard/internals.rb
|
|
313
|
-
- lib/evilution/integration/rspec/state_guard/object_space_example_groups.rb
|
|
314
356
|
- lib/evilution/integration/rspec/state_guard/reporter_arrays.rb
|
|
315
357
|
- lib/evilution/integration/rspec/state_guard/world_example_groups.rb
|
|
316
358
|
- lib/evilution/integration/rspec/state_guard/world_filtered_examples.rb
|
|
317
359
|
- lib/evilution/integration/rspec/state_guard/world_sources_by_path.rb
|
|
360
|
+
- lib/evilution/integration/rspec/target_resolver.rb
|
|
318
361
|
- lib/evilution/integration/rspec/test_file_resolver.rb
|
|
319
362
|
- lib/evilution/integration/rspec/unresolved_spec_warner.rb
|
|
363
|
+
- lib/evilution/integration/stop_policy.rb
|
|
320
364
|
- lib/evilution/integration/test_unit.rb
|
|
321
365
|
- lib/evilution/integration/test_unit/dispatcher.rb
|
|
322
366
|
- lib/evilution/integration/test_unit/framework_loader.rb
|
|
@@ -328,6 +372,7 @@ files:
|
|
|
328
372
|
- lib/evilution/isolation.rb
|
|
329
373
|
- lib/evilution/isolation/fork.rb
|
|
330
374
|
- lib/evilution/isolation/in_process.rb
|
|
375
|
+
- lib/evilution/line_set.rb
|
|
331
376
|
- lib/evilution/load_path.rb
|
|
332
377
|
- lib/evilution/load_path/subpath_resolver.rb
|
|
333
378
|
- lib/evilution/mcp.rb
|
|
@@ -357,9 +402,12 @@ files:
|
|
|
357
402
|
- lib/evilution/memory.rb
|
|
358
403
|
- lib/evilution/memory/leak_check.rb
|
|
359
404
|
- lib/evilution/mutation.rb
|
|
405
|
+
- lib/evilution/mutation/line_diff.rb
|
|
360
406
|
- lib/evilution/mutator.rb
|
|
361
407
|
- lib/evilution/mutator/base.rb
|
|
362
408
|
- lib/evilution/mutator/constant_value_subjects.rb
|
|
409
|
+
- lib/evilution/mutator/line_range_filter.rb
|
|
410
|
+
- lib/evilution/mutator/load_sources.rb
|
|
363
411
|
- lib/evilution/mutator/operator.rb
|
|
364
412
|
- lib/evilution/mutator/operator/alias_removal.rb
|
|
365
413
|
- lib/evilution/mutator/operator/argument_list_removal.rb
|
|
@@ -524,6 +572,7 @@ files:
|
|
|
524
572
|
- lib/evilution/mutator/receiver_positions.rb
|
|
525
573
|
- lib/evilution/mutator/registry.rb
|
|
526
574
|
- lib/evilution/mutator/rescue_handlers.rb
|
|
575
|
+
- lib/evilution/mutator/restore_source_cache.rb
|
|
527
576
|
- lib/evilution/parallel.rb
|
|
528
577
|
- lib/evilution/parallel/pool.rb
|
|
529
578
|
- lib/evilution/parallel/work_queue.rb
|
|
@@ -533,6 +582,7 @@ files:
|
|
|
533
582
|
- lib/evilution/parallel/work_queue/dispatcher.rb
|
|
534
583
|
- lib/evilution/parallel/work_queue/dispatcher/deadline_tracker.rb
|
|
535
584
|
- lib/evilution/parallel/work_queue/dispatcher/reply.rb
|
|
585
|
+
- lib/evilution/parallel/work_queue/dispatcher/result_stream.rb
|
|
536
586
|
- lib/evilution/parallel/work_queue/validators.rb
|
|
537
587
|
- lib/evilution/parallel/work_queue/validators/optional_positive_int.rb
|
|
538
588
|
- lib/evilution/parallel/work_queue/validators/optional_positive_number.rb
|
|
@@ -568,7 +618,9 @@ files:
|
|
|
568
618
|
- lib/evilution/reporter/cli/line_formatters/peak_memory.rb
|
|
569
619
|
- lib/evilution/reporter/cli/line_formatters/result_line.rb
|
|
570
620
|
- lib/evilution/reporter/cli/line_formatters/score.rb
|
|
621
|
+
- lib/evilution/reporter/cli/line_formatters/skipped_sites.rb
|
|
571
622
|
- lib/evilution/reporter/cli/line_formatters/truncation_notice.rb
|
|
623
|
+
- lib/evilution/reporter/cli/line_formatters/uncovered_code.rb
|
|
572
624
|
- lib/evilution/reporter/cli/line_formatters/unresolved_rate_warning.rb
|
|
573
625
|
- lib/evilution/reporter/cli/line_formatters/unresolved_targets.rb
|
|
574
626
|
- lib/evilution/reporter/cli/metrics_block.rb
|
|
@@ -595,6 +647,7 @@ files:
|
|
|
595
647
|
- lib/evilution/reporter/html/sections/survived_details.rb
|
|
596
648
|
- lib/evilution/reporter/html/sections/survived_entry.rb
|
|
597
649
|
- lib/evilution/reporter/html/sections/truncation_notice.rb
|
|
650
|
+
- lib/evilution/reporter/html/sections/uncovered_details.rb
|
|
598
651
|
- lib/evilution/reporter/html/sections/unparseable_details.rb
|
|
599
652
|
- lib/evilution/reporter/html/sections/unresolved_details.rb
|
|
600
653
|
- lib/evilution/reporter/html/stylesheet.rb
|
|
@@ -610,11 +663,14 @@ files:
|
|
|
610
663
|
- lib/evilution/reporter/html/templates/survived_details.html.erb
|
|
611
664
|
- lib/evilution/reporter/html/templates/survived_entry.html.erb
|
|
612
665
|
- lib/evilution/reporter/html/templates/truncation_notice.html.erb
|
|
666
|
+
- lib/evilution/reporter/html/templates/uncovered_details.html.erb
|
|
613
667
|
- lib/evilution/reporter/html/templates/unparseable_details.html.erb
|
|
614
668
|
- lib/evilution/reporter/html/templates/unresolved_details.html.erb
|
|
615
669
|
- lib/evilution/reporter/json.rb
|
|
616
670
|
- lib/evilution/reporter/json/baseline.rb
|
|
671
|
+
- lib/evilution/reporter/json/mutation_detail.rb
|
|
617
672
|
- lib/evilution/reporter/json/subjects.rb
|
|
673
|
+
- lib/evilution/reporter/json/timings.rb
|
|
618
674
|
- lib/evilution/reporter/progress_bar.rb
|
|
619
675
|
- lib/evilution/reporter/suggestion.rb
|
|
620
676
|
- lib/evilution/reporter/suggestion/diff_helpers.rb
|
|
@@ -631,7 +687,9 @@ files:
|
|
|
631
687
|
- lib/evilution/result/error_info.rb
|
|
632
688
|
- lib/evilution/result/memory_stats.rb
|
|
633
689
|
- lib/evilution/result/mutation_result.rb
|
|
690
|
+
- lib/evilution/result/mutation_timings.rb
|
|
634
691
|
- lib/evilution/result/neutral_reason.rb
|
|
692
|
+
- lib/evilution/result/run_timings.rb
|
|
635
693
|
- lib/evilution/result/subject_score.rb
|
|
636
694
|
- lib/evilution/result/subject_scorer.rb
|
|
637
695
|
- lib/evilution/result/summary.rb
|
|
@@ -643,18 +701,31 @@ files:
|
|
|
643
701
|
- lib/evilution/runner/isolation_resolver.rb
|
|
644
702
|
- lib/evilution/runner/mutation_executor.rb
|
|
645
703
|
- lib/evilution/runner/mutation_executor/infra_retry.rb
|
|
704
|
+
- lib/evilution/runner/mutation_executor/isolated_run.rb
|
|
705
|
+
- lib/evilution/runner/mutation_executor/kill_history.rb
|
|
646
706
|
- lib/evilution/runner/mutation_executor/mutation_runner.rb
|
|
647
707
|
- lib/evilution/runner/mutation_executor/neutralization_pipeline.rb
|
|
648
708
|
- lib/evilution/runner/mutation_executor/neutralizer.rb
|
|
649
709
|
- lib/evilution/runner/mutation_executor/neutralizer/baseline_failed.rb
|
|
650
710
|
- lib/evilution/runner/mutation_executor/neutralizer/infra_error.rb
|
|
711
|
+
- lib/evilution/runner/mutation_executor/probe_first.rb
|
|
712
|
+
- lib/evilution/runner/mutation_executor/probe_first_run.rb
|
|
651
713
|
- lib/evilution/runner/mutation_executor/result_cache.rb
|
|
652
714
|
- lib/evilution/runner/mutation_executor/result_notifier.rb
|
|
653
715
|
- lib/evilution/runner/mutation_executor/result_packer.rb
|
|
716
|
+
- lib/evilution/runner/mutation_executor/runless_verdict.rb
|
|
654
717
|
- lib/evilution/runner/mutation_executor/strategy.rb
|
|
655
718
|
- lib/evilution/runner/mutation_executor/strategy/parallel.rb
|
|
719
|
+
- lib/evilution/runner/mutation_executor/strategy/parallel/hinted_items.rb
|
|
720
|
+
- lib/evilution/runner/mutation_executor/strategy/parallel/ordered_delivery.rb
|
|
656
721
|
- lib/evilution/runner/mutation_executor/strategy/sequential.rb
|
|
722
|
+
- lib/evilution/runner/mutation_executor/timed_run.rb
|
|
723
|
+
- lib/evilution/runner/mutation_executor/timeout_policy.rb
|
|
724
|
+
- lib/evilution/runner/mutation_executor/timeout_policy/adaptive.rb
|
|
725
|
+
- lib/evilution/runner/mutation_executor/timeout_policy/base.rb
|
|
726
|
+
- lib/evilution/runner/mutation_executor/timeout_policy/fixed.rb
|
|
657
727
|
- lib/evilution/runner/mutation_planner.rb
|
|
728
|
+
- lib/evilution/runner/phase_clock.rb
|
|
658
729
|
- lib/evilution/runner/report_publisher.rb
|
|
659
730
|
- lib/evilution/runner/subject_pipeline.rb
|
|
660
731
|
- lib/evilution/runner/subject_pipeline/target.rb
|
|
@@ -666,10 +737,18 @@ files:
|
|
|
666
737
|
- lib/evilution/source_ast_cache.rb
|
|
667
738
|
- lib/evilution/spec_ast_cache.rb
|
|
668
739
|
- lib/evilution/spec_resolver.rb
|
|
740
|
+
- lib/evilution/spec_resolver/constant_references.rb
|
|
741
|
+
- lib/evilution/spec_resolver/project_files.rb
|
|
742
|
+
- lib/evilution/spec_resolver/sibling_spec_ranker.rb
|
|
743
|
+
- lib/evilution/spec_resolver/spec_pattern.rb
|
|
669
744
|
- lib/evilution/spec_selector.rb
|
|
670
745
|
- lib/evilution/subject.rb
|
|
671
746
|
- lib/evilution/temp_dir_tracker.rb
|
|
672
747
|
- lib/evilution/version.rb
|
|
748
|
+
- lib/evilution/worker_database.rb
|
|
749
|
+
- lib/evilution/worker_database/copies.rb
|
|
750
|
+
- lib/evilution/worker_database/schema.rb
|
|
751
|
+
- lib/evilution/worker_database/sqlite_copy.rb
|
|
673
752
|
- lib/tasks/memory_check.rake
|
|
674
753
|
- lib/tasks/stress.rake
|
|
675
754
|
- schema/evilution.config.schema.json
|
|
@@ -677,14 +756,6 @@ files:
|
|
|
677
756
|
- script/memory_check
|
|
678
757
|
- script/run_self_baseline
|
|
679
758
|
- script/run_self_validation
|
|
680
|
-
- scripts/benchmark_density
|
|
681
|
-
- scripts/benchmark_density.yml
|
|
682
|
-
- scripts/canary_manifest.yml
|
|
683
|
-
- scripts/compare_mutations
|
|
684
|
-
- scripts/compare_mutations.yml
|
|
685
|
-
- scripts/compare_targeting
|
|
686
|
-
- scripts/compare_targeting.example.yml
|
|
687
|
-
- scripts/mutant_json_adapter
|
|
688
759
|
- sig/evilution.rbs
|
|
689
760
|
homepage: https://github.com/marinazzio/evilution
|
|
690
761
|
licenses:
|