Add Sentry error capturing for logs controller #4722
Annotations
10 errors and 3 warnings
spec/models/dockets/direct_review_docket_spec.rb#L26
DirectReviewDocket#due_count returns the expected count
Failure/Error: create(default_object(klass, params, user))
ActiveRecord::StatementInvalid:
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: INSERT INTO "metrics" ("app_name", "created_at", "duration", "end", "metric_attributes", "metric_class", "metric_message", "metric_name", "metric_product", "metric_type", "sent_to", "sent_to_info", "start", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L19
SentHearingEmailEvent#create automatically sets the sent_at date
Failure/Error: create(default_object(klass, params, user))
ActiveRecord::StatementInvalid:
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: INSERT INTO "metrics" ("app_name", "created_at", "duration", "end", "metric_attributes", "metric_class", "metric_message", "metric_name", "metric_product", "metric_type", "sent_to", "sent_to_info", "start", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L26
SentHearingEmailEvent#create invalid email type field fails validation
Failure/Error: expect { subject }.to raise_error(ArgumentError)
expected ArgumentError, got #<ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERROR: current transaction is aborted,...", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"> with backtrace:
# ./app/models/metric.rb:36:in `create_metric'
# ./app/services/metrics_service.rb:107:in `store_record_metric'
# ./app/services/metrics_service.rb:68:in `rescue in record'
# ./app/services/metrics_service.rb:61:in `record'
# ./app/models/prepend/va_notify/hearing_scheduled.rb:23:in `update_appeal_states_on_hearing_scheduled'
# ./app/models/hearing.rb:287:in `update_appeal_states_on_hearing_create'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:6:in `block (3 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:12:in `block (3 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:27:in `block (5 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:27:in `block (4 levels) in <top (required)>'
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L34
SentHearingEmailEvent#create invalid recipient role fails validation
Failure/Error: expect { subject }.to raise_error(ArgumentError)
expected ArgumentError, got #<ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERROR: current transaction is aborted,...", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"> with backtrace:
# ./app/models/metric.rb:36:in `create_metric'
# ./app/services/metrics_service.rb:107:in `store_record_metric'
# ./app/services/metrics_service.rb:68:in `rescue in record'
# ./app/services/metrics_service.rb:61:in `record'
# ./app/models/prepend/va_notify/hearing_scheduled.rb:23:in `update_appeal_states_on_hearing_scheduled'
# ./app/models/hearing.rb:287:in `update_appeal_states_on_hearing_create'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:6:in `block (3 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:12:in `block (3 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:35:in `block (5 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:35:in `block (4 levels) in <top (required)>'
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L52
SentHearingEmailEvent#handle_reported_status takes one argument.
Failure/Error: expect { sent_hearing_email_event.handle_reported_status }.to raise_error(ArgumentError)
expected ArgumentError, got #<ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERROR: current transaction is aborted,...", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"> with backtrace:
# ./app/models/metric.rb:36:in `create_metric'
# ./app/services/metrics_service.rb:107:in `store_record_metric'
# ./app/services/metrics_service.rb:68:in `rescue in record'
# ./app/services/metrics_service.rb:61:in `record'
# ./app/models/prepend/va_notify/hearing_scheduled.rb:23:in `update_appeal_states_on_hearing_scheduled'
# ./app/models/hearing.rb:287:in `update_appeal_states_on_hearing_create'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:47:in `block (3 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:53:in `block (4 levels) in <top (required)>'
# ./spec/models/hearings/sent_hearing_email_event_spec.rb:53:in `block (3 levels) in <top (required)>'
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L56
SentHearingEmailEvent#handle_reported_status does nothing if the send_successful is true.
Failure/Error: create(default_object(klass, params, user))
ActiveRecord::StatementInvalid:
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: INSERT INTO "metrics" ("app_name", "created_at", "duration", "end", "metric_attributes", "metric_class", "metric_message", "metric_name", "metric_product", "metric_type", "sent_to", "sent_to_info", "start", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L66
SentHearingEmailEvent#handle_reported_status updates send_successful_checked_at if the status given is 'new'.
Failure/Error: create(default_object(klass, params, user))
ActiveRecord::StatementInvalid:
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: INSERT INTO "metrics" ("app_name", "created_at", "duration", "end", "metric_attributes", "metric_class", "metric_message", "metric_name", "metric_product", "metric_type", "sent_to", "sent_to_info", "start", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L76
SentHearingEmailEvent#handle_reported_status updates send_successful_checked_at if the status given is 'sending'.
Failure/Error: create(default_object(klass, params, user))
ActiveRecord::StatementInvalid:
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: INSERT INTO "metrics" ("app_name", "created_at", "duration", "end", "metric_attributes", "metric_class", "metric_message", "metric_name", "metric_product", "metric_type", "sent_to", "sent_to_info", "start", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L86
SentHearingEmailEvent#handle_reported_status updates send_successful_checked_at and sets send_successful to true when the status is 'sent'.
Failure/Error: create(default_object(klass, params, user))
ActiveRecord::StatementInvalid:
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: INSERT INTO "metrics" ("app_name", "created_at", "duration", "end", "metric_attributes", "metric_class", "metric_message", "metric_name", "metric_product", "metric_type", "sent_to", "sent_to_info", "start", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
|
spec/models/hearings/sent_hearing_email_event_spec.rb#L95
SentHearingEmailEvent#handle_reported_status raises InvalidReportedStatus when an invalid status is given.
Failure/Error: create(default_object(klass, params, user))
ActiveRecord::StatementInvalid:
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: INSERT INTO "metrics" ("app_name", "created_at", "duration", "end", "metric_attributes", "metric_class", "metric_message", "metric_name", "metric_product", "metric_type", "sent_to", "sent_to_info", "start", "updated_at", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
|
|
|
|
The logs for this run have expired and are no longer available.
Loading