Skip to content

[ci] Register Ark availability tests in the Python core shard - #695

Open
wangtiance wants to merge 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/fix-python-shard-inventory
Open

wangtiance wants to merge 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/fix-python-shard-inventory

Conversation

@wangtiance

Copy link
Copy Markdown
Collaborator

Summary

Register tests/test_ark_availability.py in the Python core shard. Main gained this module in #676 after #692 introduced explicit shard lists, leaving it absent from scripts/ci/python_shards.json. The existing inventory test therefore failed, and the shard commands omitted the new module.

This one-line change restores complete module registration and includes the Ark availability cases in the normal core invocation.

Linked issue

No issue applies. Discovered while investigating PR #687:

Labels

type:ci, area:ci.

Test plan and evidence

Local Windows / Python 3.12.12, using the committed candidate tree:

  • Before the fix, pytest tests/test_ci_layers.py::test_repo_python_shards_manifest_covers_every_test_module_once -q --tb=short failed because the manifest omitted tests/test_ark_availability.py.
  • After the fix, pytest tests/test_ci_layers.py tests/test_ark_availability.py -q --tb=short: 32 passed. The existing tests cover complete module registration and rejection of duplicate or incomplete shard evidence.
  • python scripts/ci/check_test_layers.py --list-shard core lists the added module exactly once. This is the CLI used by Release checks to select shard files.
  • Commit hooks, full PR-diff pre-commit checks and git diff --check passed. The range check used an isolated copy of the identical committed index because the sandbox blocks its incidental index.lock write.

Observed regression and corrected result:

Before: Extra items in the right set: 'tests/test_ark_availability.py'
        1 failed
After:  32 passed
Shard CLI includes tests/test_ark_availability.py exactly once

Visual evidence is N/A: only CI file selection changes; no product behavior or user-facing copy changes. Ark tests use fixtures and mock transport, with no real-provider calls.

Left to CI: Linux Release checks, the complete Python shards and aggregate coverage audit, CodeQL, and other PR-triggered checks. These are not claimed green by the local focused run.

Candidate review

Base: 93bd25b08a53633c08a9d904b1043e8cf6c2de65
Head: 69fb4ed7500c0046286efd7d634d8426b1be9510

Author self-review: 93/100 (scope 3/3, correctness 3/3, validation 2/3, claim evidence 3/3, simplicity 3/3). No blocking findings; hosted CI remains unverified. Independent candidate review: 93/100, with no blocking findings for creating this PR. The same full base and head above were reviewed. Formal WITHHOLD remains until the applicable CI and review process completes.

## summary

Add the Ark availability module to the Python core shard so the
manifest covers every test module and CI executes the new tests.

## validation

- Existing inventory regression fails before this entry is added.
- CI layer and Ark availability tests: 32 passed.
- Core shard CLI lists the module exactly once.
@wangtiance wangtiance added area:ci Continuous integration and checks type:ci Build, test and release automation labels Dec 5, 2026 — with ChatGPT Codex Connector

@david6666666 david6666666 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.

PASS 69fb4ed Refs #687

100/100(范围 3、正确性 3、验证 3、主张证据 3、简洁度 3;各满分 3)。这行只补齐 #676 带来的测试分片登记,不改 Ark 行为,也不把 #687 的其他问题算作已修。我对照了候选树:167 个测试模块与清单 167 项一一对应,没有遗漏和重复。精确 SHA 的 Release checks 全绿:core 实际收集了 11 条 Ark 用例,聚合审计覆盖 3,831 个用例,152 条代表用例全部通过。CodeQL 和 DSH checks 也通过。作者另外报告 Windows 局部 32 项通过;我没有本地重跑或调用真实 Ark。纯 CI 修复,无需截图。

English recap: The manifest now matches the tree, and the exact-head core and aggregate runs are green. This restores Ark test registration, not provider qualification or #687 acceptance.

Dot,代表 @david6666666 作非表决审查。
Coordinator: existing requested reviewers; no formal vote or merge by Dot.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Continuous integration and checks type:ci Build, test and release automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants