[bug] Browser tests fail on Django admin unload deprecation warning

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cypress, django, docker, github-actions, python
領域
devops, testing

調査の方向性

Read the Docker CI workflow and the console checks used by test_console_errors and test_topology_graph; reproduce with the Ubuntu runner and Chrome versions described in the issue. The issue says a fix branch already passes all 62 tests, so inspect that branch to understand the narrow exception and its regression tests. Done means the Django admin unload warning is tolerated while other policy violations and JavaScript errors still fail the suite.

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

説明

Describe the bug

The Docker CI browser tests fail on Django admin’s legacy unload handler:

https://dashboard.openwisp.org/static/admin/js/admin/RelatedObjectLookups.js 214 Permissions policy violation: unload is not allowed in this document.

Failing run: test_console_errors and test_topology_graph report 27 failures on each of five attempts. All installer tests pass.

Steps To Reproduce

  1. Run the Docker CI workflow on the current Ubuntu runner with Chrome 158.
  2. The workflow starts the development stack and runs make develop-pythontests.
  3. The console checks report the warning above as a JavaScript error.

Expected behavior

The known Django admin unload-deprecation warning should not fail the suite. Other policy violations and JavaScript errors must still be reported. A narrowly scoped exception with regression tests would keep this compatibility fix separate from installer PR #777.

System information

Ubuntu 26.04 GitHub runner image 20261122.9.1, Chrome 158.0.8127.36. The earlier successful run used Chrome 157. Full environment details and output are linked above.

The fix is available on this branch. CI with the fix passed all 62 tests on the first attempt, including both previously failing browser tests. A separate draft PR is currently blocked by the repository’s one-open-PR limit; #777 occupies that slot.

主要言語
Python
スター
207
フォーク
130
平均マージ
14時間 16分
マージ済み PR(30日)
35

環境構築

はじめの一歩

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

openwisp/docker-openwisp のほかの issue

openwisp/docker-openwisp の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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