Unfail anomaly detection tests#252
Conversation
|
No issues found. Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 8c93b14f) — may not be fully accurate. Reply if this doesn't help. |
8044c42 to
17c5fa1
Compare
|
No issues found. Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 8c93b14f) — may not be fully accurate. Reply if this doesn't help. |
Make sure all the Checks pass inorder for the PR to be merged.
|
@nikie Make sure all the checks pass for the PR to be merged. |
|
No issues found. Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 1b0eaabe) — may not be fully accurate. Reply if this doesn't help. |
64c2188 to
21c6cd0
Compare
There was a problem hiding this comment.
Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 1b0eaabe) — may not be fully accurate. Reply if this doesn't help.
Additional feedback:
tests/test_anomaly_detection.py:305 — The @pytest.mark.xfail condition os.environ.get("SPARK_VERSION") in ["3.1.3", "3.2"] will only match the exact string "3.2", but SPARK_VERSION is typically set to a full version like "3.2.0" or "3.2.1". The _extract_major_minor_versions in configs.py handles this for the library, but os.environ.get returns the raw string. You should use startswith or extract the major.minor version for comparison, e.g. os.environ.get("SPARK_VERSION", "").startswith("3.1") or os.environ.get("SPARK_VERSION", "").startswith("3.2").
21c6cd0 to
a3c1432
Compare
|
Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 1b0eaabe) — may not be fully accurate. Reply if this doesn't help. Inline feedback:
os.environ.get("SPARK_VERSION", "").startswith(("3.1", "3.2")) |
a3c1432 to
1b9fa8c
Compare
1b9fa8c to
b97513a
Compare
|
No issues found. Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 1b0eaabe) — may not be fully accurate. Reply if this doesn't help. |
1 similar comment
|
No issues found. Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 1b0eaabe) — may not be fully accurate. Reply if this doesn't help. |
There was a problem hiding this comment.
Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 1b0eaabe) — may not be fully accurate. Reply if this doesn't help.
Additional feedback:
tests/test_anomaly_detection.py:295 — os.environ.get("SPARK_VERSION").startswith(("3.1", "3.2")) will raise AttributeError: 'NoneType' object has no attribute 'startswith' if the SPARK_VERSION environment variable is not set (since get returns None). Use os.environ.get("SPARK_VERSION", "").startswith(("3.1", "3.2")) to provide a default empty string.
|
No issues found. Generated by AI (model: us.anthropic.claude-opus-4-6-v1, prompt: 1b0eaabe) — may not be fully accurate. Reply if this doesn't help. |
Hi, @sudsali , I do not fully understand the reason, but apparently the tests succeed starting from Spark 3.3. Since it is not possible to fix the original issue in I have tested locally for all Spark versions, used in the CI matrix: 3.1.3, 3.2, 3.3, 3.5. If this is fine, could you, please trigger the test workflow? |
Issue #, if available:
There are no user-facing changes.
Description of changes:
pytest.mark.xfailmarks and making tests pass, except for thetest_anomalyDetectortest which relates to a not implemented feature.test_RelativeRateOfChangeStrategytest.blackformatting to anomaly detection tests.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.