potiuk commented on issue #53130:
URL: https://github.com/apache/airflow/issues/53130#issuecomment-3057845111
In those tests, example_dags are copied to the image:
```
FROM {params.airflow_image_name}
USER airflow
{extra_copy_command}
COPY --chown=airflow:0 airflow-core/src/airflow/example_dags/
/opt/airflow/dags/
COPY --chown=airflow:0
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/kubernetes_executor_templates/
/opt/airflow/pod_templates/
ENV GUNICORN_CMD_ARGS='--preload'
"""
```
And tests are running some of those dags, for example:
```python
@pytest.mark.execution_timeout(300)
def test_integration_run_dag_task_mapping(self):
dag_id = "example_task_mapping_second_order"
dag_run_id, logical_date = self.start_job_in_kubernetes(dag_id,
self.host)
print(f"Found the job with logical_date {logical_date}")
# Wait some time for the operator to complete
self.monitor_task(
host=self.host,
dag_run_id=dag_run_id,
dag_id=dag_id,
task_id="get_nums",
expected_final_state="success",
timeout=300,
)
self.ensure_dag_expected_state(
host=self.host,
logical_date=logical_date,
dag_id=dag_id,
expected_final_state="success",
timeout=300,
)
```
--
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]