You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/02 06:55:11 UTC

[GitHub] [airflow] uranusjr edited a comment on pull request #20975: Switch XCom implementation to use run_id

uranusjr edited a comment on pull request #20975:
URL: https://github.com/apache/airflow/pull/20975#issuecomment-1026783750


   Seems like migration is working! Now fixing tests…
   
   ```
   
   ==== API postgres: 7 failures ====
   
   tests/api_connexion/endpoints/test_xcom_endpoint.py::TestGetXComEntry::test_should_respond_200: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/api_connexion/endpoints/test_xcom_endpoint.py::TestGetXComEntry::test_should_raises_401_unauthenticated: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/api_connexion/endpoints/test_xcom_endpoint.py::TestGetXComEntry::test_should_raise_403_forbidden: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/api_connexion/endpoints/test_xcom_endpoint.py::TestGetXComEntries::test_should_respond_200: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/api_connexion/endpoints/test_xcom_endpoint.py::TestGetXComEntries::test_should_respond_200_with_tilde_and_access_to_all_dags: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/api_connexion/endpoints/test_xcom_endpoint.py::TestGetXComEntries::test_should_respond_200_with_tilde_and_granular_dag_access: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/api_connexion/endpoints/test_xcom_endpoint.py::TestGetXComEntries::test_should_raises_401_unauthenticated: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   
   ==== CLI postgres: 2 failures ====
   
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_test_with_params: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/cli/commands/test_task_command.py::TestCliTasks::test_test: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   
   ==== Core postgres: 2 failures ====
   
   tests/serialization/test_dag_serialization.py::TestStringifiedDAGs::test_extra_serialized_field_and_operator_links: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/serialization/test_dag_serialization.py::TestStringifiedDAGs::test_extra_serialized_field_and_multiple_operator_links: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   
   ==== Providers postgres: 10 failures ====
   
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_config_path: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_envs_from_configmaps: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_labels: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_find_pod_labels: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_full_pod_spec_0: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_full_pod_spec_1: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_pod_template_file_0: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_pod_template_file_1: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_no_handle_failure_on_success: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   tests/providers/cncf/kubernetes/operators/test_kubernetes_pod.py::TestKubernetesPodOperator::test_previous_pods_ignored_for_reattached: sqlalchemy.orm.exc.NoResultFound: No row was found for one()
   
   ==== WWW postgres: 1 failure ====
   
   tests/www/views/test_views_tasks.py::test_views_get[xcom-list]: NotImplementedError: The association proxy can't be used as a plain column expression; it only works inside of a comparison expression
   ```
   
   Only on SQLite (partial, all failures are the same):
   
   ```
   tests/models/test_param.py::TestDagParamRuntime::test_dag_param_resolves: sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: xcom.dagrun_id, xcom.task_id, xcom.key
   [SQL: INSERT INTO xcom (dagrun_id, task_id, "key", dag_id, run_id, value, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?)]
   [parameters: (1, 'return_num', 'return_value', 'test_xcom_pass_to_op', 'manual', <memory at 0x7f177f38b120>, '2022-02-01 12:00:13.867563')]
   (Background on this error at: http://sqlalche.me/e/13/gkpj)
   tests/models/test_param.py::TestDagParamRuntime::test_dag_param_overwrite: sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: xcom.dagrun_id, xcom.task_id, xcom.key
   [SQL: INSERT INTO xcom (dagrun_id, task_id, "key", dag_id, run_id, value, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?)]
   [parameters: (1, 'return_num', 'return_value', 'test_xcom_pass_to_op', 'manual', <memory at 0x7f178e0ae870>, '2022-02-01 12:00:14.724949')]
   (Background on this error at: http://sqlalche.me/e/13/gkpj)
   tests/models/test_param.py::TestDagParamRuntime::test_dag_param_default: sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: xcom.dagrun_id, xcom.task_id, xcom.key
   [SQL: INSERT INTO xcom (dagrun_id, task_id, "key", dag_id, run_id, value, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?)]
   [parameters: (1, 'return_num', 'return_value', 'test_xcom_pass_to_op', 'manual', <memory at 0x7f17b4d13bb0>, '2022-02-01 12:00:15.284747')]
   (Background on this error at: http://sqlalche.me/e/13/gkpj)
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org