Skip to content

Add PR workflow to suggest impacted Teleport features for manual regression testing#64080

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/add-pr-workflow-for-feature-testing
Draft

Add PR workflow to suggest impacted Teleport features for manual regression testing#64080
Copilot wants to merge 3 commits intomasterfrom
copilot/add-pr-workflow-for-feature-testing

Conversation

Copy link

Copilot AI commented Feb 25, 2026

This PR adds an automated PR-time analysis that maps changes to a provided Teleport feature matrix and comments with targeted manual test suggestions. It runs whenever a PR is created or updated, using changed files plus PR text to infer potentially impacted features.

  • New workflow

    • Added .github/workflows/feature-impact.yaml.
    • Triggers on pull_request_target for: opened, reopened, synchronize, edited, ready_for_review.
    • Configured minimal token scope (pull-requests: write) and per-PR concurrency to avoid duplicate runs.
  • Agentic feature-impact matching

    • Embedded the provided feature matrix (IDs, keywords, path hints, relevant paths, relationships, docs).
    • Computes direct feature matches from:
      • path-prefix matches against relevant_paths
      • substring/path-hint matches against paths_hint
      • keyword matches in PR title/body
    • Expands suggestions through matrix relationships:
      • depends_on, gated_by, optionally_gated_by, emits, related_to
  • PR comment behavior

    • Posts a structured “Suggested manual feature testing” comment.
    • Includes match rationale and doc links per feature.
    • Uses a marker comment and updates in place on subsequent PR events (idempotent, single bot comment).

Example from the workflow logic:

on:
  pull_request_target:
    types: [opened, reopened, synchronize, edited, ready_for_review]
const relationFields = ['depends_on', 'gated_by', 'optionally_gated_by', 'emits', 'related_to'];
// direct match scoring from changed files + PR text, then relation expansion for related impacts

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

Copilot AI and others added 2 commits February 25, 2026 01:24
Co-authored-by: eriktate <13452083+eriktate@users.noreply.github.com>
Co-authored-by: eriktate <13452083+eriktate@users.noreply.github.com>
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub/​actions/​github-script@​ed597411d8f924073f98dfc5c65a23a2325f34cd100100100100100

View full report

Copilot AI changed the title [WIP] Add workflow for PR feature impact analysis Add PR workflow to suggest impacted Teleport features for manual regression testing Feb 25, 2026
Copilot AI requested a review from eriktate February 25, 2026 01: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