Skip to content

Conversation

@cedricbu
Copy link
Collaborator

This commit integrates GCP export verification into the test_vapi e2e test using a local GCS emulator (fake-gcs-server) to avoid requiring real GCP credentials in CI/CD.

Changes:

  • Add fake-gcs-server deployment and service manifests (fake-gcs-server seems to be a reliable GCP emlator)
  • Configure rapidast-vapi to export results to GCS emulator
  • Implement verify_gcs_export_succeeded() function to validate exports
  • Deploy fake-gcs-server in test_vapi before running scan

Additional notes:

  • currently verify_gcs_export_succeeded() only verifies that at least 1 file was uploaded. Future improvement could verify its content

The fake-gcs-server emulator runs at http://fake-gcs-server:4443 and provides a local GCS-compatible API that the google-cloud-storage Python library automatically uses when STORAGE_EMULATOR_HOST is set.

🤖 Generated with Claude Code

This commit integrates GCP export verification into the test_vapi e2e test
using a local GCS emulator (fake-gcs-server) to avoid requiring real GCP
credentials in CI/CD.

Changes:
- Add fake-gcs-server deployment and service manifests
  (fake-gcs-server seems to be a reliable GCP emlator)
- Configure rapidast-vapi to export results to GCS emulator
- Implement verify_gcs_export_succeeded() function to validate exports
- Deploy fake-gcs-server in test_vapi before running scan

Additional notes:
- currently verify_gcs_export_succeeded() only verifies that at least 1
  file was uploaded. Future improvement could verify its content

The fake-gcs-server emulator runs at http://fake-gcs-server:4443 and
provides a local GCS-compatible API that the google-cloud-storage Python
library automatically uses when STORAGE_EMULATOR_HOST is set.

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

Co-Authored-By: Claude <[email protected]>
The readiness probe was failing because Kubernetes defaults to HTTPS
for httpGet probes, but fake-gcs-server is configured to use HTTP.

This fix explicitly sets scheme: HTTP in the readiness probe to match
the server configuration.
@sfowl
Copy link
Collaborator

sfowl commented Nov 10, 2025

I'm wondering if it would be simpler to instead have a test bucket in GCS and push test results there? That might also be closer to reality, I'm not sure how similar fake-gcs-server is to the real thing.

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