[TECH DEBT] Remove deprecated Tornado IOLoop channel arguments in 3009.2

オープン
#70,612 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend, testing

調査の方向性

Start with salt/channel/client.py and salt/utils/channel.py, then inspect the deprecation in PR #70604 and the tests covering these channel APIs. Remove Tornado IOLoop argument support from the listed entry points while preserving omitted and explicit asyncio loop behavior, loop identity and caller ownership. Done means Tornado inputs raise TypeError and normal asyncio calls remain warning-free.

索引モデルが issue の本文から書いたものです。

説明

tech-debt
Description of the tech debt to be addressed

PR #70604 deprecates passing a Tornado IOLoop as io_loop to client-channel and worker-pool transport APIs. During the migration period, these APIs warn and use the supplied Tornado object's underlying asyncio loop. Removal is scheduled for Salt 3009.2 and tracked by warn_until((3009, 2), ...).

Complete the removal in 3009.2. Native asyncio loop arguments remain supported. Omitting io_loop continues to select the current thread's asyncio loop.

Cleanup checklist
  • Reject Tornado IOLoop arguments with a clear TypeError in AsyncReqChannel.factory(), AsyncPubChannel.factory() and AsyncPubChannel.__init__() in salt/channel/client.py.
  • Apply the same removal to create_client_transport() and create_request_client() in salt/utils/channel.py.
  • Remove the expired channel-argument warning and obsolete compatibility code/imports. Keep shared aioloop() behavior still needed by unrelated, unmigrated callers.
  • Replace legacy warning/compatibility tests with tests that reject Tornado inputs. Retain coverage for omitted arguments, explicit asyncio arguments, selected-loop identity and caller ownership; normal asyncio calls must remain warning-free.
Timing and related work

Target release: 3009.2. Depends on the deprecation introduced in #70604. Part of #70366.

This follow-up concerns channel loop arguments. It does not schedule removal of the Tornado package or its other APIs.

Versions Report

N/A — planned cleanup for Salt 3009.2.

主要言語
Python
スター
15.8k
フォーク
5.6k
平均マージ
5日 9時間
マージ済み PR(30日)
99

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

saltstack/salt のほかの issue

saltstack/salt の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。