Extension example catches its own assertions and cannot detect failed deletion
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
まず examples/playwright_extensions.py:127-132 と 134-143 にある 2 つの削除検証ブロックから始め、次に examples/e2e/test_playwright.py がその例をどのように実行しているかを確認します。予期しない成功が期待される失敗として扱われないことを確認し、削除のリグレッションが検出されることを検証するために、関連する E2E テストを実行します。
索引モデルが issue の本文から書いたものです。
説明
Description
The extension example's two deletion-verification blocks catch their own AssertionError. If retrieving a deleted extension or creating a session with it unexpectedly succeeds, the code raises AssertionError, immediately catches it with except Exception, and prints that failure occurred "as expected".
Code reference
examples/playwright_extensions.py:127-132examples/playwright_extensions.py:134-143
Reproduction
The control-flow problem can be demonstrated without Browserbase credentials:
try:
# Simulate get_extension() unexpectedly succeeding.
object()
raise AssertionError("Expected to fail when retrieving deleted extension")
except Exception as exc:
print(f"Failed as expected: {exc}")
The output claims an expected failure even though the operation succeeded and only the example's own assertion failed.
Expected behavior
Only the API operation should be inside the try, with the success assertion in else, or the code should catch the specific expected Browserbase exception. Unexpected success must fail the example/E2E test.
Actual behavior
Both negative checks are guaranteed to print an expected-failure message for either outcome, so regressions in extension deletion can pass silently.
Why it matters
examples/e2e/test_playwright.py exercises this example. False-positive cleanup checks weaken E2E coverage for deletion semantics and can mask a server or SDK regression.
- 主要言語
- Python
- スター
- 93
- フォーク
- 16
- 平均マージ
- 11分
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
browserbase/sdk-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
browserbase/sdk-python#182 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
browserbase/sdk-python#179 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
browserbase/sdk-python#178 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
browserbase/sdk-python#176 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
browserbase/sdk-python#175 ·
browserbase/sdk-python の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·