Skip to content

feat: Bedrock batch inference, DynamoDB tagging, SageMaker CapacityError (#297, #298, #299) - #300

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/issues-297-298-299
Jun 2, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/issues-297-298-299

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Resolves three ecosystem-driven emulator gaps (spore-host/lagotto + aws-openondemand) so their integration tests can run against Substrate.

#297 — Bedrock control-plane batch inference (ModelInvocationJob)

Extends BedrockRuntimePlugin with CreateModelInvocationJob / GetModelInvocationJob / StopModelInvocationJob / ListModelInvocationJobs, dispatched by their distinct REST paths. The control plane shares the bedrock SigV4 signing name with the data plane, so routing works with no parser/alias change. Job-status override via POST/DELETE /v1/bedrock/model-invocation-job-status (keyed by job ID or *) drives InProgress/Completed/Failed deterministically. Unblocks ood-bedrock-adapter's skipped integration test.

#298 — DynamoDB resource tagging

CreateTable now stores Tags; adds TagResource / UntagResource / ListTagsOfResource keyed by table ARN (dynamodbTableNameFromARN tolerates /index/ and /stream/ suffixes). Lets tag-based ownership logic (lagotto:managed=cli) be tested end-to-end.

#299 — SageMaker CapacityError

DescribeTrainingJob honours a seeded terminal status + FailureReason via POST/DELETE /v1/sagemaker/training-job-status; default remains Completed. Enables the submit→CapacityError→retry test path.

Notes

  • New control endpoints follow the existing Athena/RedshiftData/Timestream/Bedrock seed-and-clear pattern; cleared on state reset.
  • make test (race) + make lint clean. Main-package coverage 79.5% (baseline was 79.3% — the sub-80% is pre-existing across the whole package, not introduced here; new code is covered comparably to the surrounding tag/control handlers).
  • AWS wire shapes (paths, status enums, ARN formats, error codes) verified against the official API references.

Closes #297
Closes #298
Closes #299

…ror (#297, #298, #299)

- #297: Add ModelInvocationJob control-plane ops (Create/Get/Stop/List) to
  BedrockRuntimePlugin, path-routed (no parser change); seed endpoints for
  job-status override. Cost: bedrock-runtime/CreateModelInvocationJob.
- #298: Store CreateTable Tags; implement TagResource/UntagResource/
  ListTagsOfResource keyed by table ARN (dynamodbTableNameFromARN helper).
- #299: DescribeTrainingJob honours seeded terminal status + FailureReason
  via /v1/sagemaker/training-job-status; default remains Completed.

Tests added across all three; make test (race) + lint clean.

Closes #297
Closes #298
Closes #299
@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@scttfrdmn
scttfrdmn merged commit 5c94248 into main Jun 2, 2026
10 checks passed
@scttfrdmn
scttfrdmn deleted the feat/issues-297-298-299 branch June 2, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant