Closed Bug 1626032 Opened 5 years ago Closed 5 years ago

[traceback] AttributeError: "MockedTelemetryBotoS3CrashStorage" object has no attribute "conn" in socorro/schemas/validate_and_test.py

Categories

(Socorro :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

Attachments

(1 file)

We have a validate_and_test.py script that pulls down crash data and validates that the schema is correct and works with the crash data.

It looks like we haven't run this in a while and it's broken:

Traceback (most recent call last):
  File "socorro/schemas/validate_and_test.py", line 146, in <module>
    sys.exit(main())
  File "socorro/schemas/validate_and_test.py", line 140, in main
    run(args.crashes_per_url, *args.urls)
  File "socorro/schemas/validate_and_test.py", line 108, in run
    processor.save_processed_crash(raw_crash, processed_crash)
  File "socorro/schemas/validate_and_test.py", line 29, in save_processed_crash
    self.combined = super().save_processed_crash(raw_crash, processed_crash)
  File "/app/socorro/external/boto/crashstorage.py", line 335, in save_processed_crash
    self.conn.save_file(path, data)
AttributeError: 'MockedTelemetryBotoS3CrashStorage' object has no attribute 'conn'
app@socorro:/app$ 

This bug covers fixing it.

Grabbing this to fix now. It blocks me from adding new fields to the schema.

Assignee: nobody → willkg
Status: NEW → ASSIGNED
Type: task → defect
Priority: -- → P1

willkg merged PR #5325: "bug 1626032: fix validate_and_test script" in dd8615f.

I need to write up a new bug for writing a basic test for this. I wrote that up in bug #1626632.

This only affects local dev environment stuff. Marking as FIXED.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: