Repository navigation
[log] Add debug logging to NVX, AWF model policy, work-queue, checkout-ref warning, and grader loader - #75592
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review found no active approval-blocking issues, with the remaining debug-log exposure concerns identified as moderate and non-blocking.
No open issues 🎉
What changed in this PR
Adds DEBUG-gated, namespace-specific logging to five workflow and grader-loading components without changing normal runtime behavior.
Changes:
- Logs NVX validation, resource limits, and setup-step decisions.
- Logs model-policy resolution, work-queue configuration, and worker-profile discovery.
- Logs checkout-reference analysis and shell-grader loading diagnostics.
- Two moderate issues remain: checkout YAML parse errors and missing-shebang diagnostics may expose substantial workflow or grader source content in debug logs; these should be sanitized or truncated.
| File | Summary |
|---|---|
pkg/workflow/work_queue_repo_config.go |
Logs work-queue configuration paths and discovered worker profiles. |
pkg/workflow/nvx.go |
Logs NVX validation, resource limits, and setup-step generation decisions. |
pkg/workflow/gradershell/load.go |
Logs grader source resolution and validation outcomes. Moderate finding: the missing-shebang log may include up to 64 KiB of source content. |
pkg/workflow/checkout_ref_warning.go |
Logs checkout warning checks and parsing decisions. Moderate finding: raw YAML parse errors may include workflow-provided content. |
pkg/workflow/awf_config_policy.go |
Logs model-policy inputs and resolved rule counts. |
Review effort: Lite (auto)
Contributor
Author
|
🎉 This pull request is included in a new release. Release: |
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.
Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection results could not be parsed.
Review the workflow run logs to troubleshoot the error.
Summary
Adds
pkg/loggerdebug logging to five files inpkg/workflowthat had no logging at all. All output is gated byDEBUG, and none of the log arguments call functions or have side effects.pkg/workflow/nvx.goworkflow:nvxpkg/workflow/awf_config_policy.goworkflow:awf_config_policypkg/workflow/work_queue_repo_config.goworkflow:work_queue_repo_configaw.jsonwork_queue.issuesis applied, the legacy policy path, and the number of discovered worker profilespkg/workflow/checkout_ref_warning.goworkflow:checkout_ref_warningpkg/workflow/gradershell/load.gogradershell:loadNotes
actionpins,agentdrain) already had loggers and were processed in earlier runs. I verified the files with grep instead and picked ones with no logging.Validation
make build && make fmtpassed (exit code 0).🤖 Generated with [Claude Code]((claude.com/redacted)