Bug 196248 - [ews-build] is_test_mode_enabled should default to True
Summary: [ews-build] is_test_mode_enabled should default to True
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-26 04:48 PDT by Aakash Jain
Modified: 2021-02-01 07:43 PST (History)
11 users (show)

See Also:


Attachments
Patch (1.11 KB, patch)
2019-03-26 04:50 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2019-03-26 04:48:48 PDT
is_test_mode_enabled variable should default to True in order to avoid accidentally running production settings on a local/test instance. Currently we need to explicitly add an environment variable BUILDBOT_TESTING in order to indicate test instance. If someone forgets to set this environment variable on a local instance, he would run with production settings. Currently it's very easy to make this mistake. We should reverse the logic to make it harder to do such mistake. 

We should instead require to set an environment variable BUILDBOT_PRODUCTION on production server. It will be a one time configuration on the production server (by configuring environment variable in a manner that persist across reboots and various shell sessions).
Comment 1 Aakash Jain 2019-03-26 04:50:32 PDT
Created attachment 365960 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2019-03-26 04:55:00 PDT
<rdar://problem/49263519>
Comment 3 WebKit Commit Bot 2019-03-26 10:12:28 PDT
Comment on attachment 365960 [details]
Patch

Clearing flags on attachment: 365960

Committed r243501: <https://trac.webkit.org/changeset/243501>
Comment 4 WebKit Commit Bot 2019-03-26 10:12:30 PDT
All reviewed patches have been landed.  Closing bug.