Skip to content

Conversation

@aliersh
Copy link
Contributor

@aliersh aliersh commented Oct 6, 2025

Adds a new manually-triggered CircleCI workflow to integrate the AI-powered contract test maintenance system into CI. This is a manual testing only. Scheduled runs will be added later.

Changes

  • Add ai_contracts_test_dispatch parameter for manual pipeline triggering via CircleCI API or UI
  • Add ai-contracts-test job that runs the full maintenance cycle (rank → render → devin)
  • Add ai-contracts-test-workflow that triggers only on manual dispatch
  • Store log.jsonl as CircleCI artifact for manual review and tracking
  • Fix socket timeout handling in Devin API client to prevent monitoring crashes
  • Use devin-api context for API credentials

Testing

Successfully tested manual trigger. Workflow executes all 3 steps and integrates with Devin API. The job opened this PR #17721

@aliersh aliersh requested a review from a team as a code owner October 6, 2025 14:56
@aliersh aliersh requested a review from zhwrd October 6, 2025 14:56
- add ai_contracts_test_dispatch parameter for manual pipeline triggering
- add ai-contracts-test job that runs just ai-contracts-test command
- add ai-contracts-test-workflow with manual dispatch only
- use devin-api context for Devin API credentials
- set 60 minute timeout for AI contract test execution
- add store_artifacts step to save log.jsonl from test runs
- add TimeoutError exception handling in _make_request function
- update version to 0.3.2
@aliersh aliersh force-pushed the ari/ai-eng-ctms-manual-ci branch from ce90800 to 8247c92 Compare October 6, 2025 14:57
@codecov
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.53%. Comparing base (4e726c6) to head (68f33f5).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #17730   +/-   ##
========================================
  Coverage    74.53%   74.53%           
========================================
  Files          173      173           
  Lines        11064    11064           
========================================
  Hits          8246     8246           
  Misses        2674     2674           
  Partials       144      144           
Flag Coverage Δ
cannon-go-tests-64 66.03% <ø> (ø)
contracts-bedrock-tests 81.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aliersh aliersh requested review from smartcontracts and removed request for zhwrd October 6, 2025 16:30
@mds1 mds1 enabled auto-merge October 6, 2025 19:14
@mds1 mds1 added this pull request to the merge queue Oct 6, 2025
Merged via the queue into develop with commit b69a6bb Oct 6, 2025
69 checks passed
@mds1 mds1 deleted the ari/ai-eng-ctms-manual-ci branch October 6, 2025 19:38
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.

3 participants