Skip to content

Commit e1e85cd

Browse files
authored
chore: don't parallelize tests by default (#1952)
1 parent b6c37f7 commit e1e85cd

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

Makefile

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,22 @@ engine-down:
8181
docker-compose -f ./tests/core/engine_adapter/docker-compose.yaml down
8282

8383
fast-test:
84-
pytest -m "fast"
84+
pytest -n auto -m "fast"
8585

8686
slow-test:
87-
pytest -m "fast or slow"
87+
pytest -n auto -m "fast or slow"
8888

8989
core-fast-test:
90-
pytest -m "fast and not web and not github and not dbt and not airflow and not jupyter"
90+
pytest -n auto -m "fast and not web and not github and not dbt and not airflow and not jupyter"
9191

9292
core-slow-test:
93-
pytest -m "(fast or slow) and not web and not github and not dbt and not airflow and not jupyter"
93+
pytest -n auto -m "(fast or slow) and not web and not github and not dbt and not airflow and not jupyter"
9494

9595
airflow-fast-test:
96-
pytest -m "fast and airflow"
96+
pytest -n auto -m "fast and airflow"
9797

9898
airflow-test:
99-
pytest -m "(fast or slow) and airflow"
99+
pytest -n auto -m "(fast or slow) and airflow"
100100

101101
airflow-local-test:
102102
export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@localhost/airflow && \
@@ -110,58 +110,58 @@ airflow-local-test-with-env: develop airflow-clean airflow-init airflow-run airf
110110
airflow-docker-test-with-env: develop airflow-clean airflow-init airflow-run airflow-docker-test airflow-stop
111111

112112
engine-slow-test:
113-
pytest -m "(fast or slow) and engine"
113+
pytest -n auto -m "(fast or slow) and engine"
114114

115115
engine-docker-test:
116-
pytest -m "docker and engine"
116+
pytest -n auto -m "docker and engine"
117117

118118
engine-remote-test:
119-
pytest -m "remote and engine"
119+
pytest -n auto -m "remote and engine"
120120

121121
engine-test:
122-
pytest -m "engine"
122+
pytest -n auto -m "engine"
123123

124124
dbt-test:
125-
pytest -m "dbt"
125+
pytest -n auto -m "dbt"
126126

127127
github-test:
128-
pytest -m "github"
128+
pytest -n auto -m "github"
129129

130130
jupyter-test:
131-
pytest -m "jupyter"
131+
pytest -n auto -m "jupyter"
132132

133133
web-test:
134-
pytest -m "web"
134+
pytest -n auto -m "web"
135135

136136
bigquery-test:
137-
pytest -m "bigquery"
137+
pytest -n auto -m "bigquery"
138138

139139
databricks-test:
140-
pytest -m "databricks"
140+
pytest -n auto -m "databricks"
141141

142142
duckdb-test:
143-
pytest -m "duckdb"
143+
pytest -n auto -m "duckdb"
144144

145145
mssql-test:
146-
pytest -m "mssql"
146+
pytest -n auto -m "mssql"
147147

148148
mysql-test:
149-
pytest -m "mysql"
149+
pytest -n auto -m "mysql"
150150

151151
postgres-test:
152-
pytest -m "postgres"
152+
pytest -n auto -m "postgres"
153153

154154
redshift-test:
155-
pytest -m "redshift"
155+
pytest -n auto -m "redshift"
156156

157157
snowflake-test:
158-
pytest -m "snowflake"
158+
pytest -n auto -m "snowflake"
159159

160160
spark-test:
161-
pytest -m "spark"
161+
pytest -n auto -m "spark"
162162

163163
spark-pyspark-test:
164-
pytest -m "spark_pyspark"
164+
pytest -n auto -m "spark_pyspark"
165165

166166
trino-test:
167-
pytest -m "trino"
167+
pytest -n auto -m "trino"

examples/airflow/docker_compose_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"entrypoint": "/bin/bash",
7474
"command": [
7575
"-c",
76-
"make install-dev && pytest -n 1 -m 'airflow and docker'",
76+
"make install-dev && pytest -m 'airflow and docker'",
7777
],
7878
"image": "airflow-sqlmesh",
7979
"user": "airflow",

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ markers =
2828
snowflake: test for Snowflake
2929
spark: test for Spark
3030
trino: test for Trino
31-
addopts = -n auto --dist=worksteal
31+
addopts = -n 0 --dist=worksteal
3232

3333
# Set this to True to enable logging during tests
3434
log_cli = False

0 commit comments

Comments
 (0)