pankajkoti commented on code in PR #74768:
URL: https://github.com/apache/airflow/pull/74768#discussion_r4281927019


##########
dev/breeze/tests/test_verification_plan.py:
##########
@@ -79,6 +79,18 @@ def test_each_flag_maps_to_its_commands(flag: str):
     assert commands == [command for _, command, _ in FLAG_COMMANDS[flag]]
 
 
+def test_agent_framework_commands_cover_every_framework_in_the_ci_matrix():
+    workflow = AIRFLOW_ROOT_PATH / ".github" / "workflows" / 
"agent-framework-tests.yml"
+    matrix = 
yaml.safe_load(workflow.read_text())["jobs"]["tests"]["strategy"]["matrix"]["framework"]
+
+    frameworks = [
+        shlex.split(shlex.split(command)[-1])[-1]
+        for _, command, _ in FLAG_COMMANDS["run_agent_framework_tests"]
+    ]
+
+    assert frameworks == matrix

Review Comment:
   This compares the two lists in order, so reordering the matrix in the 
workflow fails the test even though both jobs still run. Comparing as sets 
keeps the check on what matters, that the two lists cannot drift apart. Minor, 
fine to leave as is.
   
   ```suggestion
       assert set(frameworks) == set(matrix)
   ```



-- 
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]

Reply via email to