Skip to content

Run the e2e on broker 0.6.0 and follow its GraphQL changes - #121

Merged
alefcastelo merged 2 commits into
mainfrom
bump-broker-0.6.0
Dec 1, 2026
Merged

alefcastelo merged 2 commits into
mainfrom
bump-broker-0.6.0

Conversation

@alefcastelo

@alefcastelo alefcastelo commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Runs the e2e on broker 0.6.0 and brings the CLI's GraphQL messages and e2e in line with it:

  • __typename may be an enum or a string; name works on scalar, object and enum; the federation-without-graph message is gone; arguments with a type name gets its own message.
  • A field break through a graph links the deployed graph page, which lists the fields left out of it.
  • A field the graph can't serve now breaks only the consumer that reads it, so the unreachable @requires/@fromContext/@override scenarios make the consumer read that field. The named-type scenario declares the ID it sends.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds graph identity to GraphQL report generation and deployed-graph links to report output. It updates GraphQL schema violation handling and revises end-to-end fixtures and expectations for unreachable fields and named argument types.

Changes: GraphQL reporting and validation

Layer / File(s) Summary
Graph attribution in reports
internal/reports/protocol.go, internal/reports/verdict_report.go, internal/reports/protocols/graphql/operations.go, internal/reports/protocols/graphql/plugin.go, internal/reports/protocols/graphql/field_blocks.go, tests/reports/protocols/graphql/plugin_test.go
Counterparts carry graph identity into GraphQL reporting. Field blocks use that identity when no graph detail is present and include a deployed-graph link when a graph is available. Report tests cover graph-attributed breaks and links.
GraphQL schema violation rules
internal/reports/protocols/graphql/plugin.go, internal/reports/protocols/graphql/violation_lines.go, tests/reports/protocols/graphql/violation_lines_test.go
Schema contract descriptions include object and enum types. Violation messages cover named argument schemas and enum-or-string schemas for __typename. The federation-required violation handler and its test cases are removed.
Unreachable graph field cases
tests/e2e/compose.yaml, tests/e2e/fixtures/graph_from_context_unreachable/*, tests/e2e/fixtures/graph_requires_unreachable/*, tests/e2e/graph_from_context_unreachable.bats, tests/e2e/graph_override_label_unreachable.bats, tests/e2e/graph_requires_unreachable.bats
Fixtures add Pet.summary and Pet.shippingCost. End-to-end expectations describe deployment and validation failures when the web participant reads fields that the graph does not provide. The broker image changes to version 0.6.0.
Named GraphQL argument type cases
tests/e2e/fixtures/graphql_named_type_changed/*, tests/e2e/graphql_named_type_changed.bats
End-to-end cases cover mismatches between ID! and String!, and deployment with an argument schema that does not declare a type name.
Merge Risk: Minimal · up to 39db8

This change adds graph attribution and deployed-graph links to GraphQL reports, updates schema violation messages, and revises the end-to-end scenarios for broker 0.6.0. No concrete defects were found. The new e2e expectations rely on broker 0.6.0 output that was not run here, and the PR description understates the scope of the change.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7346f2a and 39db89b.

Files selected for processing: 19

  • internal/reports/protocol.go
  • internal/reports/protocols/graphql/field_blocks.go
  • internal/reports/protocols/graphql/operations.go
  • internal/reports/protocols/graphql/plugin.go
  • internal/reports/protocols/graphql/violation_lines.go
  • internal/reports/verdict_report.go
  • tests/e2e/compose.yaml
  • tests/e2e/fixtures/graph_from_context_unreachable/reviews_v1.graphqls
  • tests/e2e/fixtures/graph_from_context_unreachable/web_v1.yaml
  • tests/e2e/fixtures/graph_requires_unreachable/reviews_v1.graphqls
  • tests/e2e/fixtures/graph_requires_unreachable/web_v1.yaml
  • tests/e2e/fixtures/graphql_named_type_changed/web_v1.yaml
  • tests/e2e/fixtures/graphql_named_type_changed/web_v2.yaml
  • tests/e2e/graph_from_context_unreachable.bats
  • tests/e2e/graph_override_label_unreachable.bats
  • tests/e2e/graph_requires_unreachable.bats
  • tests/e2e/graphql_named_type_changed.bats
  • tests/reports/protocols/graphql/plugin_test.go
  • tests/reports/protocols/graphql/violation_lines_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

- drop the graph.required_by_federation message: a federated SDL without a graph now publishes
- "__typename" may be an enum or a string (schema.typename_not_string_or_enum)
- explain "arguments" naming a schema with a GraphQL type "name"
- "name" works on scalar, object and enum schemas
- a field break through a graph links the deployed graph, which lists the fields left out of it
- e2e: unreachable @requires/@fromContext/@OverRide fields now break only the consumer that reads them; the named-type scenario declares the ID it sends

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alefcastelo alefcastelo changed the title Run the e2e on broker 0.6.0 Run the e2e on broker 0.6.0 and follow its GraphQL changes Dec 1, 2026
@alefcastelo
alefcastelo merged commit c0b1f82 into main Dec 1, 2026
13 checks passed
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