Skip to content

Farabi/feat--ai-test-case-pr#84

Open
farabi-deriv wants to merge 1 commit into
deriv-com:masterfrom
farabi-deriv:farabi/feat--ai-test-case-pr
Open

Farabi/feat--ai-test-case-pr#84
farabi-deriv wants to merge 1 commit into
deriv-com:masterfrom
farabi-deriv:farabi/feat--ai-test-case-pr

Conversation

@farabi-deriv
Copy link
Copy Markdown
Collaborator

This pull request introduces a new GitHub Actions workflow named ai-test-case-pr.yml to automate the generation of AI-driven test case pull requests. The workflow includes security checks, integration with Claude (Anthropic) for test generation, event logging, metrics dashboard reporting, and artifact uploads for traceability and auditing.

The most important changes are:

New Workflow for AI Test Case Generation

  • Added .github/workflows/ai-test-case-pr.yml to automate the creation of test case PRs using an AI model (Claude), triggered on workflow calls and parameterized by model and API keys.

Security & Access Control

  • Implemented a step to validate that the triggering user is either an organization member or a repository collaborator before proceeding with test generation.

Event Logging and Metrics Reporting

  • Integrated event logging throughout the workflow, including workflow start and completion, and optionally POSTs these events to a metrics dashboard API if configured.
  • Uploaded the accumulated event log as an artifact for auditing and traceability, with a retention period of 90 days.

Summary and Reporting

  • Enhanced job summary output with workflow metrics (e.g., PR number, test PR creation status, duration), and detailed event logs for transparency.

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.

1 participant