aws / aws/aws-durable-execution-sdk-java
Generate conformance-test SAM templates from handler metadata
- Lingua principale
- Java
- Stelle
- 28
- Fork
- 11
- Merge medio
- 1g 8h
- PR unite (30g)
- 47
Descrizione
## Summary
PR #552 adds hand-maintained SAM templates for the Java conformance test suites. Each handler requires a largely repetitive Lambda resource plus a `TestingMetadata.TestDescription` mapping to conformance requirement IDs. As the number of handlers and suites grows, maintaining these mappings in both Java code and SAM YAML will be error-prone.
Add a script or build step that generates the conformance-test SAM templates from handler metadata.
Review context: https://github.com/aws/aws-durable-execution-sdk-java/pull/552#discussion_r3617917672
## Requirements
- Define one source of truth for the mapping between each Java handler and its conformance requirement IDs. This could be a Java annotation, a small manifest, or another explicit convention.
- Generate `template_.yaml` files deterministically for all conformance suites.
- Preserve the shared SAM configuration and each function's `TestingMetadata.TestDescription` values.
- Integrate generation into the local/CI conformance-test workflow so templates cannot silently drift from handlers or metadata.
- Document how to add a handler and its requirement mapping to an existing or new suite.
## Acceptance criteria
- Adding or removing a conformance handler requires no manual duplication of its Lambda resource in a SAM template.
- Generated templates pass SAM validation/build and run the existing step and wait conformance suites successfully.
- Generation is stable: running it twice without source changes produces no diff.
- CI fails when checked-in generated templates are stale, or generates templates before they are consumed if they are not checked in.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con PR #552 e i template SAM dei test di conformità esistenti e gestiti manualmente, quindi traccia gli handler Java e le relative mappature TestingMetadata.TestDescription. Confronta il workflow locale/CI dei test di conformità con la validazione/build di SAM e con le suite step e wait. Il lavoro è completato quando i template sono deterministici, la registrazione degli handler è documentata, le suite vengono eseguite correttamente e la CI protegge dall’output generato obsoleto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, java
- Ambito
- build-system, ci-cd, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100