Repository navigation
Group Dashboard tests under Apps - #680
Merged
Merged
Conversation
Move the Dashboard tests together and update their browser CI and documentation paths. Resolve Dashboard templates from the Apps views package. Signed-off-by: dongxinwen <[email protected]> Agent-assisted-by: Codex (author)
Bounty-hunter
approved these changes
Nov 25, 2026
Bounty-hunter
left a comment
Collaborator
There was a problem hiding this comment.
LGTM
Claude Code agent, acting for @Bounty-hunter.
PR review verdict — PASS
Reviewed base 42b48711cac24eb37bf92988a5cfa24a288750e8 and head b5059e7b145e042c878c8067a9512e9068a47dc8 against the accepted scope of #678 (status:accepted). No blocking findings.
Evidence, scope checked and what remains unverified
Checked
- All seven modules are pure renames into
tests/apps/dashboard/(four at 100% similarity); the newtests/apps/dashboard/__init__.pymakes the package, andtests/apps/__init__.pyplustests/apps/conftest.py(thebrowser,cpu_browser,dashboard_campaignfixtures) still apply to the subdirectory. - Depth-sensitive paths were fixed rather than re-counted:
test_dashboard_live.pynow usesTEMPLATE = Path(views.__file__).with_name("template.html")andtest_dashboard_translation_ui.pyusesTEMPLATES = Path(views.__file__).parent, replacingPath(__file__).parents[2] / "src/inferrsi/apps/views...". Both resolve tosrc/inferrsi/apps/views/(__init__.pyandtemplate.htmlexist there at head), and also work for a non-editable install. - The two
from tests.apps.test_dashboard_data import ...lines in the browser module becamefrom .test_dashboard_data import ..., which resolves inside the new package. - The other moved modules have no
__file__/parents[...]lookups; their remaining imports (tests.fixtures.dashboard_experiments,tests.apps.test_optimization_session) are absolute and unaffected by the move. - A code search on
mainfor each moved module name returns onlytests/apps/test_dashboard_experiments_browser.py,docs/dashboard/dashboard-experiments.mdand.github/workflows/ci-ready.yml; all three are updated in this diff (theci-ready.ymlbrowser selector at line 94 now points attests/apps/dashboard/test_dashboard_experiments_browser.py). - Checks on this head at review time:
dashboard-browser(the job running the moved browser module),installed-package(3.10, 3.11),lint-and-smoke,declarations,pr-referencesand both advisory host-compatibility jobs succeeded.
Not verified
full-check(3.10, 3.11) was still running when this review was submitted; the integrator should gate on it.- I did not rerun the 7,564-ID collection comparison; I rely on the PR's stated mapping plus the passing jobs above.
Optional (non-blocking)
- The browser module now mixes a relative import (
.test_dashboard_data) with absolutetests.apps...imports; either style works, but one style would read more consistently.
Dong1017
enabled auto-merge (squash)
November 25, 2026 08:46
Collaborator
Author
zengchuang-hw
approved these changes
Nov 25, 2026
zengchuang-hw
left a comment
Contributor
There was a problem hiding this comment.
PASS
Dot,代表 zengchuang-hw 执行独立检视。
回应本条检视邀请。#678 的七个 Dashboard 测试模块已迁入同一包,本轮未发现覆盖缩水或路径阻塞。
范围与验证
Base 42b48711cac24eb37bf92988a5cfa24a288750e8 → head b5059e7b145e042c878c8067a9512e9068a47dc8。核对 11 个差异:四个迁移模块 blob 完全相同,另外三个只改共享测试导入和模板定位;原模板与上级 conftest.py 均未动。浏览器工作流仍选原测试模块,只替换路径,维护文档与之一致。两边 7,564 个收集 ID 的对比及 Windows 结果是作者留证,不是我独立运行的结果。未运行浏览器或读取 CI;此票不替代集成要求或 Issue 验收。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Governing Issue and delivery slice
Refs #678
Group the seven Dashboard test modules under
tests/apps/dashboard/. Update shared browser imports, the Dashboard templates lookup, CI selectors, and developer documentation for the new paths.Anchors touched: none
Knowledge authorship declaration
Changed artifacts and evidence
Checks and dependencies
ruff check src tests toolsandgit diff --checkpassed. The maintained documentation link test passed, and the updated Dashboard CI selector collected 26 tests, and the documentation selectors collected 109.Remaining work and Issue closure
Independent review and required CI checks are pending. @Dong1017 owns acceptance for #678.