Repository navigation
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
| deadline = time.monotonic() + 120 | ||
| result = {} | ||
| while time.monotonic() < deadline: | ||
| result = _send_ol_event( | ||
| job_namespace="airflow_e2e_lineage", | ||
| job_name="sample_transform", | ||
| inputs=[ | ||
| {"namespace": "sample_data", "name": "ecommerce_db.shopify.raw_order"} | ||
| ], | ||
| outputs=[ | ||
| {"namespace": "sample_data", "name": "ecommerce_db.shopify.fact_order"} | ||
| ], | ||
| inputs=[_dataset(SOURCE_TABLE)], | ||
| outputs=[_dataset(TARGET_TABLE)], | ||
| ) | ||
| if result.get("lineageEdgesCreated", 0) > 0: | ||
| return result | ||
| time.sleep(5) | ||
|
|
||
| return result | ||
|
|
There was a problem hiding this comment.
💡 Edge Case: ol_lineage_result KeyError masks clean assertion on timeout
When lineage never resolves within the 120s deadline, the ol_lineage_result fixture returns the last _send_ol_event response, which may lack the lineageEdgesCreated key (e.g. an error/non-200 body). The test then does bracket access ol_lineage_result["lineageEdgesCreated"], raising KeyError instead of the intended assertion failure with its diagnostic message. Use .get("lineageEdgesCreated", 0) to preserve the informative failure message.
Use .get() so a timeout produces the intended assertion message rather than a KeyError.:
def test_creates_lineage_edge_for_known_tables(self, ol_lineage_result):
assert (
ol_lineage_result.get("lineageEdgesCreated", 0) > 0
), f"Expected lineage edges to be created, got: {json.dumps(ol_lineage_result, indent=2)}"
Was this helpful? React with 👍 / 👎
❌ UI Checkstyle Failed❌ Core Components - I18n SyncCore-components Fix locally (fast - only checks files changed in this branch): make ui-checkstyle-changed |
| filters: | | ||
| python: | ||
| - 'ingestion/**' | ||
| - '.github/workflows/py-tests-shared.yml' | ||
| - 'openmetadata-spec/**' | ||
| - 'openmetadata-service/src/main/java/org/openmetadata/service/resources/**' | ||
| - 'openmetadata-service/src/main/java/org/openmetadata/service/JsonPatchMessageBodyReader.java' | ||
| - 'openmetadata-service/src/main/java/org/openmetadata/service/JsonPatchProvider.java' | ||
| - 'openmetadata-service/src/main/java/org/openmetadata/service/ResourceRegistry.java' |
There was a problem hiding this comment.
When a pull request changes pom.xml, Makefile, or openmetadata-service code outside the selected resource files, this filter reports no Python changes and skips every Python lane while the required status succeeds, allowing incompatible backend or build changes to merge without Python validation.
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
Code Review 👍 Approved with suggestions 0 resolved / 2 findingsBackports Python CI improvements and workflow optimizations. Consider checking available disk space on /mnt before relocating the Docker root and handling potential KeyErrors for ol_lineage_result timeouts. 💡 Edge Case: ol_lineage_result KeyError masks clean assertion on timeout📄 ingestion/tests/integration/airflow/test_openlineage_lineage.py:249-263 When lineage never resolves within the 120s deadline, the Use .get() so a timeout produces the intended assertion message rather than a KeyError.💡 Edge Case: No free-space check on /mnt before moving Docker root📄 .github/scripts/configure_docker_storage.sh:13-25 📄 .github/scripts/configure_docker_storage.sh:37-41 When / and /mnt are on different filesystems, the script relocates the Docker data-root to /mnt/docker without verifying /mnt has at least 🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Backports the CI prerequisite chain needed before the CVE dependency updates:
Release adaptations add the classifier helper required by the shared workflow, use the 1.13 storage connection factory in network-isolated tests, and preserve workflows already absent from 1.13.
Greptile Summary
This backport consolidates Python CI into a reusable workflow and introduces cached environments, bounded test execution, outcome classification, network-isolated fixtures, and updated GitHub Actions.
Confidence Score: 4/5
The PR is not yet safe to merge because relevant backend and build changes can still pass the required Python check without running any Python test lane.
The shared path filter continues to omit pom.xml, Makefile, and most openmetadata-service paths; for those changes, the reusable workflow accepts skipped build and test jobs and allows the caller’s required status to succeed.
Files Needing Attention: .github/workflows/py-tests-shared.yml
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR Caller[Python caller workflow] --> Shared[Reusable Python workflow] Shared --> Filter[Authorize and detect changes] Filter --> Build[Build backend distribution] Filter --> Unit[Unit and static checks] Filter --> Integration[Integration test shards] Build --> Integration Unit --> Verify[Verify workflow results] Integration --> Verify Verify --> Required[Caller required status]Reviews (2): Last reviewed commit: "fix(ci): add Docker storage configuratio..." | Re-trigger Greptile