Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

The upgrade command updated agent files and applied codemods but left workflows uncompiled, requiring a manual gh aw compile afterward. This makes upgrade an incomplete operation.

Changes

  • Compilation step: Added compileAllWorkflowFiles after codemod phase to generate lock files
  • Error handling: Compilation errors are non-fatal warnings, consistent with codemod behavior
  • Flag semantics: --no-fix now skips both codemods and compilation (was only codemods)
  • Help text: Updated to reflect compilation is included, removed manual compile instructions

Behavior

# Now completes the full upgrade cycle
gh aw upgrade
# 1. Updates agent/prompt files
# 2. Applies codemods 
# 3. Generates lock files ← NEW

# Skip non-essential steps
gh aw upgrade --no-fix
# Only updates agent/prompt files

Tests verify lock files are created during upgrade and that --no-fix correctly skips compilation.

Original prompt

Make sure the upgrade command also compiles all agentic-workflows.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Implement compilation step after codemods in upgrade command
- Use compileAllWorkflowFiles to compile all workflows
- Handle compilation errors as non-fatal warnings (like codemods)
- Update help text to reflect compilation is now included
- Update --no-fix flag description to mention skipping compilation
- Add tests for compilation behavior in upgrade command
- Add test to verify lock files are created after upgrade
- Add test to verify --no-fix skips compilation

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update upgrade command to compile agentic workflows Add workflow compilation to upgrade command Jan 22, 2026
Copilot AI requested a review from pelikhan January 22, 2026 00:42
@pelikhan pelikhan marked this pull request as ready for review January 22, 2026 00:43
@pelikhan pelikhan merged commit e78b897 into main Jan 22, 2026
@pelikhan pelikhan deleted the copilot/update-upgrade-command branch January 22, 2026 00:43
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