mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
The service was the last one living wholly under backend/. It now follows the same layering as abri and the other newer services: domain/pashub_fetcher/ core file classification, subfolders infrastructure/pashub_fetcher/ PasHub client, token getter, wire DTOs orchestration/ PashubFetcherOrchestrator (was PashubService) applications/pashub_fetcher/ lambda handler, trigger request, dev tooling core_files.py is split along the layer boundary: the domain module keeps the filename/evidence-category classification rules and no longer imports infrastructure.postgres, while the CoreFiles -> FileTypeEnum translation moves to infrastructure/pashub_fetcher/core_file_types.py. Tests move into the tests/ tree by layer. Note this puts them in the only suite CI currently runs (unit_tests.yml is disabled), so these 73 tests now execute on PRs for the first time; they were previously reachable only via the legacy pytest.ini testpaths. sharepoint_renamer's image now copies just domain/pashub_fetcher/ rather than the whole service, since SharepointSubfolders is all it needed. Behaviour is unchanged. tests/ goes 9927 -> 10000 passed (+73, exactly the tests that moved in); the legacy suite keeps its same 17 pre-existing failures and 11 errors. tests/test_lambda_packaging.py confirms both changed Dockerfiles still copy their handler's full import closure. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
154 lines
No EOL
5.7 KiB
YAML
154 lines
No EOL
5.7 KiB
YAML
# name: Lambda Smoke Tests
|
|
|
|
# on:
|
|
# pull_request:
|
|
# branches:
|
|
# - main
|
|
|
|
# jobs:
|
|
# # ============================================================
|
|
# # Ara Engine
|
|
# # ============================================================
|
|
# ara_engine_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: backend/docker/engine.Dockerfile
|
|
# build_context: .
|
|
# service_name: ara-engine
|
|
|
|
# # ============================================================
|
|
# # Address 2 UPRN
|
|
# # ============================================================
|
|
# address2uprn_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: backend/address2UPRN/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: address2uprn
|
|
|
|
# # ============================================================
|
|
# # Postcode Splitter
|
|
# # ============================================================
|
|
# postcode_splitter_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: backend/postcode_splitter/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: postcode-splitter
|
|
|
|
# postcode_splitter_ddd_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: applications/postcode_splitter/Dockerfile
|
|
# build_context: .
|
|
# service_name: postcode-splitter-ddd
|
|
|
|
# # ============================================================
|
|
# # Landlord Description Overrides
|
|
# # ============================================================
|
|
# landlord_description_overrides_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: applications/landlord_description_overrides/Dockerfile
|
|
# build_context: .
|
|
# service_name: landlord-description-overrides
|
|
|
|
# # ============================================================
|
|
# # Bulk Address2UPRN Combiner
|
|
# # ============================================================
|
|
# bulk_address2uprn_combiner_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: backend/bulk_address2uprn_combiner/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: bulk-address2uprn-combiner
|
|
|
|
# # ============================================================
|
|
# # Bulk Upload Finaliser
|
|
# # ============================================================
|
|
# bulk_upload_finaliser_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: applications/bulk_upload_finaliser/Dockerfile
|
|
# build_context: .
|
|
# service_name: bulk-upload-finaliser
|
|
|
|
# # ============================================================
|
|
# # Condition ETL
|
|
# # ============================================================
|
|
# condition_etl_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: backend/condition/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: condition-etl
|
|
|
|
# # ============================================================
|
|
# # Categorisation
|
|
# # ============================================================
|
|
# categorisation_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: backend/categorisation/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: categorisation
|
|
|
|
# # ============================================================
|
|
# # Ordnance Survey
|
|
# # ============================================================
|
|
# ordnance_survey_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: backend/ordnanceSurvey/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: ordnance-survey
|
|
|
|
# # ============================================================
|
|
# # Pas Hub Fetcher
|
|
# # ============================================================
|
|
# pashub_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: applications/pashub_fetcher/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: pashub
|
|
|
|
# # ============================================================
|
|
# # MagicPlan
|
|
# # ============================================================
|
|
# magic_plan_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: applications/magic_plan/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: magic-plan
|
|
|
|
# # ============================================================
|
|
# # Audit Generator
|
|
# # ============================================================
|
|
# audit_generator_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: applications/audit_generator/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: audit-generator
|
|
|
|
# # ============================================================
|
|
# # HubSpot Scraper
|
|
# # ============================================================
|
|
# hubspot_scraper_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: etl/hubspot/scripts/scraper/handler/Dockerfile
|
|
# build_context: .
|
|
# service_name: hubspot-scraper
|
|
|
|
# # ============================================================
|
|
# # Modelling E2E
|
|
# # ============================================================
|
|
# hubspot_scraper_smoke_test:
|
|
# uses: ./.github/workflows/_smoke_test_lambda.yml
|
|
# with:
|
|
# dockerfile_path: applications/modelling_e2e/Dockerfile
|
|
# build_context: .
|
|
# service_name: modelling_e2e |