SIGN IN SIGN UP

CI: Introduce functional scripts dependencies in CI test selection (#3396)

* Introduce func scripts dependencies in CI test selection

Add functional script dependency support to the test selector so prerequisite scripts run first. Introduce `FUNC_SCRIPT_DEPENDENCIES` (including the 3D -> tensorflow single animal prerequisite), apply dependency-aware ordering with cycle detection, and keep provenance by tagging dependency-driven selections. Expand selector tests to cover ordering, deduplication, cycle errors, and 3D change-driven script selection.

* Assert prerequisite script is attributed to the 3D script via a dependency:* reason.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Resolve functional script dependencies recursively

Add `resolve_functional_scripts` to expand selected functional scripts with transitive dependencies, return dependency-ordered execution, and detect cycles explicitly. `decide()` now uses this resolver to collect dependency provenance for auto-added scripts, replacing the previous one-level dependency provenance logic and keeping output provenance formatting clearer and consistent.

* Update test_selector.py

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
C
Cyril Achard committed
174183e3c3d4c1e6e01b3fdbf9525fa7f4b00a26
Parent: 3a8e6b6
Committed by GitHub <noreply@github.com> on 7/16/2026, 7:02:25 AM