Skip to content

GO-7542 Fix v1 proto comparison and mp3 fixture unit-test failures - #3300

Merged
requilence merged 3 commits into
developfrom
go-7542-v1-proto-compat-fixes
Sep 28, 2026
Merged

requilence merged 3 commits into
developfrom
go-7542-v1-proto-compat-fixes

Conversation

@requilence

Copy link
Copy Markdown
Contributor

Fixes the unit-test failures on develop (since #3297) and on #3298.

  • TestV1ProtosMatchAnyBlockCanonicalSources/events.proto: Heart's events.proto must match AnyBlock's canonical v1 source except for explicitly excluded Heart-only live-API declarations.
  • TestDetectFileType/mp3_file_detected_as_audio: GO-7368 Add ephemeral pubsub and API v2 chat status #3298 bumps ipfs/boxo to v0.43.0, which requires gabriel-vasile/mimetype v1.4.15. That version validates the ID3v2 header and rejects a zero-size tag, and the test fixture declared size 0. The fixture now declares a non-zero size (real ID3v2 tags always contain at least one frame) and passes on both mimetype versions.

Testing

Account.JsonApiStatus and its Event.Message member are a live account
event reporting the local API bind outcome, not part of the canonical
AnyBlock v1 format, so TestV1ProtosMatchAnyBlockCanonicalSources failed
on develop after #3297. Exclude exactly those declarations, like the
account-recovery stream, so any other drift still fails.
Event.Pubsub.Message (GO-7368, PR #3298) is ephemeral client-to-client
traffic delivered only to live subscribers and never persisted, so it is
not part of the canonical AnyBlock v1 format. Exclude exactly its
Event.Message member and the Event.Pubsub namespace ahead of that branch
landing; the exclusion is a no-op until then.
mimetype v1.4.15 (pulled in by ipfs/boxo v0.43.0 on the GO-7368 branch)
validates the ID3v2 header and rejects a zero-size tag, so the fixture
was detected as application/octet-stream. A real ID3v2 tag always holds
at least one frame; declare a non-zero size so the test passes on both
mimetype versions.
@github-actions

Copy link
Copy Markdown

New Coverage 59.9% of statements
Patch Coverage 0.0% of changed statements (0/0)

Coverage provided by https://github.com/seriousben/go-patch-cover-action

@requilence
requilence merged commit a9690d7 into develop Sep 28, 2026
16 checks passed
@requilence
requilence deleted the go-7542-v1-proto-compat-fixes branch September 28, 2026 10:57
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant