Skip to content

Gulp: Migrate gulp test-timezones-data task#33700

Open
ajivanyandev wants to merge 1 commit into
DevExpress:26_1from
ajivanyandev:chore/gult-test-timezones-task-migration
Open

Gulp: Migrate gulp test-timezones-data task#33700
ajivanyandev wants to merge 1 commit into
DevExpress:26_1from
ajivanyandev:chore/gult-test-timezones-task-migration

Conversation

@ajivanyandev
Copy link
Copy Markdown
Contributor

No description provided.

@ajivanyandev ajivanyandev self-assigned this May 25, 2026
Copilot AI review requested due to automatic review settings May 25, 2026 13:34
@ajivanyandev ajivanyandev requested a review from a team as a code owner May 25, 2026 13:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Migrates the legacy Gulp “test-timezones-data” verification into an Nx executor within devextreme-nx-infra-plugin, and wires a new devextreme:test:timezones target to validate DevExtreme’s bundled scheduler timezone list against Moment Timezone’s latest dataset.

Changes:

  • Added a new test-timezones Nx executor that reads timezone_list.ts, fetches Moment Timezone data, and fails on unknown identifiers.
  • Added Jest E2E coverage for parsing/validation helpers and executor behavior (success/failure + error scenarios).
  • Registered the executor in the plugin and exposed a test:timezones target in packages/devextreme.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/nx-infra-plugin/src/executors/test-timezones/test-timezones.impl.ts Implements timezone list extraction, remote fetch, and validation logic for the executor.
packages/nx-infra-plugin/src/executors/test-timezones/schema.ts Declares TypeScript options for the new executor.
packages/nx-infra-plugin/src/executors/test-timezones/schema.json Defines the executor’s JSON schema/options and defaults for Nx.
packages/nx-infra-plugin/src/executors/test-timezones/executor.ts Re-exports the executor implementation as the Nx entrypoint.
packages/nx-infra-plugin/src/executors/test-timezones/executor.e2e.spec.ts Adds Jest E2E tests for parsing/validation and executor runs.
packages/nx-infra-plugin/executors.json Registers the new test-timezones executor in the plugin catalog.
packages/nx-infra-plugin/AGENTS.md Documents the new executor in the “Notable executors” list.
packages/devextreme/project.json Adds a test:timezones target that runs the new executor against the scheduler timezone list.
.github/copilot-instructions.md Documents the new nx test:timezones devextreme command.

Comment on lines +1 to +4
export interface TestTimezonesExecutorSchema {
timezoneListFile: string;
momentTimezoneUrl: string;
}
Comment on lines +115 to +117
logger.info(
`All ${bundledTimezones.length} bundled timezones are valid according to moment-timezone data`,
);
Comment on lines +1112 to +1121
"test:timezones": {
"executor": "devextreme-nx-infra-plugin:test-timezones",
"options": {
"timezoneListFile": "./js/__internal/scheduler/timezones/timezone_list.ts",
"momentTimezoneUrl": "https://raw.githubusercontent.com/moment/moment-timezone/develop/data/unpacked/latest.json"
},
"inputs": [
"{projectRoot}/js/__internal/scheduler/timezones/timezone_list.ts"
]
},
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