dsh-ci-test-reliability
Skill3 starsChanged 5 days agoMITView on GitHub
设计、审查或诊断在 CI 并发、共享宿主资源、全局状态、时钟、跨平台与异步清理下不稳定的测试和夹具。
9 other projects use a version of this.
Adopted by
Most recently taken up by
- Hejunlong27/AIAuditOxtheir own version, first seen Nov 29, 2026
- VirtualHatch-Inc/Vardocktheir own version, first seen Nov 22, 2026
- qufei1993/skills-hubtheir own version, first seen Nov 1, 2026
- ZeroOnehub/aipm-workbenchtheir own version, first seen Nov 1, 2026
- See-Sol-Lab/DeepSeekGUItheir own version, first seen Oct 18, 2026
- Yao920127/claude-code-harnesstheir own version, first seen Oct 11, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- deepseek-ai/deepseek-harness★ 289ksame name
- qufei1993/skills-hub★ 1.9ksame name
- See-Sol-Lab/DeepSeekGUI★ 274same name
- SuperJJ007/papermachine★ 59same name
- Hejunlong27/AIAuditOx★ 6same name
- VirtualHatch-Inc/Vardock★ 4same name
- ZeroOnehub/aipm-workbench★ 2same name
- SparkElf/deepseek-harness-plus★ 1same name
- Yao920127/claude-code-harness★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-experienceSkill
- a-philosophy-of-software-designSkill
- architecture-governanceSkill
- clean-architectureSkill
- clean-codeSkill
- code-completeSkill
- cordis-styling-nitpickingSkill
- delete-commentSkill
- dep-refsSkill
- designing-data-intensive-applicationsSkill
- domain-driven-design-distilledSkill
- domain-driven-designSkill
- dsh-archive-agent-notesSkill
- dsh-client-ui-uxSkill
- dsh-code-reviewSkill
- dsh-create-upgrade-guideSkill
- dsh-docSkill
- dsh-error-handlingSkill
- dsh-find-simplificationsSkill
- dsh-pre-push-checksSkill
- dsh-prose-standardSkill
- dsh-responsive-uiSkill
- dsh-speed-up-perfSkill
- dsh-translate-docsSkill
- dsh-trim-cot-leakageSkill
- e2e-case-lifecycleSkill
- feature-boundary-plannerSkill
- implementing-domain-driven-designSkill
- patterns-of-enterprise-application-architectureSkill
- record-browser-gifSkill
- refactoring-guruSkill
- refactoringSkill
- release-itSkill
- the-pragmatic-programmerSkill
- working-effectively-with-legacy-codeSkill
- super-arch-docSkill
- super-archifySkill
- super-asd-ste100Skill
- super-ask-azhouSkill
- super-azhou-doctorSkill
- super-azhou-infoSkill
- super-azhou-setupSkill
- super-azhou-verifySkill
- super-brainstormingSkill
- super-diagram-designSkill
- super-eli5Skill
- super-excalidraw-diagramSkill
- super-frontend-designSkill
- super-gh-axiSkill
- super-grill-meSkill
- super-i-have-adhdSkill
- super-imagegenSkill
- super-lavishSkill
- super-rederiveSkill
- super-repo-pedantSkill
- super-session-insightsSkill
The file
Files
dsh-ci-test-reliability
本 Skill 仅用于当前项目。用户授权、项目 AGENTS.md 和实际宿主能力优先。
设计与审查
先读真实测试配置与 CI 工作流,区分同文件、不同 worker、独立测试进程、共享宿主的不同 job。进程隔离不隔离端口、固定路径、数据库、socket 和子进程;不要因一个夹具缺陷把整套测试串行化。
每个资源写清所有者、原子分配、就绪、注册清理和完全结束信号:
- 网络用 loopback 绑定端口
0,监听成功后读取实际地址;不先“查空闲端口”再绑定。目录用私有临时根/独占创建,数据库、会话与输出用唯一命名空间。记录中的稳定 URL/路径若仅作解析输入,不需要随机化;通过 fixture 映射到临时资源。 - 环境变量、cwd、fake timer、locale/timezone、mock、global、console/fetch hook 都是排他的可变资源。优先注入或实例作用域;必要修改时立即注册恢复,精确保存 absent/present/empty,在最小 try/finally 中恢复,按失败路径增加清理兜底。
- 用事件、握手、状态、owned promise 或屏障同步;超时只限制等待,不证明条件成立。被测 deadline 与外层测试 deadline 留足距离,case 与 setup/teardown 预算一起按真实 CI lane 设置。
- 获取后立刻注册清理;停止准入、解除监听、取消工作并等待子进程退出、server close、worker termination 等静止信号。证明晚到结果不会污染下一测试。
- 尊重平台差异:mtime 写回可能舍入,依赖其数值时重新读取;Windows 环境键大小写不独立,文件句柄释放可能延迟,POSIX 权限/信号不能照搬。确实不适用的场景具名 skip,不全平台削弱断言。针对已测文件争用的有界重试须说明资源及等待条件。
诊断既有偶发失败
冻结 workflow/job、SHA、runner、时间、命令、首个稳定失败特征和日志链接。比较同 SHA 的失败/通过运行;不同 SHA 先确认相关代码和配置等同。一次通过不能证明是基础设施,单次超时不能证明产品竞争。
按证据区分:宿主资源碰撞、清理未完成、全局污染、负载敏感同步、平台/入口差异、产品竞争、外部提供方瞬态、runner 基础设施。超时、signal、exit status 与断言分别记录;缺宿主指标就报告缺口。
从单例 → 同进程并发 → 独立进程并发 → 实际 gate → 共享宿主 jobs 逐步扩展到最小相关拓扑。不用随机负载或降低产品超时制造另一种失败。目标平台不可用时止于可达层,保留 CI 证据,不用 macOS 通过替代 Windows 复现。诊断请求保持只读,不擅自重跑远端 workflow 或改 CI。
证明修复
授权修复时改分配、就绪、全局变更或清理的实际 owner。普通回归尽量先见旧版失败;静态 guard 加真实 runner 的负对照;竞争用屏障证明重叠;跨进程资源用独立进程并发验证。子进程先断言未被信号/超时终止,再判断退出码。
压力重复只作补充。拒绝无根因的加 sleep、自动重试、全局串行、吞异常、放宽断言或快照归一化;恢复原 CI 预算、已测争用等待和按合同处理外部 API 瞬态是不同情况。报告准确命令、原特征、前后结果与未覆盖拓扑,不把 skipped/pending 说成通过。
来源、适配边界和许可证见 provenance.md。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

