Revision validation failure reasons expose internal exception details
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 9
- Fork
- 0
- Merge trung bình
- 18 giờ 59 phút
- Pull request đã merge (30 ngày)
- 93
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của netbox-community/netbox-scripts
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
netbox-community/netbox-scripts#281 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netbox-community/netbox-scripts#244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Correct the documentation of a Project's current revisionCó thể đã có người làm @pheus đã nhận hôm nay. Đang mởapp: scripts Bucket: KTLO status: accepted type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
netbox-community/netbox-scripts#233 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts complexity: medium status: backlog type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
netbox-community/netbox-scripts#229 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts status: backlog type: housekeeping
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
netbox-community/netbox-scripts#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của netbox-community/netbox-scripts
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
bad-antics/lateralus-lang#1623 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
fossguild/thelifesnake#82 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pietbarber/Manage2Soar#1189 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinatesCó thể đã có người làm @dtgaebe đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sandialabs/WecOptTool#467 ·