Skip to content

Conversation

@anth-volk
Copy link
Collaborator

Fixes #3101

Summary

Removes deprecated GCP-related simulation API code following the migration of simulation workloads to Modal and the sunset of GCP infrastructure.

Changes

Deleted Files

  • policyengine_api/libs/simulation_api.py - Old GCP Workflows client
  • policyengine_api/libs/simulation_api_factory.py - Factory pattern for switching between GCP/Modal
  • .github/request-simulation-model-versions.sh - GCP Workflows execution script referencing defunct project
  • tests/unit/libs/test_simulation_api_factory.py - Factory unit tests
  • tests/fixtures/libs/simulation_api_factory.py - Factory test fixtures

Modified Files

  • policyengine_api/services/economy_service.py - Now imports simulation_api_modal directly instead of using factory
  • policyengine_api/libs/simulation_api_modal.py - Updated docstrings to remove GCP references
  • policyengine_api/constants.py - Removed GCP execution status constants (kept Modal-only)
  • setup.py - Removed google-cloud-workflows dependency
  • tests/fixtures/services/economy_service.py - Already Modal-only, no changes needed

Test plan

  • Verify unit tests pass
  • Verify integration tests pass against Modal simulation API

🤖 Generated with Claude Code

@anth-volk anth-volk requested a review from SakshiKekre January 20, 2026 11:15
@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.53%. Comparing base (e1c61f2) to head (5f0b175).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3102      +/-   ##
==========================================
- Coverage   70.73%   70.53%   -0.20%     
==========================================
  Files          57       55       -2     
  Lines        2443     2386      -57     
  Branches      341      339       -2     
==========================================
- Hits         1728     1683      -45     
+ Misses        654      642      -12     
  Partials       61       61              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

anth-volk and others added 5 commits January 20, 2026 22:11
- Delete GCP Workflows simulation client (simulation_api.py)
- Remove simulation API factory pattern, use Modal API directly
- Remove google-cloud-workflows dependency from setup.py
- Clean up GCP-related constants from constants.py
- Update economy_service to import simulation_api_modal directly
- Delete deprecated GCP Workflows script (request-simulation-model-versions.sh)
- Remove factory-related test fixtures and unit tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add changelog entry for GCP simulation API removal
- Add MOCK_EXECUTION_ID alias in test fixtures for compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Apply black formatting
- Add trailing newlines to __init__.py files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace GCP-style status values (SUCCEEDED, FAILED, ACTIVE) with
Modal-style values (complete, failed, running) in economy service tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@anth-volk anth-volk force-pushed the chore/remove-deprecated-gcp-code branch from 53d6692 to af95d34 Compare January 20, 2026 19:11
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.

Remove deprecated GCP simulation API code

2 participants