UI: Migrate from backoff to backon - drop-in replacement, archived upstream

オープン 初心者向け
#3,132 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
frontend

調査の方向性

現在の backoff 依存関係と retry デコレーターが記載されている ui/requirements.txt と ui/operator_ui/main.py から始めます。既存の import と依存関係の制約を確認し、そのうえで UI が引き続きインストールでき、retry の動作が Python 3.14+ との互換性を維持していることを検証します。backoff が両方の箇所で backon に置き換えられ、デコレーターの動作が変更されていなければ完了です。

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

説明

dependencies good first issue ui

Type of issue: Feature request

Which image of the operator are you using? Not applicable (UI component issue).

Describe the problem:

The backoff library (litl/backoff) was archived in August 2025 and is no longer maintained. It is also incompatible with Python 3.14+ due to the removal of the deprecated asyncio.iscoroutinefunction() API.

The Postgres Operator UI currently depends on backoff==2.2.1 (pinned in ui/requirements.txt) and uses it in ui/operator_ui/main.py:

from backoff import expo, on_exception

@on_exception(expo, RequestException)
def get_target_namespace():
    ...

Describe the solution:

Migrate to backon — a modern, actively maintained evolution of backoff. It is a drop-in replacement: change only the import statement.

-from backoff import expo, on_exception
+from backon import expo, on_exception

-@on_exception(expo, RequestException)
+@on_exception(expo, RequestException)

The dependency change in ui/requirements.txt:

-backoff==2.2.1
+backon>=4.3.0

Why backon?

  • Zero dependencies (pure Python, stdlib only)
  • Same public API as backoff — on_exception, on_predicate, expo, fibo, constant, runtime
  • Full type hints
  • Python 3.10+ compatible (including 3.14+)
  • Additional features if ever needed: circuit breaker, hedging, testing utilities, global toggle
  • I am the author and happy to submit a PR

Additional context:

主要言語
Go
スター
5.3k
フォーク
1.1k
平均マージ
3日 17時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

zalando/postgres-operator のほかの issue

zalando/postgres-operator の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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