spuru9 opened a new pull request, #28742: URL: https://github.com/apache/flink/pull/28742
## What is the purpose of the change [FLINK-40035](https://issues.apache.org/jira/browse/FLINK-40035) added a Vitest test setup with smoke tests for three web-dashboard views. This PR extends that baseline coverage to the remaining high-traffic pages, so more of the dashboard is guarded against regressions during Angular / ng-zorro upgrades. Tests run in jsdom through the existing `@angular/build:unit-test` builder, so no browser is required. ## Brief change log - Add smoke specs for the Job views: overview, checkpoints, timeline, data skew, rescales and configuration - Add smoke specs for Task Manager metrics and logs, Job Manager metrics, and the Application (cluster) overview - Each spec mocks the view's services through `TestBed` and asserts that the component loads its data and populates its key bindings. Chart- and graph-backed views (timeline, job overview) drive the component logic directly and stub the rendering layer, which relies on browser APIs jsdom does not implement - Add a no-op Web Worker stub to `src/test-setup.ts`: `@antv/g2` creates a worker at module load for its label layout, and `Worker` is undefined in jsdom ## Verifying this change This change adds tests and can be verified as follows: - `cd flink-runtime-web/web-dashboard && npm ci` - `npm run test:ci` — 13 test files / 29 specs pass (the 10 new spec files plus the 3 from FLINK-40035) - `npm run lint` passes ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no - The serializers: no - The runtime per-record code paths (performance sensitive): no - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (Claude Code) Generated-by: Claude Code (claude-opus-4-8) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
