Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

Tests in close_expired_discussions.test.cjs and close_expired_pull_requests.test.cjs failed because the implementation now checks for XML comment workflow markers (gh-aw-workflow-id: or gh-aw-agentic-workflow:), but test data still used legacy text markers ("> AI generated by Test Workflow").

Changes

  • Added <!-- gh-aw-workflow-id: test-workflow --> to 6 test discussions in close_expired_discussions.test.cjs
  • Added <!-- gh-aw-workflow-id: test-workflow --> to 5 test pull requests in close_expired_pull_requests.test.cjs

The XML markers align test data with the current implementation's entity detection logic in expired_entity_search_helpers.cjs:

const hasWorkflowId = entity.body && entity.body.includes("gh-aw-workflow-id:");
const hasAgenticWorkflow = entity.body && entity.body.includes("gh-aw-agentic-workflow:");
const isAgenticWorkflow = hasWorkflowId || hasAgenticWorkflow;
Original prompt

Fix the failing GitHub Actions workflow js
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 62234063114
Job URL: https://github.com/githubnext/gh-aw/actions/runs/21597526255/job/62234063114


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@pelikhan pelikhan marked this pull request as ready for review February 2, 2026 16:20
Add gh-aw-workflow-id markers to test discussions and pull requests
so they are recognized by the new searchEntitiesWithExpiration helper
which checks for XML comment markers instead of the old text-based markers.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the failing GitHub Actions workflow Fix test failures by adding workflow markers to test data Feb 2, 2026
Copilot AI requested a review from pelikhan February 2, 2026 16:22
@pelikhan pelikhan merged commit 41ca776 into main Feb 2, 2026
146 checks passed
@pelikhan pelikhan deleted the copilot/fix-github-actions-workflow-one-more-time branch February 2, 2026 16:26
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