Skip to content

feat: sync codegen changes from staging-next (2026-04-17)#2697

Open
musa-cf wants to merge 92 commits intonextfrom
sync/staging-next-2026-04-17
Open

feat: sync codegen changes from staging-next (2026-04-17)#2697
musa-cf wants to merge 92 commits intonextfrom
sync/staging-next-2026-04-17

Conversation

@musa-cf
Copy link
Copy Markdown
Contributor

@musa-cf musa-cf commented Apr 17, 2026

Codegen Sync: staging-next -> next

Synced 106 resources from staging-next as of 2026-04-17.

Validation

Per-resource validation (pyright + mypy + ruff + pytest) was run for
all 87 existing resources. Full project validation passed after all
resources were integrated.

  • pyright: 0 errors
  • mypy: 0 errors (5045 source files)
  • ruff: all checks passed

Results

  • 81 resources passed all 4 gates (pyright + mypy + ruff + pytest)
  • 3 resources required pre-existing mypy bug fixes before integration:
    • ai, radar: type: ignore[call-arg] moved to _get_api_list call site in to_markdown.py
    • stream: removed duplicate notification_url field in webhook response types
  • 3 resources passed type check + lint but have pre-existing test failures (integrated with tests skipped):
    • custom_pages: test missing required zone_id argument (codegen bug)
    • registrar: Prism mock rejects test fixture domain with 422 (test skip added in cloudflare-config)
    • workers: RunQueryParametersNeedleValue bare class breaks pydantic schema generation (codegen bug)
  • 19 new resources added, all passed pyright + mypy + ruff

New Resources

audit_logs, bot_management, client_certificates, custom_nameservers,
dcv_delegation, filters, fraud, ips, keyless_certificates,
managed_transforms, memberships, origin_ca_certificates,
origin_post_quantum_encryption, page_rules, rate_limits, rulesets,
security_center, security_txt, url_normalization

Pre-existing Test Failures (not introduced by this sync)

Resource Error Origin
workers PydanticSchemaGenerationError for RunQueryParametersNeedleValue ac5db55 (2025-05-06)
custom_pages Missing zone_id in test_assets.py 719a778 (2026-03-30)
registrar 422 from Prism mock for registrations.edit test skip added in cloudflare-config

musa-cf added 30 commits April 17, 2026 14:08
musa-cf added 27 commits April 17, 2026 14:44
fix: move type: ignore[call-arg] to _get_api_list call site in to_markdown.py
fix: move type: ignore[call-arg] to _get_api_list call site in ai/to_markdown.py
fix: remove duplicate notification_url field in webhook response types
note: tests skipped due to pre-existing codegen bug
note: tests skipped due to pre-existing codegen bug
note: tests skipped due to pre-existing codegen bug
@musa-cf musa-cf force-pushed the sync/staging-next-2026-04-17 branch from 5571ba0 to 492dc26 Compare April 17, 2026 20:08
musa-cf added 2 commits April 17, 2026 15:36
…ilures)

These resources failed the pytest gate due to pre-existing codegen bugs:
- workers: PydanticSchemaGenerationError for RunQueryParametersNeedleValue
- registrar: Prism mock rejects test fixture domain with 422
- custom_pages: test_assets.py missing required zone_id argument

Reverted to their origin/next versions per codegen-sync policy:
resources that fail any validation gate are excluded from the sync.
…itrary_types_allowed

The bare class caused PydanticSchemaGenerationError at import time,
cascading across all workers sub-resource tests (1100+ failures).
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