Skip to content

Conversation

sestinj
Copy link
Contributor

@sestinj sestinj commented Aug 31, 2025

Description

Disabling this until we have the cubic response workflow running smoothly, but once enabled this will automatically attempt to solve failing tests on PRs


Summary by cubic

Adds a GitHub Actions workflow to auto-fix failing tests on PRs using the Continue CLI. It’s disabled for now while we stabilize the cubic response flow and replaces the older comment-responder workflow.

  • New Features

    • Introduces .github/workflows/auto-fix-failed-tests.yml that triggers after PR Checks/CLI PR Checks fail (currently gated with if: false && …).
    • Collects failed job logs, checks out the failing commit, sets up Node 20, installs @continuedev/cli, and starts a remote session (logs the session URL).
  • Refactors

    • Removes extensions/cli/.github/workflows/respond-to-cubic-dev-ai.yml (the @continuedev comment/review responder).

@sestinj sestinj requested a review from a team as a code owner August 31, 2025 23:40
@sestinj sestinj requested review from tingwai and removed request for a team August 31, 2025 23:40
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 31, 2025
Copy link

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

3 issues found across 2 files

React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.

permissions:
contents: write
pull-requests: write
issues: write
Copy link
Contributor

Choose a reason for hiding this comment

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

Downgrade issues permission to read since the workflow doesn't modify issues.

Prompt for AI agents
Address the following comment on .github/workflows/auto-fix-failed-tests.yml at line 12:

<comment>Downgrade issues permission to read since the workflow doesn&#39;t modify issues.</comment>

<file context>
@@ -0,0 +1,170 @@
+permissions:
+  contents: write
+  pull-requests: write
+  issues: write
+  actions: read
+
</file context>


permissions:
contents: write
pull-requests: write
Copy link
Contributor

Choose a reason for hiding this comment

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

Reduce pull-requests permission to read to follow least-privilege (no PR write operations are performed).

Prompt for AI agents
Address the following comment on .github/workflows/auto-fix-failed-tests.yml at line 11:

<comment>Reduce pull-requests permission to read to follow least-privilege (no PR write operations are performed).</comment>

<file context>
@@ -0,0 +1,170 @@
+
+permissions:
+  contents: write
+  pull-requests: write
+  issues: write
+  actions: read
</file context>


- name: Checkout repository
if: steps.workflow-details.outputs.has_failed_tests == 'true'
uses: actions/checkout@v4
Copy link
Contributor

Choose a reason for hiding this comment

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

Checkout may fail for forked PRs because it doesn't set repository to the PR's head repository; head_sha might not exist in the base repo.

Prompt for AI agents
Address the following comment on .github/workflows/auto-fix-failed-tests.yml at line 92:

<comment>Checkout may fail for forked PRs because it doesn&#39;t set repository to the PR&#39;s head repository; head_sha might not exist in the base repo.</comment>

<file context>
@@ -0,0 +1,170 @@
+
+      - name: Checkout repository
+        if: steps.workflow-details.outputs.has_failed_tests == &#39;true&#39;
+        uses: actions/checkout@v4
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
</file context>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant