Closed Bug 1204071 Opened 9 years ago Closed 9 years ago

Autophone - runtestsremote.py must explicitly set environment variables via the command line

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(firefox43 affected)

RESOLVED FIXED
Tracking Status
firefox43 --- affected

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(1 file)

UnitTest.setup_job attempts to set several environment variables for use by the test runner at https://github.com/mozilla/autophone/blob/master/tests/runtestsremote.py#L108 os.putenv('MINIDUMP_STACKWALK', self.options.minidump_stackwalk) os.putenv('MINIDUMP_SAVE_PATH', self.upload_dir) os.putenv('MOZ_UPLOAD_DIR', self.upload_dir) This does not appear to work since the test runners do no inherit their external environment. This results in failures to use minidump_stackwalk to process crash dumps as in: https://autophone-dev.s3.amazonaws.com/pub/mozilla.org/mobile/tinderbox-builds/mozilla-inbound-android-api-11/1441987007/robocoptest-robocoptests-settings.ini-1-samsung-gs3-3-fea02e71-2bb0-4b94-b736-403cfb2392e3.log No symbols path given, can't process dump. MINIDUMP_STACKWALK not set, can't process dump. I'm not clear yet as to why it says it didn't have symbols_path set as it appears to me that it should be, but I'll continue investigating.
Attachment #8660456 - Flags: review?(gbrown)
Comment on attachment 8660456 [details] [diff] [review] bug-1204071-v1.patch Review of attachment 8660456 [details] [diff] [review]: ----------------------------------------------------------------- If you prefer, I think you could use os.environ['var']=value where you had the putenv, but this is fine too. Is there an issue with the symbols path as well?
Attachment #8660456 - Flags: review?(gbrown) → review+
The symbols are already set up for the command line in create_test_args()
Blocks: 1204287
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: