The GitHub Actions job "Release Auditing" on texera.git/backport/7349-delete-links-targeting-removed-input-por-v1.2 has failed. Run started by GitHub user github-actions[bot] (triggered by github-actions[bot]).
Head commit for run: ea887c569195b18b57c2e6c24b15477c4e4bf704 / Martin Vu <[email protected]> fix(agent-service): delete links targeting removed input ports when shrinking input ports (#7349) ### What changes were proposed in this PR? This PR fixes a bug in `WorkflowState.updateOperatorInputPorts` where shrinking an operator's input port count left links targeting removed input ports. The method now removes any links whose target port no longer exists by calling `deleteLink`, preventing dangling links from remaining in the workflow state. A regression test was also added to verify that links targeting deleted input ports are removed when the input port count is reduced. ### Any related issues, documentation, discussions? Closes #7169 ### How was this PR tested? Added a regression test covering the case where an operator's input ports are reduced while a link targets one of the removed ports. Verified with: ```bash bun test --test-name-pattern="removes links targeting input ports that are dropped" bun test ``` Before: <img width="1716" height="1160" alt="image" src="https://github.com/user-attachments/assets/bcfd23cb-aa4b-4f8e-87c1-46f0eda3e3e4" /> After: <img width="1716" height="984" alt="image" src="https://github.com/user-attachments/assets/f9937312-80f8-423b-8ec7-d7c522319b90" /> ### Was this PR authored or co-authored using generative AI tooling? (backported from commit 12169c2cfe5f92d0c492ae12d8eb2b53a6fec098) Generated-by: ChatGPT (5.5 mini) Report URL: https://github.com/apache/texera/actions/runs/31746418062 With regards, GitHub Actions via GitBox
