Skip to content

fix(#756): answer HealthOmics, Bedrock, RAM and Batch records through projections - #1363

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/756-omics-bedrock-ram-batch
Oct 3, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/756-omics-bedrock-ram-batch

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Each answered a stored record whole at one or more sites, accountID and region
included, which no published shape carries.

  • HealthOmics' GetRun answers emulator/omics_wire.go's projection.
  • Bedrock's GetModelInvocationJob and ListModelInvocationJobs answer
    emulator/bedrock_wire.go's projection. submitTime is the date-time string the
    reference publishes rather than an epoch number, and each summary gains its
    Required roleArn, inputDataConfig and outputDataConfig.
  • RAM's CreateResourceShare, UpdateResourceShare and GetResourceShares also
    answered principals and resourceArns, which API_ResourceShare does not
    publish, and rendered their dates as RFC3339 where restJson1 publishes
    numbers. They answer emulator/ram_wire.go's projection with EpochSeconds.
  • Batch's DescribeJobs answers emulator/batch_wire.go's projection onto
    API_JobDetail, adding jobArn and keeping createdAt as epoch milliseconds; that
    createdAt joins check-wire-bookkeeping's exclusions.

Each service has a new _wire_test.go citing the record, with a read-back of
the members first and a projection-revert control run. check-wire-bookkeeping
goes from 292 projected across 125 records to 300 across 129, and from 18 still
reachable to 10.

Compatibility

  • Bedrock submitTime changes from a JSON number to a date-time string, matching the published shape.
  • RAM creationTime/lastUpdatedTime change from RFC3339 strings to epoch-second numbers, matching restJson1.
  • RAM shares no longer answer principals/resourceArns; read them through ListPrincipals/ListResources.

… projections

Each answered a stored record whole at one or more sites, accountID and region
included, which no published shape carries.

- HealthOmics' GetRun answers emulator/omics_wire.go's projection.
- Bedrock's GetModelInvocationJob and ListModelInvocationJobs answer
  emulator/bedrock_wire.go's projection. submitTime is the date-time string the
  reference publishes rather than an epoch number, and each summary gains its
  Required roleArn, inputDataConfig and outputDataConfig.
- RAM's CreateResourceShare, UpdateResourceShare and GetResourceShares also
  answered principals and resourceArns, which API_ResourceShare does not
  publish, and rendered their dates as RFC3339 where restJson1 publishes
  numbers. They answer emulator/ram_wire.go's projection with EpochSeconds.
- Batch's DescribeJobs answers emulator/batch_wire.go's projection onto
  API_JobDetail, adding jobArn and keeping createdAt as epoch milliseconds; that
  createdAt joins check-wire-bookkeeping's exclusions.

Each service has a new <svc>_wire_test.go citing the record, with a read-back of
the members first and a projection-revert control run. check-wire-bookkeeping
goes from 292 projected across 125 records to 300 across 129, and from 18 still
reachable to 10.
@scttfrdmn
scttfrdmn merged commit 2e64c62 into main Oct 3, 2026
17 checks passed
@scttfrdmn
scttfrdmn deleted the fix/756-omics-bedrock-ram-batch branch October 3, 2026 05:06
@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

scttfrdmn added a commit that referenced this pull request Oct 4, 2026
…rder seed (#1374)

#1323: GetExecutionHistory answers each event's timestamp as epoch seconds
through a projection, and every type is a published HistoryEvent value
derived from the ASL state's type. The stored history keeps its encoding.

#1207: Timestream's database and table responses answer CreationTime and
LastUpdatedTime as epoch seconds to three decimals, through
timestream_wire.go. The records now hold time.Time so the fraction survives.
A record written before the fix still decodes, and a test proves it. The
class-wide audit is on the issue; its one untracked gap is #1373.

#1320: Start/StopConfigurationRecorder persist the real recorder status, and
only DescribeConfigurationRecorderStatus applies the seed. A test names the
read-time invariant.

Also freezes wireSetup's clock. Batch's exact createdAt assertion (#1363) was
flaking under a parallel make test, because the clock advanced with wall time.

Fixes #1323
Fixes #1207
Fixes #1320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant