Skip to content

Remove Upload Config step generation from Copilot engine - #1067

Merged
pelikhan merged 5 commits into
mainfrom
copilot/fix-b5de4762-6bf9-4cb7-8cd4-020990da6a19
Sep 27, 2025
Merged

pelikhan merged 5 commits into
mainfrom
copilot/fix-b5de4762-6bf9-4cb7-8cd4-020990da6a19

Conversation

Copilot AI commented Sep 27, 2025 •

Copy link
Copy Markdown
Contributor

Removes the automatic generation of the "Upload Config" step in the Copilot engine's workflow execution steps.

Problem

The Copilot engine was automatically generating an "Upload Config" step that uploaded the /tmp/.copilot/ directory as a GitHub Actions artifact. This step was unnecessary and added overhead to workflow executions.

Solution

  • Removed generateUploadConfigStep() method - Eliminated the function that was creating the upload artifact step
  • Removed upload step injection - Removed the code in GetExecutionSteps() that was automatically adding the upload config step to all Copilot workflows
  • Updated test expectations - Modified all related tests to expect 2 steps instead of 3, adjusting step indices accordingly

Impact

The Copilot engine now generates a cleaner workflow with exactly 2 steps:

  1. "Execute GitHub Copilot CLI" - The main execution step with all tool arguments, environment variables, and MCP configuration intact
  2. "Ensure log file exists" - The log capture step for debugging purposes

Before this change, workflows included an unnecessary third step:

- name: Upload config
  if: always()
  uses: actions/upload-artifact@v4
  with:
    name: config
    path: /tmp/.copilot/
    if-no-files-found: ignore

This step is now removed, reducing workflow complexity and execution time while preserving all essential functionality including tool permissions, environment setup, and logging capabilities.

Testing

  • All 158 unit tests pass
  • All 41 workflow compilation tests pass
  • Manual verification confirms correct step generation
  • Build, formatting, and linting validations complete successfully
Original prompt

Remove the code generation of the "Upload Config" step.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Remove the code generation of the "Upload Config" step. Remove Upload Config step generation from Copilot engine Sep 27, 2025
Copilot AI requested a review from pelikhan September 27, 2025 10:21
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