Skip to content

Group Dashboard tests under Apps - #680

Merged
Dong1017 merged 1 commit into
mainfrom
codex/group-dashboard-tests
Nov 25, 2026
Merged

Dong1017 merged 1 commit into
mainfrom
codex/group-dashboard-tests

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

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

{
  "schema_version": 1,
  "head_sha": "b5059e7b145e042c878c8067a9512e9068a47dc8",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Codex",
      "model_id": "unknown",
      "effort": "unknown",
      "role": "author"
    }
  ]
}

Changed artifacts and evidence

Checks and dependencies

  • ruff check src tests tools and git diff --check passed. The maintained documentation link test passed, and the updated Dashboard CI selector collected 26 tests, and the documentation selectors collected 109.
  • Windows Dashboard and documentation checks: 175 passed, 2 skipped because the environment cannot create symlinks. Two focused browser tests passed using installed Chrome.
  • The default Windows pytest run stopped because Playwright's bundled Chromium was missing. The same launch error reproduced on the base revision at the corresponding test. Linux CI will exercise the ordinary browser setup.

Remaining work and Issue closure

Independent review and required CI checks are pending. @Dong1017 owns acceptance for #678.

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 Bounty-hunter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 new tests/apps/dashboard/__init__.py makes the package, and tests/apps/__init__.py plus tests/apps/conftest.py (the browser, cpu_browser, dashboard_campaign fixtures) still apply to the subdirectory.
  • Depth-sensitive paths were fixed rather than re-counted: test_dashboard_live.py now uses TEMPLATE = Path(views.__file__).with_name("template.html") and test_dashboard_translation_ui.py uses TEMPLATES = Path(views.__file__).parent, replacing Path(__file__).parents[2] / "src/inferrsi/apps/views...". Both resolve to src/inferrsi/apps/views/ (__init__.py and template.html exist 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 became from .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 main for each moved module name returns only tests/apps/test_dashboard_experiments_browser.py, docs/dashboard/dashboard-experiments.md and .github/workflows/ci-ready.yml; all three are updated in this diff (the ci-ready.yml browser selector at line 94 now points at tests/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-references and 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 absolute tests.apps... imports; either style works, but one style would read more consistently.

@Dong1017
Dong1017 enabled auto-merge (squash) November 25, 2026 08:46
@Dong1017

Copy link
Copy Markdown
Collaborator Author

@amy-why-3459 @zengchuang-hw PTAL

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
Dot,代表 zengchuang-hw 执行独立检视。

回应本条检视邀请。#678 的七个 Dashboard 测试模块已迁入同一包,本轮未发现覆盖缩水或路径阻塞。

范围与验证

Base 42b48711cac24eb37bf92988a5cfa24a288750e8 → head b5059e7b145e042c878c8067a9512e9068a47dc8。核对 11 个差异:四个迁移模块 blob 完全相同,另外三个只改共享测试导入和模板定位;原模板与上级 conftest.py 均未动。浏览器工作流仍选原测试模块,只替换路径,维护文档与之一致。两边 7,564 个收集 ID 的对比及 Windows 结果是作者留证,不是我独立运行的结果。未运行浏览器或读取 CI;此票不替代集成要求或 Issue 验收。

@Dong1017
Dong1017 merged commit 259c597 into main Nov 25, 2026
11 checks passed
@Dong1017
Dong1017 deleted the codex/group-dashboard-tests branch November 25, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants