Skip to content

Fix failing integration tests (repo deploy, startup deploy, Docker build)#80

Merged
viferga merged 2 commits intometacall:masterfrom
miantalha45:fix-integration-test
Feb 10, 2026
Merged

Fix failing integration tests (repo deploy, startup deploy, Docker build)#80
viferga merged 2 commits intometacall:masterfrom
miantalha45:fix-integration-test

Conversation

@miantalha45
Copy link
Contributor

Summary

Fixes the integration test failures and Docker build issues reported in review.

Changes

Backend

  • src/controller/repository.ts: Normalize repository-derived names to lowercase so lookup matches regardless of URL casing.

Tests

  • test/test.sh:
    • Retry when fetching deployment prefix after repo deploy (up to 10×, 2s apart) to handle FaaS registration delay.
    • Increase readiness MAX_RETRIES from 5 to 30 so startup-deploy test has enough time for FaaS to load prior deployments.

Build / tooling

  • Dockerfile: Use FROM --platform=linux/amd64 so the image builds on Apple Silicon (aarch64), where the MetaCall installer is not supported and the Docker fallback is unavailable during build.
  • package.json / src/test/test.ts: ESLint and TypeScript fixes for the test file so lint and build pass.

Testing

  • Integration tests pass locally (including repo deploy and TEST_FAAS_STARTUP_DEPLOY=true).
  • Docker build succeeds on non-amd64 hosts.

@viferga viferga merged commit a49a6a7 into metacall:master Feb 10, 2026
1 check passed
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