Skip to content

fix: use AWFProxyLogsDir constant in generateSquidLogsUploadStep#32294

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-awfproxylogsdir-usage
May 15, 2026
Merged

fix: use AWFProxyLogsDir constant in generateSquidLogsUploadStep#32294
pelikhan merged 3 commits into
mainfrom
copilot/fix-awfproxylogsdir-usage

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 15, 2026

Bug Fix

What was the bug?

generateSquidLogsUploadStep hardcoded "/tmp/gh-aw/sandbox/firewall/logs/" while its sibling generateFirewallLogParsingStep correctly used constants.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:

// Before
firewallLogsDir := "/tmp/gh-aw/sandbox/firewall/logs/"

// After
firewallLogsDir := constants.AWFProxyLogsDir + "/"

The trailing slash required by actions/upload-artifact's path: field is appended at the use site — consistent with compiler_yaml_main_job.go which does the same (constants.AWFProxyLogsDir + "/").

Testing

All pkg/workflow tests pass. Generated YAML output is unchanged since the constant value matches the former literal.

Copilot AI and others added 2 commits May 15, 2026 05:31
…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
Copilot AI requested a review from pelikhan May 15, 2026 05:34
@pelikhan pelikhan marked this pull request as ready for review May 15, 2026 05:40
Copilot AI review requested due to automatic review settings May 15, 2026 05:40
@pelikhan pelikhan merged commit 27f07dd into main May 15, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/fix-awfproxylogsdir-usage branch May 15, 2026 05:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@github-actions github-actions Bot mentioned this pull request May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AWFProxyLogsDir constant bypassed by sibling function in same file

3 participants