cockroachdb / cockroachdb/cockroach

basalt-26.3: roachtest: activerecord failed

Closed
#174,967 3 comments 0 reactions 0 assignees View on GitHub
B-runtime-assertions-enabled branch-basalt-26.3 C-test-failure O-roachtest O-robot release-blocker T-sql-foundations
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Note:** This build has runtime assertions enabled. If the same failure was hit in a run without assertions enabled, there should be a similar failure without this message. If there isn't one, then this failure is likely due to an assertion violation or (assertion) timeout.

roachtest.activerecord [failed](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Nightlies_Roachtests_RoachtestNightlyGcePrivateBazel/21508690?buildTab=log) with [artifacts](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_Nightlies_Roachtests_RoachtestNightlyGcePrivateBazel/21508690?buildTab=artifacts#/activerecord) on basalt-26.3 @ [edc226e9d007d4a208c831af595863f67e923ebe](https://github.com/cockroachdb/cockroach/commits/edc226e9d007d4a208c831af595863f67e923ebe):

Failed with:

```
(orm_helpers.go:232).summarizeFailed:
Tests run on Cockroach v26.3.2-dev-edc226e9d007d4a208c831af595863f67e923ebe
Tests run against activerecord 8.1.0
2477 Total Tests Run
2396 tests passed
81 tests failed
7 tests skipped
15 tests ignored
0 tests passed unexpectedly
80 tests failed unexpectedly
0 tests expected failed but skipped
0 tests expected failed but not run
---
--- FAIL: StoreTest#test_write_accessor_without_pre/suffix_in_the_same_store_as_other_pre/suffixed_accessors_still_works (unexpected)
--- FAIL: StoreTest#test_object_initialization_with_not_nullable_column_encoded_with_JSON (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_a_bang (unexpected)
--- FAIL: StoreTest#test_convert_store_attributes_from_Hash_to_HashWithIndifferentAccess_saving_the_data_and_access_attributes_indifferently (unexpected)
--- FAIL: StoreTest#test_reading_store_attributes_through_accessors_with_prefix (unexpected)
--- FAIL: StoreTest#test_accessing_attributes_not_exposed_by_accessors (unexpected)
--- FAIL: StoreTest#test_updating_the_store_populates_the_changed_array_correctly (unexpected)
--- FAIL: SignedIdTest#test_on_rotation_callback_using_find_signed_&_find_signed! (unexpected)
--- FAIL: RelationTest#test_joins_with_select_custom_attribute (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_purpose (unexpected)
--- FAIL: StoreTest#test_write_store_attributes_through_accessors_with_default_suffix (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_for_single_table_inheritance_(STI_Models) (unexpected)
--- FAIL: RelationTest#test_joins_with_order_by_custom_attribute (unexpected)
--- FAIL: StoreTest#test_updating_the_store_populates_the_accessor_changed_array_correctly (unexpected)
--- FAIL: StoreTest#test_dirty_methods_for_suffixed_accessors (unexpected)
--- FAIL: StoreTest#test_reading_store_attributes_through_accessors (unexpected)
--- FAIL: StoreTest#test_object_initialization_with_not_nullable_column (unexpected)
--- FAIL: StoreTest#test_overriding_a_read_accessor (unexpected)
--- FAIL: SignedIdTest#test_finding_signed_record_that_has_been_destroyed_raises_on_the_bang (unexpected)
--- FAIL: StoreTest#test_all_stored_attributes_are_returned (unexpected)
--- FAIL: StoreTest#test_accessing_attributes_not_exposed_by_accessors_encoded_with_JSON (unexpected)
--- FAIL: StoreTest#test_store_takes_precedence_when_updating_store_and_accessor (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_within_expiration_duration (unexpected)
--- FAIL: StoreTest#test_read_store_attributes_through_accessors_with_custom_suffix (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_a_bang_within_expiration_duration (unexpected)
--- FAIL: StoreTest#test_stored_attributes_are_tracked_per_class (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_within_expiration_time (unexpected)
--- FAIL: StoreTest#test_serialize_stored_nested_attributes (unexpected)
--- FAIL: SignedIdTest#test_fail_to_find_signed_record_within_expiration_time (unexpected)
--- FAIL: StoreTest#test_new_record_and_no_accessors_changes (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_a_bang_on_relation (unexpected)
--- FAIL: StoreTest#test_dump,_load_and_dump_again_a_model (unexpected)
--- FAIL: StoreTest#test_writing_with_not_nullable_column (unexpected)
--- FAIL: HasManyAssociationsTest#test_set_ids_for_association_on_new_record_applies_association_correctly (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record (unexpected)
--- FAIL: StoreTest#test_store_accessor_raises_an_exception_if_the_column_is_not_either_serializable_or_a_structured_type (unexpected)
--- FAIL: StoreTest#test_updating_the_store_and_changing_it_back_won't_mark_accessor_as_changed (unexpected)
--- FAIL: StoreTest#test_writing_with_not_nullable_column_encoded_with_JSON (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_a_bang_with_custom_primary_key (unexpected)
--- FAIL: ActiveRecord::Encryption::MessageSerializerTest#test_won't_load_classes_from_JSON (unexpected)
--- FAIL: StoreTest#test_convert_store_attributes_from_any_format_other_than_Hash_or_HashWithIndifferentAccess_losing_the_data (unexpected)
--- FAIL: StoreTest#test_updating_the_store_will_mark_it_as_changed_encoded_with_JSON (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_a_bang_for_single_table_inheritance_(STI_Models) (unexpected)
--- FAIL: StoreTest#test_updating_the_store_won't_mark_accessor_as_changed_if_the_value_isn't_changed (unexpected)
--- FAIL: StoreTest#test_writing_store_attributes_through_accessors_encoded_with_JSON (unexpected)
--- FAIL: SignedIdTest#test_fail_to_find_signed_record_with_purpose (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_bang_with_purpose (unexpected)
--- FAIL: StoreTest#test_YAML_coder_initializes_the_store_when_a_Nil_value_is_given (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_custom_primary_key (unexpected)
--- FAIL: StoreTest#test_writing_store_attributes_through_accessors (unexpected)
--- FAIL: StoreTest#test_updating_the_store_will_mark_accessor_as_changed (unexpected)
--- FAIL: StoreTest#test_preserve_store_attributes_data_in_HashWithIndifferentAccess_format_without_any_conversion (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_with_bang_with_purpose_raises (unexpected)
--- FAIL: StoreTest#test_dirty_methods_for_prefixed_accessors (unexpected)
--- FAIL: StoreTest#test_reading_store_attributes_through_accessors_encoded_with_JSON (unexpected)
--- FAIL: StoreTest#test_prefix/suffix_do_not_affect_stored_attributes (unexpected)
--- FAIL: StoreTest#test_overriding_a_write_accessor (unexpected)
--- FAIL: StoreTest#test_writing_store_attributes_through_accessors_with_prefix (unexpected)
--- FAIL: StoreTest#test_updating_the_store_won't_mark_accessor_as_changed_if_the_whole_store_was_updated (unexpected)
--- FAIL: StoreTest#test_updating_the_store_will_mark_it_as_changed (unexpected)
--- FAIL: SignedIdTest#test_find_signed_record_on_relation (unexpected)
--- FAIL: StrictLoadingTest#test_strict_loading_with_has_many_through_cascade_down_to_middle_records (unexpected)
--- FAIL: SignedIdTest#test_fail_to_find_record_from_that_has_since_been_destroyed (unexpected)
--- FAIL: StoreTest#test_read_store_attributes_through_accessors_with_default_suffix (unexpected)
--- FAIL: SignedIdTest#test_fail_to_find_signed_record_within_expiration_duration (unexpected)
--- FAIL: StoreTest#test_write_store_attributes_through_accessors_with_custom_suffix (unexpected)
--- FAIL: StoreTest#test_saved_changes_tracking_for_accessors_with_json_column (unexpected)
--- FAIL: StoreTest#test_read_accessor_without_pre/suffix_in_the_same_store_as_other_pre/suffixed_accessors_still_works (unexpected)
--- FAIL: SignedIdTest#test_using_custom_signed_id_verifier (unexpected)
--- FAIL: SignedIdTest#test_on_rotation_callback_using_custom_verifier (unexpected)
--- FAIL: StoreTest#test_nullifying_the_store_mark_accessor_as_changed (unexpected)
--- FAIL: StoreTest#test_saved_changes_tracking_for_accessors (unexpected)
--- FAIL: StoreTest#test_overriding_a_read_accessor_using_super (unexpected)
--- FAIL: StoreTest#test_reading_store_attributes_with_indifferent_access (unexpected)
--- FAIL: StoreTest#test_stored_attributes_are_tracked_per_subclass (unexpected)
--- FAIL: StoreTest#test_overriding_a_write_accessor_using_super (unexpected)
--- FAIL: StoreTest#test_writing_store_attributes_does_not_update_unchanged_value (unexpected)
--- FAIL: StoreTest#test_updating_the_store_won't_mark_it_as_changed_if_an_attribute_isn't_changed (unexpected)
--- FAIL: SignedIdTest#test_finding_signed_record_outside_expiration_duration_raises_on_the_bang (unexpected)
--- FAIL: HasManyAssociationsTest#test_dont_call_save_callbacks_twice_on_has_many (unexpected)
For a full summary look at the activerecord artifacts
An updated blocklist (activeRecordBlocklist) is available in the artifacts' activerecord log
test artifacts and logs in: /artifacts/activerecord/run_1
```
Cluster Node to Ip Mapping:
| Node | Public IP | Private IP |
| --- | --- | --- |
| teamcity-21508690-1789019778-06-n1cpu4-0001 | | 10.91.98.142 |

Parameters:
- arch=amd64
- cloud=gce
- coverageBuild=false
- cpu=4
- diskCount=0
- encrypted=false
- fs=ext4
- localSSD=true
- metamorphicLeases=default
- metamorphicWriteBuffering=true
- runtimeAssertionsBuild=true
Help

See: [roachtest README](https://github.com/cockroachdb/cockroach/blob/master/pkg/cmd/roachtest/README.md)

See: [How To Investigate \(internal\)](https://cockroachlabs.atlassian.net/l/c/SSSBr8c7)

See: [Grafana](https://go.crdb.dev/roachtest-grafana/teamcity-21508690/activerecord/1789019982213/1789021155478)

_Logs were not uploaded to Datadog_

Same failure on other branches

- #174829 roachtest: activerecord failed [C-test-failure O-roachtest O-robot T-sql-foundations branch-release-25.2.24-rc release-blocker]
- #174828 release-26.3.2-rc: roachtest: activerecord failed [B-runtime-assertions-enabled C-test-failure O-roachtest O-robot P-1 T-sql-foundations branch-release-26.3.2-rc]
- #174827 release-26.2.7-rc: roachtest: activerecord failed [C-test-failure O-roachtest O-robot T-sql-foundations branch-release-26.2.7-rc]
- #174826 roachtest: activerecord failed [C-test-failure O-roachtest O-robot T-sql-foundations branch-release-25.4.17-rc release-blocker]
- #174371 roachtest: activerecord failed [C-test-failure O-roachtest O-robot P-2 T-sql-foundations branch-master]

/cc @cockroachlabs/sql-foundations

[This test on roachdash](https://roachdash.crdb.dev/?filter=status:open%20t:.*activerecord.*&sort=title+created&display=lastcommented+project) | [Improve this report!](https://github.com/cockroachdb/cockroach/tree/master/pkg/cmd/bazci/githubpost/issues)

Jira issue: CRDB-68138

Contributor guide

Open the contributing guide

Research direction

Start with the roachtest README and the activerecord artifacts and logs under /artifacts/activerecord/run_1. Review the failure summary and updated activeRecordBlocklist, then compare the repeated StoreTest, SignedIdTest, RelationTest, and association failures across the linked branch reports. Done means identifying the cause of the regression and restoring the affected ActiveRecord test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, ruby
Domain
databases, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.