Skip to content

Commit 1a53a76

Browse files
committed
temp: we are getting to a fast repro
1 parent b6ffb1a commit 1a53a76

File tree

2 files changed

+262
-4
lines changed

2 files changed

+262
-4
lines changed

.github/workflows/ci.yml

Lines changed: 260 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,265 @@ jobs:
4242
# https://www.cockroachlabs.com/docs/releases/release-support-policy
4343
crdb: [v25.2]
4444
ruby: ["3.4"]
45-
number: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256]
45+
number:
46+
[
47+
1,
48+
2,
49+
3,
50+
4,
51+
5,
52+
6,
53+
7,
54+
8,
55+
9,
56+
10,
57+
11,
58+
12,
59+
13,
60+
14,
61+
15,
62+
16,
63+
17,
64+
18,
65+
19,
66+
20,
67+
21,
68+
22,
69+
23,
70+
24,
71+
25,
72+
26,
73+
27,
74+
28,
75+
29,
76+
30,
77+
31,
78+
32,
79+
33,
80+
34,
81+
35,
82+
36,
83+
37,
84+
38,
85+
39,
86+
40,
87+
41,
88+
42,
89+
43,
90+
44,
91+
45,
92+
46,
93+
47,
94+
48,
95+
49,
96+
50,
97+
51,
98+
52,
99+
53,
100+
54,
101+
55,
102+
56,
103+
57,
104+
58,
105+
59,
106+
60,
107+
61,
108+
62,
109+
63,
110+
64,
111+
65,
112+
66,
113+
67,
114+
68,
115+
69,
116+
70,
117+
71,
118+
72,
119+
73,
120+
74,
121+
75,
122+
76,
123+
77,
124+
78,
125+
79,
126+
80,
127+
81,
128+
82,
129+
83,
130+
84,
131+
85,
132+
86,
133+
87,
134+
88,
135+
89,
136+
90,
137+
91,
138+
92,
139+
93,
140+
94,
141+
95,
142+
96,
143+
97,
144+
98,
145+
99,
146+
100,
147+
101,
148+
102,
149+
103,
150+
104,
151+
105,
152+
106,
153+
107,
154+
108,
155+
109,
156+
110,
157+
111,
158+
112,
159+
113,
160+
114,
161+
115,
162+
116,
163+
117,
164+
118,
165+
119,
166+
120,
167+
121,
168+
122,
169+
123,
170+
124,
171+
125,
172+
126,
173+
127,
174+
128,
175+
129,
176+
130,
177+
131,
178+
132,
179+
133,
180+
134,
181+
135,
182+
136,
183+
137,
184+
138,
185+
139,
186+
140,
187+
141,
188+
142,
189+
143,
190+
144,
191+
145,
192+
146,
193+
147,
194+
148,
195+
149,
196+
150,
197+
151,
198+
152,
199+
153,
200+
154,
201+
155,
202+
156,
203+
157,
204+
158,
205+
159,
206+
160,
207+
161,
208+
162,
209+
163,
210+
164,
211+
165,
212+
166,
213+
167,
214+
168,
215+
169,
216+
170,
217+
171,
218+
172,
219+
173,
220+
174,
221+
175,
222+
176,
223+
177,
224+
178,
225+
179,
226+
180,
227+
181,
228+
182,
229+
183,
230+
184,
231+
185,
232+
186,
233+
187,
234+
188,
235+
189,
236+
190,
237+
191,
238+
192,
239+
193,
240+
194,
241+
195,
242+
196,
243+
197,
244+
198,
245+
199,
246+
200,
247+
201,
248+
202,
249+
203,
250+
204,
251+
205,
252+
206,
253+
207,
254+
208,
255+
209,
256+
210,
257+
211,
258+
212,
259+
213,
260+
214,
261+
215,
262+
216,
263+
217,
264+
218,
265+
219,
266+
220,
267+
221,
268+
222,
269+
223,
270+
224,
271+
225,
272+
226,
273+
227,
274+
228,
275+
229,
276+
230,
277+
231,
278+
232,
279+
233,
280+
234,
281+
235,
282+
236,
283+
237,
284+
238,
285+
239,
286+
240,
287+
241,
288+
242,
289+
243,
290+
244,
291+
245,
292+
246,
293+
247,
294+
248,
295+
249,
296+
250,
297+
251,
298+
252,
299+
253,
300+
254,
301+
255,
302+
256,
303+
]
46304

