Skip to content

test(#756): pin Athena, Redshift Data, Scheduler and FSx projections and record them - #1358

Merged
scttfrdmn merged 1 commit into
mainfrom
test/756-tail-json-citations
Oct 3, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
test/756-tail-json-citations

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

This is the first of six PRs in #756's tail. It covers four citation-only records and makes no
production code changes
.

Record Already projected through Operations driven
AthenaQuery maps built member by member all 9
RedshiftDataStatement maps built member by member all 3
SchedulerRecord schedRecordToWire all 5
FSxFileSystem fsxToWire all 3

Each test reads the record's account and Region back from state before asserting their absence.
Scheduler and FSx spell the account account_id, which a case fold does not reach, so their walks
name that spelling too.

A #1305 finding

The Redshift Data test also pins CreatedAt and UpdatedAt as numbers. They already render
through stmt.CreatedAt.Unix(), so #1305's Redshift Data row describes behavior that no longer
exists
. I will comment on #1305 once this merges, which leaves Firehose as its only open row. (They
are integer seconds where the page samples fractional ones. That still decodes, and is noted rather
than changed.)

Shared helpers

emulator/wire_members_test.go gains wireSetup, wireJSONTarget, wireREST, wireRequireHeld and
wireRunJSON, so these four tests are each a few dozen lines rather than four copies of the same
plumbing.

Negative control (run, then restored; all four plugins verified diff-free)

I patched each service's JSON responder to inject a bookkeeping member into every body, using a
different spelling per service: AccountID, Region, account_id and region. That failed 9/9
Athena, 3/3 Redshift Data, 3/3 FSx and 4/5 Scheduler subtests. The fifth Scheduler
operation answers without going through schedulerJSONResponse, so the injection could not reach it.
Its walk still runs and guards it.

The ratchet

before: 319 declared, 273 projected across 114 records, 9 internal across 6 records, 37 still reachable
after:  319 declared, 281 projected across 118 records, 9 internal across 6 records, 29 still reachable

Verification

All of these pass:

  • make lint: 0 issues.
  • make test: race, -count=1.
  • docs-reference-check docs-versions version-check discarded-unmarshal-check wire-bookkeeping-check operation-catalog-check operation-docs-check.

#756 stays open.

…and record them

AthenaQuery, RedshiftDataStatement, SchedulerRecord and FSxFileSystem each
declare an account and a Region, and neither reaches a response: Athena and
Redshift Data answer maps built member by member, and Scheduler and FSx answer
schedRecordToWire and fsxToWire. Four new tests walk every routed operation,
reading each record's members back first; Scheduler and FSx spell the account
account_id, which a fold does not reach, so their walks name it.

The Redshift Data test also pins CreatedAt and UpdatedAt as numbers. They already
render that way, so #1305's Redshift Data row is stale.

Shared request and read-back helpers join emulator/wire_members_test.go.
check-wire-bookkeeping goes from 273 projected across 114 records to 281 across
118, and from 37 still reachable to 29.

#756 stays open.
@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
scttfrdmn merged commit 92af58c into main Oct 3, 2026
18 checks passed
@scttfrdmn
scttfrdmn deleted the test/756-tail-json-citations branch October 3, 2026 04:47
scttfrdmn added a commit that referenced this pull request Oct 3, 2026
…tion, with CreateTimestamp as epoch seconds (#1362)

DescribeDeliveryStream answered FirehoseDeliveryStream whole: AccountId and
Region, which API_DeliveryStreamDescription does not publish (#756), and Tags,
which it does not publish either. It also answered CreateTimestamp as an RFC3339
string, which an awsJson1_1 SDK cannot decode (#1305). The new
emulator/firehose_wire.go answers the five published members the record models,
with the date as EpochSeconds. The stored record is unchanged.

emulator/firehose_wire_test.go walks all six routed operations and pins
CreateTimestamp as a number; firehose_plugin_test.go decodes the published shape
rather than the record. check-wire-bookkeeping's #1305 note now records all three
services as fixed. ACM was fixed by #1354, and Redshift Data already rendered
numbers, as #1358's test pins.

check-wire-bookkeeping goes from 290 projected across 124 records to 292 across
125, and from 20 still reachable to 18.

Fixes #1305

#756 stays open.
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