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

Aperta
#70,612 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
15.8k
Fork
5.6k
Merge medio
5g 9h
PR unite (30g)
99

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di saltstack/salt

Tutte le issue di saltstack/salt

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.