Commit graph

3 commits

Author SHA1 Message Date
Nick Misasi
926b6f3483 chore(10-02): add CI-friendly integration test runner scripts
Create shell scripts for consistent test invocation across CI environments:

Python script (python-sdk/scripts/run_integration_tests.sh):
- Auto-detects virtual environment or uses system Python
- Installs package in editable mode if not present
- Runs test_integration_e2e.py with verbose output
- Supports passing extra pytest arguments

Go script (server/public/pluginapi/grpc/scripts/run_integration_tests.sh):
- Runs from the correct module directory
- Filters to TestPythonPlugin and TestIntegration tests
- Disables test caching for clean CI runs
- Supports passing extra go test arguments

Both scripts:
- Are executable (chmod +x)
- Print diagnostic information (working dir, version)
- Exit with appropriate error codes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 15:36:57 -05:00
Nick Misasi
f66cfeb78d feat(06-02): add coverage audit script for RPC/method parity
Add audit_client_coverage.py that verifies all gRPC RPCs have
corresponding Python client methods:

- Extracts RPC names from generated gRPC stub source
- Compares against PluginAPIClient public methods
- Supports --include/--exclude regex filters for scoping
- Reports coverage percentage and missing methods

Usage:
  python scripts/audit_client_coverage.py --include '(User|Team|Channel)'

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 09:55:10 -05:00
Nick Misasi
aae96ff737 feat(06-01): add protobuf code generation script
Add generate_protos.py script that:
- Generates Python and gRPC code from .proto files
- Generates mypy type stubs via mypy-protobuf
- Fixes imports to use package-relative imports
- Outputs to src/mattermost_plugin/grpc/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 14:44:35 -05:00