Skip to content

Adjust outputs written to issues for previous rename of artifact from agent-artifacts to agent#22127

Merged
dsyme merged 4 commits intomainfrom
an
Mar 21, 2026
Merged

Adjust outputs written to issues for previous rename of artifact from agent-artifacts to agent#22127
dsyme merged 4 commits intomainfrom
an

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Mar 21, 2026

Summary

  • Adjust outputs written to issues for previous rename of artifact from agent-artifacts to agent
  • Updated all gh run download CLI instructions in PR comments, fallback markdown templates, and error-handling scripts to reference the new agent artifact name and local download path /tmp/agent-{run_id}
  • Removed stale auto-generated artifact reference docs (scratchpad/artifacts.md, specs/artifacts.md) and trimmed verbose checkout: documentation in favor of cross-reference links

Copilot AI review requested due to automatic review settings March 21, 2026 12:49
Copy link
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

This PR standardizes the GitHub Actions artifact name by renaming agent-artifacts to agent across workflows, test fixtures, scripts, and user-facing guidance, while also removing legacy artifact reference documentation.

Changes:

  • Renamed the unified artifact from agent-artifacts to agent in templates, golden fixtures, and JS/Go tooling.
  • Updated gh run download instructions and patch application paths to use the new artifact name.
  • Removed an auto-generated artifact location reference document.

Reviewed changes

Copilot reviewed 16 out of 18 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
scratchpad/safe-output-messages.md Updates user-facing patch download/apply instructions to reference agent.
scratchpad/artifacts.md Removes auto-generated artifact location reference (previously documented agent-artifacts).
pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/smoke-test-tools.golden Updates golden workflow fixture to upload agent artifact.
pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/claude-with-network.golden Updates golden workflow fixture to upload agent artifact.
pkg/workflow/test-yaml-import.lock.yml Updates lock fixture to upload agent artifact.
pkg/workflow/artifact_manager.go Updates inline documentation example to agent.
pkg/parser/remote_fetch.go Changes HTTP error-path handling for raw URL downloads.
pkg/cli/logs_flatten_test.go Updates tests to expect unified artifact directory named agent.
pkg/cli/logs_download.go Updates comment to reflect unified agent artifact flattening.
pkg/cli/logs_awinfo_resolution_test.go Updates tests to expect unified artifact directory named agent.
docs/src/content/docs/reference/frontmatter.md Trims checkout docs and updates timeout-minutes reference text.
actions/setup/md/manifest_protection_push_to_pr_fallback.md Updates fallback instructions to download/apply from agent.
actions/setup/md/manifest_protection_push_failed_fallback.md Updates fallback instructions to download/apply from agent.
actions/setup/js/setup_threat_detection.cjs Updates internal comments to reference agent artifact.
actions/setup/js/handle_agent_failure.test.cjs Updates test expectation for new artifact name.
actions/setup/js/handle_agent_failure.cjs Updates failure guidance to download/use agent artifact paths.
actions/setup/js/create_pull_request.cjs Updates PR-creation guidance to download/use agent artifact paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +271 to 272
agentArtifactsDir := filepath.Join(tmpDir, "agent")
if _, err := os.Stat(agentArtifactsDir); err == nil {
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

The variable name agentArtifactsDir no longer matches the directory it points to (agent). Renaming it to something like agentDir (or unifiedArtifactDir) would reduce confusion, especially since this code was updated as part of the artifact rename.

Suggested change
agentArtifactsDir := filepath.Join(tmpDir, "agent")
if _, err := os.Stat(agentArtifactsDir); err == nil {
agentDir := filepath.Join(tmpDir, "agent")
if _, err := os.Stat(agentDir); err == nil {

Copilot uses AI. Check for mistakes.
@dsyme dsyme changed the title 📦 Rename artifact from agent-artifacts to agent Adjust outputs written to issues for previous rename of artifact from agent-artifacts to agent Mar 21, 2026
@dsyme dsyme merged commit c069877 into main Mar 21, 2026
53 checks passed
@dsyme dsyme deleted the an branch March 21, 2026 13:25
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.

2 participants