Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
fix(loop): make sure loop runs in the correct order by updating `run_map` (#10305)
* fix: update run_map in LoopComponent to ensure correct predecessor tracking - Added logic to update the run_map when a new predecessor is added to the run_predecessors list. This ensures that the remove_from_predecessors() function works correctly by maintaining accurate dependencies in the graph's run manager. * feat: add execution path validation tests for graph flows - Introduced a new test file to validate execution paths in graph flows using predefined test data. - Implemented tests to ensure that both async_start and arun execution paths yield identical results. - Added fixtures and helper functions to facilitate testing without external dependencies. - Enhanced error reporting for execution mismatches to aid in debugging. * feat: add DataFrame import to constants.py - Introduced import for DataFrame from lfx.schema.dataframe to enhance functionality in field typing. * chore: update component index * refactor: update TEST_DATA_DIR path in execution path validation tests - Changed the TEST_DATA_DIR definition to use a relative path based on the current file's location, improving portability and ensuring the tests can locate the necessary data files regardless of the environment. * [autofix.ci] apply automated fixes * chore: update component index * feat: add execution path equivalence tests This commit introduces a new test suite for validating the equivalence of execution paths between `async_start` and `arun`. The tests ensure that both paths produce identical results, execute components in compatible orders, and handle loops correctly. The `ExecutionTrace` and `ExecutionTracer` classes have been implemented to capture detailed runtime behavior and state changes during graph execution. * refactor: simplify import statements and enhance test fixture usage This commit refactors the import statements in the test_execution_path_validation.py file for improved readability by consolidating multiple imports from the same module into a single line. Additionally, it updates the test_flow_execution_equivalence function to include the "client" fixture, enhancing the test's setup for better execution context. * update component index * [autofix.ci] apply automated fixes * chore: update component index --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
G
Gabriel Luiz Freitas Almeida committed
aa3d8e621e0dff6cfcedb53cfa56601874fc0286
Parent: 4cad7ab
Committed by GitHub <noreply@github.com>
on 10/20/2025, 8:53:20 PM