fix: use AWFProxyLogsDir constant in generateSquidLogsUploadStep#32294
Merged
Conversation
4 tasks
…r constant Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…r constant Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix AWFProxyLogsDir constant usage in engine_firewall_support.go
fix: use AWFProxyLogsDir constant in generateSquidLogsUploadStep
May 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Replaces a hardcoded firewall logs directory path in generateSquidLogsUploadStep with the constants.AWFProxyLogsDir constant to keep the upload step in sync with generateFirewallLogParsingStep and prevent future drift.
Changes:
- Use
constants.AWFProxyLogsDir + "/"instead of the hardcoded"/tmp/gh-aw/sandbox/firewall/logs/"literal. - Regenerated
.github/workflows/linter-miner.lock.yml(unrelated compiler output regeneration).
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/engine_firewall_support.go | Replaces hardcoded firewall logs path with the shared constant. |
| .github/workflows/linter-miner.lock.yml | Regenerated lock file with various unrelated compiler updates. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
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.
Bug Fix
What was the bug?
generateSquidLogsUploadStephardcoded"/tmp/gh-aw/sandbox/firewall/logs/"while its siblinggenerateFirewallLogParsingStepcorrectly usedconstants.AWFProxyLogsDir. The two sites were accidentally in sync today, but any future change to the constant would silently leave the upload step pointing at a stale path, causing it to upload an empty/missing directory.How did you fix it?
One-line change in
pkg/workflow/engine_firewall_support.go:The trailing slash required by
actions/upload-artifact'spath:field is appended at the use site — consistent withcompiler_yaml_main_job.gowhich does the same (constants.AWFProxyLogsDir + "/").Testing
All
pkg/workflowtests pass. Generated YAML output is unchanged since the constant value matches the former literal.