Skip to content

gh-109162: Refactor libregrtest WorkerJob #109171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 9, 2023

  • Rename --worker-args command line option to --worker-json.

  • Rename _parse_worker_args() to _parse_worker_json().

  • WorkerJob:

    • Add runtests attribute
    • Remove test_name and rerun attribute
  • Rename run_test_in_subprocess() to create_worker_process().

  • Rename run_tests_worker() to worker_process().

  • create_worker_process() uses json.dump(): write directly JSON to stdout.

  • Convert MultiprocessResult to a frozen dataclass.

  • Rename RunTests.match_tests to RunTests.match_tests_dict.

* Rename --worker-args command line option to --worker-json.
* Rename _parse_worker_args() to _parse_worker_json().
* WorkerJob:

  * Add runtests attribute
  * Remove test_name and rerun attribute

* Rename run_test_in_subprocess() to create_worker_process().
* Rename run_tests_worker() to worker_process().
* create_worker_process() uses json.dump(): write directly JSON to
  stdout.
* Convert MultiprocessResult to a frozen dataclass.
* Rename RunTests.match_tests to RunTests.match_tests_dict.
@vstinner vstinner enabled auto-merge (squash) September 9, 2023 00:35
@vstinner vstinner merged commit a56c928 into python:main Sep 9, 2023
@vstinner vstinner deleted the regrtest_refactor4 branch September 9, 2023 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants