You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(golden): tighten test assertions, drop dead code, document known limitations
Cleanups surfaced by the code-quality review of PR 1:
- harness.run_package_pipeline: drop the dead first
_export_global_artifacts_pass(original) call. The original template was
read, mutated by that pass, and then never referenced again — the
artifact rewrite operates on a deep-copied build_output, so the first
pass had no observable effect. Update the docstring to match.
- harness._walk_artifact_properties: replace the bare `-> List:` return
type with `-> List[Tuple[str, str, Dict[str, Any]]]` so downstream
callers and reviewers can see the shape without reading the body.
- harness module docstring: add a Known limitations subsection covering
four issues that the next contributor should expect (image / ECR
over-rewrite, _stub_local_uris_for_translator drift, GoldenS3Uploader
not subclassing S3Uploader, missing AWS::Include sentinel). They will
be addressed by PR 2 / corpus growth.
- test_harness_package.test_package_sam_case_rewrites_code_to_s3_uri:
replace the lenient `s3_uri_field == "golden-bucket"` short-circuit
with two specific assertions that the dict has the expected keys.
- test_harness_build: drop unused `tmp_path` fixture parameters from
two tests.
- update_goldens.py / check_semver_bump.py: silence mypy `[unreachable]`
on the script-form sys.path bootstrap added in the previous fix.
0 commit comments