kaxil commented on code in PR #77389:
URL: https://github.com/apache/airflow/pull/77389#discussion_r4647238281


##########
devel-common/src/tests_common/pytest_plugin.py:
##########
@@ -207,7 +207,11 @@ def _calculate_provider_deps_hash():
 # End of copied code from breeze
 
 os.environ["AIRFLOW__CORE__ALLOWED_DESERIALIZATION_CLASSES"] = 
"airflow.*\nunit.*\n"
-os.environ["AIRFLOW__CORE__PLUGINS_FOLDER"] = 
os.fspath(AIRFLOW_CORE_TESTS_PATH / "unit" / "plugins")
+run_system_tests = "--system" in sys.argv or 
os.environ.get("_AIRFLOW_SYSTEM_TESTS") == "true"

Review Comment:
   Could this get a short comment like the `--skip-db-tests` block above? 
Something saying the unit-test plugins register `ClassBasedListener`, which 
breaks on system-test task instances, and that the env var is there so xdist 
workers see the flag. Without it, the `sys.argv` check looks like something a 
later cleanup could swap for `config.option.system`, which is parsed too late 
for this.



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