Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

Fix failing GitHub Actions workflow Integration: Workflow Misc Part 2 ✅ COMPLETE

All issues identified and fixed successfully!

Issue 1: Deprecated fields validation (TestStrictModeDeprecatedFields) ✅ FIXED

  • Analyze root cause: timeout_minutes not in schema causes "Unknown property" error before deprecated field check
  • Add timeout_minutes to schema as deprecated field with replacement suggestion
  • Rebuild binary to embed updated schema
  • Test deprecated fields validation - ALL TESTS PASSING

Issue 2: Template expression placeholders (TestTemplateExpressionWrappingIntegration, TestTemplateWithMixedExpressionsAndLiterals) ✅ FIXED

  • Analyze root cause: Tests expected placeholders in compiled YAML, but main workflow uses runtime-import
  • Add JavaScript functions to extract expressions and replace with placeholders at runtime
  • Update integration tests to check for runtime-import macro and GitHub context placeholders
  • Test template expression wrapping - ALL TESTS PASSING

Additional fixes:

  • Updated action pins count test (42 → 43 pins)
  • Updated parser test to reflect timeout_minutes as deprecated field

Final validation ✅ COMPLETE

  • All three originally failing tests now pass
  • Run make fmt - ✅ PASS
  • Run make lint - ✅ PASS
  • Run make test-unit - ✅ PASS
Original prompt

Fix the failing GitHub Actions workflow Integration: Workflow Misc Part 2
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 62015766178
Job URL: https://github.com/githubnext/gh-aw/actions/runs/21521940395/job/62015766178


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 30, 2026 16:09
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Added extractAndReplacePlaceholders() and generatePlaceholderName() to runtime_import.cjs to convert template conditionals with GitHub expressions to placeholders
- Updated integration tests to reflect that main workflow markdown uses runtime-import, so placeholders are generated at runtime, not during compilation
- Tests now check for placeholders in the GitHub context section (which is in compiled YAML) and verify runtime-import macro is present for user content

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Updated TestGetActionPinsSorting to expect 43 pins instead of 42
- Updated TestGetMainWorkflowDeprecatedFields to expect timeout_minutes in deprecated list
- This allows strict mode to properly detect and reject deprecated timeout_minutes field

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review January 30, 2026 16:32
@pelikhan pelikhan merged commit f1350d1 into copilot/add-support-import-github-actions Jan 30, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/fix-workflow-failure-part-2 branch January 30, 2026 16:32
Copilot AI requested a review from pelikhan January 30, 2026 16:33
Copilot stopped work on behalf of pelikhan due to an error January 30, 2026 16:33
pelikhan added a commit that referenced this pull request Jan 30, 2026
…2775)

* Initial plan

* Add YAML workflow import support - parser and validation

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add jobs merging from YAML workflow imports

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add example workflow demonstrating YAML import and fix lint issues

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add documentation for YAML workflow import feature

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Delete YAML_IMPORT_FEATURE.md documentation file

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Update action pins after recompile

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Use license-check.yml as example for YAML import instead of custom example

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* [WIP] Fix the failing GitHub Actions workflow Integration: Misc Part 2 (#12784)

* Initial plan

* Initial analysis of failing Integration: Workflow Misc Part 2 tests

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Fix deprecated fields validation by adding timeout_minutes to schema

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Fix template expression wrapping and update integration tests

- Added extractAndReplacePlaceholders() and generatePlaceholderName() to runtime_import.cjs to convert template conditionals with GitHub expressions to placeholders
- Updated integration tests to reflect that main workflow markdown uses runtime-import, so placeholders are generated at runtime, not during compilation
- Tests now check for placeholders in the GitHub context section (which is in compiled YAML) and verify runtime-import macro is present for user content

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Fix action pins count and update parser test for timeout_minutes

- Updated TestGetActionPinsSorting to expect 43 pins instead of 42
- Updated TestGetMainWorkflowDeprecatedFields to expect timeout_minutes in deprecated list
- This allows strict mode to properly detect and reject deprecated timeout_minutes field

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
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