Concurrent transforms with the same source and/or transform file can fail
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 50/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- powershell
- 领域
- build-system, tooling
调研方向
定位在 JSON 转换期间打开源文件和转换文件的代码,然后检查并行 MSBuild 执行如何共享这些句柄。使用多目标并行构建重现该问题,并验证当文件允许共享读取时,并发转换能够完成且不会出现间歇性失败。
由索引模型根据 Issue 内容生成。
描述
When using slow cheetah to transform json files we discovered that the transforms would fail intermittently. This was particularly frequent when building a project targeting multiple frameworks (net461 and netcore2.1 in this instance). The parallel build behaviour of msbuild meant it would regularly attempt to perform the same transforms at the same time (once for each target framework).
This would result in msbuild output similar to:
[17:52:50] [Step 6/12] 2>UpdateLocalAppSettings:
[17:52:50] [Step 6/12] Beginning transformation.
[17:52:50] [Step 6/12] 15>UpdateLocalAppSettings:
[17:52:50] [Step 6/12] Beginning transformation.
[17:52:50] [Step 6/12] Transformation failed.
This seems to be caused by the source file being opened with exclusive access for the duration of the transform. The files need to be opened with a FileShare mode of Read to allow concurrent transformations.
- 主要语言
- PowerShell
- 星标
- 117
- 派生
- 38
- 平均合并
- 5 天 52 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/json-document-transforms 的其他 Issue
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 38/100
-
难度 2/5 1-3 小时 新手友好度 52/100
-
难度 4/5 3-5 天 新手友好度 25/100
查看 microsoft/json-document-transforms 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
PhyberApex/slds-json-schema-renderer#371 ·
维护者通常 1 天内回复
-
CI: two jobs fail on the new ubuntu-latest (Ubuntu 26.04) runner image可能已有人在做 @bjarthur 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
grafana/tempo-operator#1691 ·
维护者通常 1 天内回复
-
v9.6.0: CMake incorrectly enforces presence of libevdev可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
luis-guillen/airy#2 ·