Async state and message handler
维护者通常 2 天内回复
还没有人认领这个 Issue。
- #1411 来自 @Nikhil172913832 —— 已关闭,未合并
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- testing-qa
调研方向
首先定位 state_handler 和 message_handler 入口点,并阅读当前如何调用同步函数。比较 asyncio、trio 和 curio 的要求,包括 ContextVar 和线程影响;当受支持的异步处理器能够正常工作、不会破坏现有同步处理器,并且有测试覆盖时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Description
Original suggestion by Val on Slack
To allow the state_handler and message_handler functions to handle asynchronous functions.
Motivation
These two functions are used to interface with code outside of Pact Python to setup/teardown states and generate messages. Especially in the case of the state setup and teardown, a common pattern would be to make a number of calls to (mocked or not) databases or other services to ensure they are in a particular state. These requests can be significantly sped up by running them in parallel, such as with an asyncio.gather call or using a task group.
Have you tried building it?
Not yet, but I will first open this issue and ask for anyone with specific examples to work towards.
While asynchronous function bring a number of advantages, they can also bring some complications. In particular:
- There are a number of underlying runtimes:
asyncio,trio,curio. If possible, it would be ideal to support all of these. - The use of threads has implications for
ContextVar(if used)
Self-service
- I'd be willing to contribute this feature to Pact Python myself.
- 主要语言
- Python
- 星标
- 685
- 派生
- 147
- 平均合并
- 4 天 8 小时
- 30 天内合并 PR
- 14
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pact-foundation/pact-python 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 42/100
pact-foundation/pact-python#1603 · 1 条评论 ·
维护者通常 2 天内回复
-
Post v3 tracking issue可能重新可做 @JP-Ellis 于 376 天前认领,目前没有进行中的 PR。 未关闭type:tracking
pact-foundation/pact-python#1272 · 已指派 1 人 ·
维护者通常 2 天内回复
-
area:documentation difficulty:easy type:chore
难度 3/5 1-2 天 新手友好度 48/100
pact-foundation/pact-python#1267 ·
维护者通常 2 天内回复
-
area:documentation difficulty:easy type:chore
难度 3/5 1-2 天 新手友好度 45/100
pact-foundation/pact-python#1266 · 2 条评论 ·
维护者通常 2 天内回复
-
(V3) Verifying a contract with a missing content field is always successful when it should error可能已有人在做 @JP-Ellis 于 375 天前认领。 未关闭area:core type:bug
pact-foundation/pact-python#1103 · 5 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
查看 pact-foundation/pact-python 的全部 Issue
相似的 Issue
-
bot-triaged module: LrScheduler module: optimizer triaged
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
documentation glm5 llm-model
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/vllm-ascend#19062 ·
维护者通常 1 天内回复
-
author-page correction
难度 2/5 1-3 小时 新手友好度 68/100
acl-org/acl-anthology#10496 · 1 条评论 ·
维护者通常 1 天内回复
-
Issue Type: Bug Report
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 76/100
SasanLabs/VulnerableApp#836 ·
维护者通常 1 天内回复