Skip to content

Conversation

@danlapid
Copy link
Collaborator

No description provided.

@danlapid danlapid changed the title Add @all-autogates test variant to wd_test [NOT-FOR-REVIEW] Add @all-autogates test variant to wd_test Dec 24, 2025
@danlapid danlapid force-pushed the dlapid/all-compat-flags-variant branch from a0c04b8 to eb37088 Compare December 24, 2025 17:23
Add a --compat-date CLI flag to `workerd test` that overrides the
compatibility date for all workers. When this flag is used, workers
must NOT specify compatibilityDate in the config - this allows the
test harness to control the compat date externally.

The wd_test macro now generates three variants:
- name@ (default): oldest compat date (2000-01-01)
- name@all-compat-flags: newest compat date (2999-12-31)
- name@all-autogates: all autogates + oldest compat date

Tests can selectively disable variants using generate_default_variant,
generate_all_compat_flags_variant, and generate_all_autogates_variant
flags.

Also adds test cases to verify the compat-flag variants work correctly
by checking Cloudflare.compatibilityFlags.formdata_parser_supports_files
is enabled/disabled based on the compat date.
@danlapid danlapid force-pushed the dlapid/all-compat-flags-variant branch 3 times, most recently from 3371f13 to a0cc122 Compare December 24, 2025 22:41
@danlapid danlapid force-pushed the dlapid/all-compat-flags-variant branch from a0cc122 to 8b64978 Compare December 24, 2025 23:36
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