47305
name: Test (crdb=${{ matrix.crdb }} ruby=${{ matrix.ruby }} number=${{ matrix.number }})
48306
steps:
@@ -96,7 +354,7 @@ jobs:
96354
- name: Test
97355
run: bundle exec rake test
98356
env:
99-
TESTOPTS: "--name='/test_disable_referential_integrity|test_0001_is equal with equal ivars|test_0002_is not equal with different ivars|test_.derive_from_instantiates_a_key_with_its_secret_derived_from_the_passed_password|test_A_key_can_store_a_secret_and_public_tags|test_relation_merging_with_locks|test_merge_between_clause|test_merging_reorders_bind_params|test_relation_to_sql|test_merging_with_from_clause_on_different_class|test_merge_in_clause|test_merging_with_from_clause|test_merge_collapses_wheres_from_the_LHS_only|test_relation_merging_with_joins|test_merging_annotations_respects_merge_order|test_relation_merging_with_arel_equalities_keeps_last_equality_with_non_attribute_left_hand|test_merging_duplicated_annotations|test_merge_not_in_clause|test_merging_with_order_without_binds|test_merging_with_order_with_binds|test_relation_merging_with_arel_equalities_keeps_last_equality|test_merge_not_range_clause|test_relation_merging_with_preload|test_relation_merging_with_eager_load|test_merge_or_clause|test_relation_merging_with_left_outer_joins|test_relation_merging|test_merging_compares_symbols_and_strings_as_equal|test_merge_doesnt_duplicate_same_clauses|test_relation_merging_with_skip_query_cache|test_relation_merging_with_association|test_options_are_not_validated|test_datetime_doesnt_set_precision_on_change_column|test_datetime_doesnt_set_precision_on_create_table|test_datetime_doesnt_set_precision_on_change_table|test_or_returns_an_empty_where_clause_when_either_side_is_empty|test_invert_wraps_the_ast_inside_a_NAND_node|test_._combines_two_where_clauses|test_an_empty_where_clause_is_the_identity_value_for_.|test_or_joins_the_two_clauses_using_OR|test_._is_associative._but_not_commutative|test_merge_allows_for_columns_with_the_same_name_from_different_tables|test_except_jumps_over_unhandled_binds_.like_with_OR._correctly|test_merge_keeps_the_right_side._when_two_equality_clauses_reference_the_same_column|test_invert_cannot_handle_nil|test_ast_groups_its_predicates_with_AND|test_merge_removes_bind_parameters_matching_overlapping_equality_clauses|test_ast_removes_any_empty_strings|test_or_will_use_only_common_conditions_if_one_side_only_has_common_conditions|test_merge_combines_two_where_clauses|test_or_can_detect_identical_or_as_being_a_common_condition|test_ast_wraps_any_SQL_literals_in_parenthesis|test_supports_hash_equality|test_merge_with_or.and_correctly_handles_SQL_literals_and_attributes|test_except_removes_binary_predicates_referencing_a_given_column|test_a_clause_knows_if_it_is_empty|test_or_places_common_conditions_before_the_OR|test_raises_ForbiddenClass_when_trying_to_serialize_other_data_types|test_detects_random_data_and_raises_a_decryption_error|test_raises_a_TypeError_when_trying_to_deserialize_other_data_types|test_serializes_messages_with_nested_messages_in_their_headers|test_detects_random_JSON_hashes_and_raises_a_decryption_error|test_raises_Decryption_when_trying_to_parse_message_with_more_than_one_nested_message|test_serializes_messages|test_should_update_children_when_association_redefined_in_subclass|test_0003_can handle subqueries|test_0001_should know how to visit|test_0002_can handle case insensitive|test_should_not_add_the_same_callbacks_multiple_times_for_belongs_to|test_cyclic_autosaves_do_not_add_multiple_validations|test_autosave_has_one_association_callbacks_get_called_once|test_autosave_collection_association_callbacks_get_called_once|test_should_not_add_the_same_callbacks_multiple_times_for_has_and_belongs_to_many|test_autosave_works_even_when_other_callbacks_update_the_parent_model|test_autosave_belongs_to_association_callbacks_get_called_once|test_should_not_add_the_same_callbacks_multiple_times_for_has_one|test_should_not_add_the_same_callbacks_multiple_times_for_has_many|test_autosave_does_not_pass_through_non_custom_validation_contexts|test_where_with_blank_conditions|test_where_with_tuple_syntax|test_where_with_relation_on_has_many_association|test_belongs_to_nil_where|test_where_with_float_for_string_column|test_where_on_association_with_custom_primary_key_with_array_of_base|test_decorated_polymorphic_where|test_where_with_tuple_syntax_with_incorrect_arity|test_where_not_polymorphic_id_and_type_as_nand|test_where_copies_bind_params|test_where_error|test_where_with_through_association|test_rewhere_on_root|test_where_on_association_with_custom_primary_key|test_polymorphic_sti_nested_where|test_where_with_integer_for_binary_column|test_where_with_emoji_for_binary_column|test_type_cast_is_not_evaluated_at_relation_build_time|test_belongs_to_array_value_where|test_where_with_large_number|test_where_with_table_name_and_empty_array|test_polymorphic_sti_shallow_where|test_where_not_polymorphic_association|test_where_with_integer_for_string_column|test_where_with_decimal_for_string_column|test_where_with_rational_for_string_column|test_where_with_unsupported_arguments|test_where_with_empty_hash_and_no_foreign_key|test_to_sql_with_large_number|test_polymorphic_nested_array_where|test_aliased_attribute|test_where_with_duration_for_string_column|test_where_copies_arel_bind_params|test_where_on_association_with_custom_primary_key_with_array_of_ids|test_belongs_to_nested_where|test_belongs_to_nested_relation_where|test_polymorphic_array_where_multiple_types|test_where_with_tuple_syntax_and_regular_syntax_combined|test_where_not_association_as_nand|test_polymorphic_nested_where|test_polymorphic_nested_array_where_not|test_where_on_association_with_select_relation|test_where_on_association_with_custom_primary_key_with_relation|test_where_with_strong_parameters|test_where_with_table_name|test_where_on_association_with_collection_polymorphic_relation|test_nested_conditional_on_enum|test_belongs_to_nested_where_with_relation|test_polymorphic_nested_relation_where|test_where_with_invalid_value|test_type_casting_nested_joins|test_where_with_boolean_for_string_column|test_where_with_tuple_syntax_on_composite_models|test_where_with_table_name_and_empty_hash|test_belongs_to_shallow_where|test_where_with_nil_cpk_association|test_polymorphic_shallow_where|test_invert_where|test_where_on_association_with_relation_performs_subselect_not_two_queries|test_where_copies_bind_params_in_the_right_order|test_where_with_relation_on_has_one_association|test_with_tuple_syntax_and_large_values_list|test_associated_with_enum_ordered|test_missing_ordered_merged_joined_with_scope_on_association|test_rewhere_with_nil|test_not_eq_with_succeeding_where|test_not_eq_with_preceding_where|test_rewhere_with_alias_condition|test_missing_unscoped_merged_joined_with_scope_on_association|test_association_not_eq|test_associated_with_enum_unscoped|test_associated_unscoped_merged_joined_with_scope_on_association|test_associated_with_add_joins_before|test_rewhere_with_infinite_upper_bound_range|test_missing_with_multiple_association|test_associated_ordered_merged_joined_with_scope_on_association|test_associated_with_invalid_association_name|test_missing_with_composite_primary_key|test_missing_unscoped_merged_joined_extended_early_with_scope_on_association|test_not_with_nil|test_missing_unscoped_merged_with_scope_on_association|test_associated_with_multiple_associations|test_associated_with_child_association|test_missing_with_enum|test_missing_with_child_association|test_missing_merged_with_scope_on_association|test_associated_merged_with_scope_on_association|test_associated_unscoped_merged_joined_extended_early_with_scope_on_association|test_rewhere_with_polymorphic_association|test_not_inverts_where_clause|test_associated_ordered_merged_with_scope_on_association|test_associated_with_association|test_missing_with_enum_unscoped|test_rewhere_with_range|test_missing_unscoped_merged_joined_extended_late_with_scope_on_association|test_associated_with_enum_extended_early|test_associated_with_composite_primary_key|test_missing_with_enum_ordered|test_missing_with_enum_extended_early|test_rewhere_with_infinite_lower_bound_range|test_rewhere_with_infinite_range|test_missing_with_association|test_associated_with_add_left_outer_joins_before|test_associated_unscoped_merged_joined_extended_late_with_scope_on_association|test_associated_with_enum|test_chaining_multiple|test_missing_with_invalid_association_name|test_rewhere_with_one_overwriting_condition_and_one_unrelated|test_rewhere_with_nested_condition|test_associated_unscoped_merged_with_scope_on_association|test_rewhere_with_multiple_overwriting_conditions|test_associated_with_enum_extended_late|test_associated_with_add_left_joins_before|test_missing_with_enum_extended_late|test_missing_ordered_merged_with_scope_on_association|test_rewhere_with_one_condition|test_create_fixtures|test_bulk_insert_with_a_multi_statement_query_raises_an_exception_when_any_insert_fails|test_create_symbol_fixtures|test_multiple_clean_fixtures|test_auto_value_on_primary_key|test_clean_fixtures|test_inserts_with_pre_and_suffix|test_increment_counter_updates_custom_lock_version|test_destroy_existing_object_with_locking_column_value_null_in_the_database|test_decrement_counter_updates_lock_version|test_increment_counter_updates_lock_version|test_destroy_stale_object|test_update_counters_updates_custom_lock_version|test_update_counters_updates_lock_version|test_decrement_counter_updates_custom_lock_version|test_destroy_dependents|test_0001_handles limit properly|test_keeping_default_and_notnull_constraints_on_change|test_change_column_null|test_drop_table_if_exists|test_create_table_with_limits|test_truncate_with_query_cache|test_create_with_query_cache/'"
357+
TESTOPTS: "--name='/test_auto_value_on_primary_key|test_multiple_clean_fixtures|test_bulk_insert_with_a_multi_statement_query_raises_an_exception_when_any_insert_fails|test_clean_fixtures|test_inserts_with_pre_and_suffix|test_create_fixtures|test_create_symbol_fixtures|test_A_key_can_store_a_secret_and_public_tags|test_.derive_from_instantiates_a_key_with_its_secret_derived_from_the_passed_password|test_0002_is not equal with different ivars|test_0001_is equal with equal ivars|test_options_are_not_validated|test_datetime_doesnt_set_precision_on_change_table|test_datetime_doesnt_set_precision_on_create_table|test_datetime_doesnt_set_precision_on_change_column|test_truncate_with_query_cache|test_create_with_query_cache/'"
100358
# TRACE_LIB: "on"
101359
# AR_LOG: "on"
102360
RAILS_MINITEST_PLUGIN: "1" # Make sure that we use the minitest plugin for profiling.

test/cases/helper_cockroachdb.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def run_one_method(klass, method_name, reporter)
116116
module ListTestsBefore
117117
def teardown
118118
if name == "test_create_with_query_cache"
119-
unless passed?
119+
if !passed? && Time.now - $start < 15
120120
puts "Seed: #{Minitest.seed}"
121121
File.write(ENV['GITHUB_STEP_SUMMARY'], "Seed: #{Minitest.seed}\nTime: #{Time.now - $start}\n")
122122
end
@@ -129,7 +129,7 @@ module ActiveSupport
129129
class TestCase
130130
extend TestRetryHelper
131131
include TestTimeoutHelper
132-
include ListTestsBefore
132+
include ListTestsBefore if ENV['GITHUB_STEP_SUMMARY']
133133

134134
def postgis_version
135135
@postgis_version ||= ActiveRecord::Base.lease_connection.select_value('SELECT postgis_lib_version()')

0 commit comments

Comments
 (0)