The GitHub Actions job "Build and push images" on texera.git/main has failed.
Run started by GitHub user bobbai00 (triggered by bobbai00).

Head commit for run:
d8d87a9c9eaf338e1b3dd9bea55acb692985e49d / anthonychengit 
<[email protected]>
test(frontend): cover workflow broken check (#6547)

### What changes were proposed in this PR?

This PR adds unit-test coverage for `checkIfWorkflowBroken`.

Covered behavior:
- returns `false` when every link references existing operators;
- returns `true` when a link source references a missing operator;
- returns `true` when a link target references a missing operator;
- returns `false` when the workflow has no links.

### Any related issues, documentation, discussions?

Closes #6258

### How was this PR tested?

Tested with:
- `node .yarn/releases/yarn-4.14.1.cjs prettier --check
src/app/common/util/workflow-check.spec.ts`
- `node .yarn/releases/yarn-4.14.1.cjs eslint
src/app/common/util/workflow-check.spec.ts`
- `node .yarn/releases/yarn-4.14.1.cjs test
--include=src/app/common/util/workflow-check.spec.ts`

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Codex was used for implementation and verification
assistance. I reviewed the final code and test output before submission.

---------

Signed-off-by: Xinyuan Lin <[email protected]>
Co-authored-by: Xinyuan Lin <[email protected]>
Co-authored-by: Copilot Autofix powered by AI 
<[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/29713764497

With regards,
GitHub Actions via GitBox

Reply via email to