Revision validation failure reasons expose internal exception details
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by tracing how revision validation and validation Job messages construct failure reasons; the issue does not name specific files or tests. Check the related issues #119, #139, and #237 for context. Done means user-facing failures use explicitly constructed messages without exception class names or raw exception details, while diagnostic information remains available in server logs.
由索引模型根据 Issue 内容生成。
描述
Plugin Version
v0.2.0
NetBox Version
v4.7.6
Python Version
3.12
Steps to Reproduce
- Create an upload-backed Script Project with
deploy.pyselected as a Script File. - Upload
deploy.pycontainingimport netaddr.absent_submodule. - Wait for the validation Job to finish.
- Retrieve the revision through
/api/plugins/netbox-scripts/project-revisions/<revision_id>/and inspectlast_validation_failure.
Expected Behavior
The revision remains materialized and records a clear, actionable failure reason without exposing internal exception details.
The original exception is available in the server logs for troubleshooting. The same convention applies to the validation Job's user-facing messages.
Observed Behavior
The revision returns to materialized, but last_validation_failure contains the exception class name and its original message:
ScriptFileImportError: The script file "deploy.py" failed to import. No module named 'netaddr.absent_submodule'
Storage, cache, source corruption and timeout failures also expose exception class names or exception messages.
Failure reasons should consistently use explicitly constructed, user-facing messages while retaining useful diagnostic information.
Related: #119, #139 and #237.
- 主要语言
- Python
- 星标
- 9
- 派生
- 0
- 平均合并
- 18 小时 59 分钟
- 30 天内合并 PR
- 93
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
netbox-community/netbox-scripts 的其他 Issue
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
难度 1/5 1-3 小时 新手友好度 88/100
netbox-community/netbox-scripts#281 ·
维护者通常 1 天内回复
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
难度 2/5 1-3 小时 新手友好度 72/100
netbox-community/netbox-scripts#244 ·
维护者通常 1 天内回复
-
Correct the documentation of a Project's current revision可能已有人在做 @pheus 今天认领。 未关闭app: scripts Bucket: KTLO status: accepted type: documentation
难度 2/5 1-3 小时 新手友好度 86/100
netbox-community/netbox-scripts#233 · 已指派 1 人 ·
维护者通常 1 天内回复
-
app: scripts complexity: medium status: backlog type: feature
难度 2/5 1-3 小时 新手友好度 64/100
netbox-community/netbox-scripts#229 ·
维护者通常 1 天内回复
-
app: scripts status: backlog type: housekeeping
难度 2/5 1-3 小时 新手友好度 82/100
netbox-community/netbox-scripts#228 ·
维护者通常 1 天内回复
查看 netbox-community/netbox-scripts 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
bad-antics/lateralus-lang#1623 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
fossguild/thelifesnake#82 ·
维护者通常 1 天内回复
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" error未关闭good first issue
难度 2/5 1-3 小时 新手友好度 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
pietbarber/Manage2Soar#1189 ·
维护者通常 1 天内回复
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinates可能已有人在做 @dtgaebe 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
sandialabs/WecOptTool#467 ·