Repository navigation
LS-60: 拒绝重新提交已删除的任务版本 - #30
Merged
Merged
Conversation
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
删除任务后重新提交相同清单,原先会成功返回网页中已隐藏的旧任务。现在提交在同一数据库写事务中检查任务及删除标记,拒绝该版本并提示修改
submission_key或清单内容;CLI 返回非零退出码,不再输出成功回执或旧链接。已有任务和准备快照期间发生并发插入的路径使用相同判定。仍可见的重复提交返回同一 ID 和
created=False;未初始化控制表时仍可首次提交。删除记录、审计、队列修订号和已有文件保留,新版本从未批准的ready状态开始。并发安装快照时,已有非空任务目录可能引发
EEXIST或ENOTEMPTY。两种情况均保留已有目录并进入最终数据库事务,由删除标记决定拒绝或返回既有任务。其他文件系统错误继续抛出,临时快照会被清理。验证:隔离临时 HOME 和 TMPDIR,模拟平台,
python3 -m unittest discover -s tests -p 'test_*.py',157 项通过。11 项相关回归纳入现有 PR CI 执行的test_gpuqueue.py,覆盖 CLI、授权、历史记录保留、新版本、受屏障控制的并发顺序,以及两种目录冲突 errno 与可见/删除状态的四种组合。新增测试在修复前复现两条ENOTEMPTY失败路径,修复后通过。git diff --check main...HEAD通过。CI 限制:此前运行在
Verify the exact PR diff阶段退出,尚未执行单测。工作流要求固定发布提交b9e2c3e678fc2afa6eb5bf35ab20cc8d3587bd78是 head 的祖先;当前目标main(af51af510197d921b0cfd4452539e99ff04cd8e8)与本 PR 均不满足该门禁。以上 157 项为本地隔离测试结果。Closes LS-60