[SERVER-38395] Python global logger is polluted when importing certain resmokelib modules Created: 04/Dec/18 Updated: 29/Oct/23 Resolved: 13/Dec/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.7, 4.0.12 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Jonathan Abrahams | Assignee: | Jonathan Abrahams |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Backport Requested: |
v4.0
|
||||
| Sprint: | DAG 2018-12-31 | ||||
| Participants: | |||||
| Story Points: | 1 | ||||
| Description |
|
It was discovered that the global logging in buildscripts/update_test_lifecycle.py gets overriden by buildscripts/mobile/adb_monitor.py because of the resmokelib imports. The file buildscripts/mobile/benchrun_embedded_setup_android.py also has similar issue. The logging setting should not be done in the global scope but in the main function:
|
| Comments |
| Comment by Githook User [ 01/Aug/19 ] |
|
Author: {'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com', 'username': 'hptabster'}Message: (cherry picked from commit acefbb86080b63c847700c764d08c5d8bcd9c58f) |
| Comment by Githook User [ 13/Dec/18 ] |
|
Author: {'username': 'hptabster', 'email': 'jonathan@mongodb.com', 'name': 'Jonathan Abrahams'}Message: |