[EPAC-2062]: build Hansard search index Lambda#600
Merged
riddim-developer-bot[bot] merged 1 commit intoMay 25, 2026
Merged
Conversation
riddim-developer-bot
Bot
deleted the
symphony/epac-2062-build-hansard-search-index-lambda-for-one-time-c
branch
May 25, 2026 19:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reviewer-Boundary: review-only
Resolves EPAC-2062
Why
Hansard search needs a v1 SQLite FTS5 artifact that can be generated on demand for the current parliamentary session and published to S3 for the search Lambda to consume.
What Changed
backend/hansard-search-index, a manually-invoked Go Lambda with Clean Architecture use case, domain values, and adapters for ourcommons.ca XML fetch/parse, SQLite FTS5 build, and S3 artifact publishing.hansard-search-reindex.ymlworkflow dispatch for staging/production reindex runs with optional parliament/session overrides.hansard-search/v1/manifest.jsonfrom S3 when present and skip with evidence before the first operator backfill.Notes / Trade-offs
PARLIAMENT_NUMBERandSESSION_NUMBERenvironment variables, defaulting to 45/1. The manual workflow temporarily applies override inputs before invoking the Lambda and restores the prior environment afterward.https://www.ourcommons.ca/Content/House/451/Debates/001/HAN001-E.XMLreturns XML, while the issue example withHAN451-001-E.XMLreturns 404.s3:GetObjectands3:PutObject; AWS authorizesHeadObjectthroughs3:GetObjectand does not expose a separates3:HeadObjectaction.Verification
cd backend/hansard-search-index && go test ./...cd backend/hansard-search-index && go test -tags=integration ./...cd backend && make test package SERVICE=hansard-search-indexGOWORK=$PWD/backend/go.work go test ./backend/hansard-search-index/...scripts/ci/check_go_dependency_rule.sh && scripts/ci/check_catalog_drift.shactionlint .github/workflows/backend-staging.yml .github/workflows/backend-production.yml .github/workflows/backend-tests.yml .github/workflows/backend-pr.yml .github/workflows/hansard-search-reindex.ymlterraform fmt -check -recursive infra/terraformpython3 -m py_compile scripts/ci/backend_staging_smoke.pypython3 scripts/ci/backend_staging_smoke.py --list | rg -n "hansard-search-manifest|health:default"cd backend/hansard-search-index && go test -coverprofile=coverage.out ./... && go tool cover -func=coverage.outreported 68.3% total coverage.Release note: None; backend/infrastructure only.