Skip to content

Add test coverage for prerendering closed generic components#5

Open
tomerqodo wants to merge 2 commits into
codex_full_base_add_test_coverage_for_prerendering_closed_generic_components_pr5from
codex_full_head_add_test_coverage_for_prerendering_closed_generic_components_pr5
Open

Add test coverage for prerendering closed generic components#5
tomerqodo wants to merge 2 commits into
codex_full_base_add_test_coverage_for_prerendering_closed_generic_components_pr5from
codex_full_head_add_test_coverage_for_prerendering_closed_generic_components_pr5

Conversation

@tomerqodo

Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#5

Copilot AI and others added 2 commits January 25, 2026 11:59
Co-authored-by: javiercn <6995051+javiercn@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a8d897e322

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +835 to +838
Assert.NotNull(preambleMarker.PrerenderId);
Assert.Equal("webassembly", preambleMarker.Type);
Assert.Equal(typeof(GenericComponent<string>).Assembly.GetName().Name, preambleMarker.Assembly);
Assert.Equal(typeof(GenericComponent<string>).FullName, preambleMarker.TypeName);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Assert WebAssembly marker against the rendered generic type

In CanPrerender_ClosedGenericComponent_ClientMode the component is rendered with typeof(GenericComponent<int>), but the assertions compare the marker’s assembly/type name against GenericComponent<string>. When the renderer emits the actual closed generic type (the common case), this will fail and make the test a false negative. The expectations should be updated to GenericComponent<int> to match the rendered component.

Useful? React with 👍 / 👎.

Comment on lines +10 to +12
namespace Microsoft.AspNetCore.Components.Server.Circuits
{
public class ServerComponentDeserializerTest

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep file-scoped namespace per repo guidelines

The repository compliance rules in /workspace/aspnetcore-combined-codex/AGENTS.md require file-scoped namespaces for all C# files. This change converts the namespace to block-scoped, which violates that rule and will likely fail style enforcement/consistency checks. Please revert to a file-scoped namespace declaration.

Useful? React with 👍 / 👎.

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.

2 participants