[SERVER-51038] resmoke.py can't be run on python 3.8 Created: 16/Sep/20  Updated: 29/Oct/23  Resolved: 18/Sep/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.8.0, 4.2.13, 4.4.5

Type: Improvement Priority: Major - P3
Reporter: Richard Samuels (Inactive) Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-49498 Enable resmoke.py to download undodb ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2
Sprint: STM 2020-10-05
Participants:
Story Points: 1

 Description   

When attempting to invoke ./buildscripts/resmoke.py run --suites=buildscripts_test in a macOS venv with python3.8, the following stack trace is returned:

[resmoke] 2020-09-16T08:34:28.352-0400 verbatim resmoke.py invocation: ./buildscripts/resmoke.py run --suites=buildscripts_test
[resmoke] 2020-09-16T08:34:28.364-0400 YAML configuration of suite buildscripts_test
test_kind: py_test
 
selector:
  exclude_files:
  - buildscripts/tests/resmokelib/test_selector.py
  - buildscripts/tests/resmokelib/utils/test_archival.py
  - buildscripts/tests/test_aws_ec2.py
  - buildscripts/tests/test_remote_operations.py
  - buildscripts/tests/resmoke_end2end/**/test_*.py
  roots:
  - buildscripts/tests/**/test_*.py
  - buildscripts/idl/tests/**/test_*.py
 
executor: {}
 
logging:
  executor:
    format: '[%(name)s] %(asctime)s %(message)s'
    handlers:
    - class: logging.StreamHandler
  fixture:
    format: '[%(name)s] %(message)s'
    handlers:
    - class: logging.StreamHandler
  tests:
    format: '[%(name)s] %(asctime)s %(message)s'
    handlers:
    - class: logging.StreamHandler
Traceback (most recent call last):
  File "/Users/rsamuels/mongodb/mongo/buildscripts/resmokelib/run/__init__.py", line 234, in _execute_suite
    executor.run()
  File "/Users/rsamuels/mongodb/mongo/buildscripts/resmokelib/testing/executor.py", line 98, in run
    self.logger.info("Starting execution of %ss...", self._suite.test_kind)
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1434, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1565, in _log
    fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
TypeError: findCaller() takes from 1 to 2 positional arguments but 3 were given
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "./buildscripts/resmoke.py", line 14, in <module>
    cli.main(sys.argv)
  File "/Users/rsamuels/mongodb/mongo/buildscripts/resmokelib/cli.py", line 17, in main
    subcommand.execute()
  File "/Users/rsamuels/mongodb/mongo/buildscripts/resmokelib/run/__init__.py", line 120, in execute
    self.run_tests()
  File "/Users/rsamuels/mongodb/mongo/buildscripts/resmokelib/run/__init__.py", line 185, in run_tests
    self._interrupted = self._run_suite(suite)
  File "/Users/rsamuels/mongodb/mongo/buildscripts/resmokelib/run/__init__.py", line 206, in _run_suite
    interrupted = self._execute_suite(suite)
  File "/Users/rsamuels/mongodb/mongo/buildscripts/resmokelib/run/__init__.py", line 244, in _execute_suite
    self._exec_logger.exception("Encountered an error when running %ss of suite %s.",
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1469, in exception
    self.error(msg, *args, exc_info=exc_info, **kwargs)
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1463, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1565, in _log
    fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
TypeError: findCaller() takes from 1 to 2 positional arguments but 3 were given

This problem can be solved by using python3.7, but it prevent us from upgrading in the future.



 Comments   
Comment by Githook User [ 18/Feb/21 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@10gen.com', 'username': 'guoyr'}

Message: SERVER-51038 resmoke.py can't be run on python 3.8

(cherry picked from commit 43586216b2dcde0b1f13ed1a835e1580b5d681be)
(cherry picked from commit e755531feb3715430c7e533159ea9cc7b0394601)
Branch: v4.2
https://github.com/mongodb/mongo/commit/db35b66defbfb2a62dbea8ec188fb891d580f001

Comment by Githook User [ 17/Feb/21 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@10gen.com', 'username': 'guoyr'}

Message: SERVER-51038 resmoke.py can't be run on python 3.8

(cherry picked from commit 43586216b2dcde0b1f13ed1a835e1580b5d681be)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e755531feb3715430c7e533159ea9cc7b0394601

Comment by Githook User [ 18/Sep/20 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@10gen.com', 'username': 'guoyr'}

Message: SERVER-51038 resmoke.py can't be run on python 3.8
Branch: master
https://github.com/mongodb/mongo/commit/43586216b2dcde0b1f13ed1a835e1580b5d681be

Comment by Richard Samuels (Inactive) [ 17/Sep/20 ]

Reverting SERVER-49498 apparently prevents this issue from occurring locally

Generated at Thu Feb 08 05:24:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.