Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ingestion/prefect-plugin): fixed the unit tests #10643

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
99aae38
Prefect source integration code added
shubhamjagtap639 Jul 13, 2023
d64102d
prefect-dataub package integrated with datahub
shubhamjagtap639 Jul 13, 2023
9c71601
Prefect doc Spell mistake corrected
shubhamjagtap639 Jul 13, 2023
a876e87
Remove not necessary md file
shubhamjagtap639 Jul 13, 2023
9a72681
Version added for some pakages in prefect-datahub
shubhamjagtap639 Jul 14, 2023
95347e1
Prefect version 2.0.0 restriction removed
shubhamjagtap639 Jul 14, 2023
68c6644
Prefect version set to >=2.0.0
shubhamjagtap639 Jul 17, 2023
6dc9da9
prefect-datahub build error fixed for python 3.7
shubhamjagtap639 Jul 17, 2023
4e32e0e
mypy stubs packages added
shubhamjagtap639 Jul 17, 2023
9290837
acryl-datahub package added
shubhamjagtap639 Jul 18, 2023
aaad752
Added some missing required setup files
shubhamjagtap639 Jul 18, 2023
9884785
Extra packages added in requirements-dev
shubhamjagtap639 Jul 18, 2023
08bc3e0
Added some extra packages
shubhamjagtap639 Jul 18, 2023
41072df
temp changes
shubhamjagtap639 Jul 18, 2023
7662b58
Revert temp changes
shubhamjagtap639 Jul 18, 2023
33a42a2
Prefect plugin code modified as per latest airflow plugin code
shubhamjagtap639 Sep 13, 2023
adb8adb
Add epoch 1 for dev build versions
shubhamjagtap639 Sep 13, 2023
870d5ee
build error fixed
shubhamjagtap639 Sep 13, 2023
70b1bf2
syntax error resolved
shubhamjagtap639 Sep 13, 2023
9c80098
Address review comments
shubhamjagtap639 Feb 8, 2024
5556927
Modify prefect-plugin yml file
shubhamjagtap639 Feb 9, 2024
f89d6c0
fix(ingestion/prefect-plugin): fixed the unit tests
dushayntAW Jun 4, 2024
04881b1
fix(ingestion/prefect-plugin): changes
dushayntAW Jun 12, 2024
54c012d
fix(ingestion/prefect-plugin): fixes
dushayntAW Jun 12, 2024
3839f2e
fix(ingestion/prefect-plugin): gradle fix
dushayntAW Jun 12, 2024
eae4268
fix(ingestion/prefect-plugin): gradle fix
dushayntAW Jun 12, 2024
24ccf17
fix(ingestion/prefect-plugin): gradle fix
dushayntAW Jun 12, 2024
8bb5e8d
fix(ingestion/prefect-plugin): fix docGenerate
dushayntAW Jun 12, 2024
5d54ff9
fix(ingestion/prefect-plugin): fix docGenerate
dushayntAW Jun 12, 2024
2638848
fix(ingestion/prefect-plugin): fix docGenerate
dushayntAW Jun 12, 2024
654da76
fix(ingestion/prefect-plugin): auth token with datasets
dushayntAW Jul 1, 2024
9b2a558
fix(ingestion/prefect-plugin): removed print statement
dushayntAW Jul 1, 2024
5b6c2c8
Merge branch 'master' into fix/ING-133/connector-for-prefect
treff7es Aug 21, 2024
014a340
Update doc
treff7es Aug 21, 2024
edffb1d
Merge branch 'master' into fix/ING-133/connector-for-prefect
treff7es Aug 21, 2024
297fa62
Improve doc
treff7es Aug 21, 2024
889e4fb
Fix doc
treff7es Aug 21, 2024
2e1d64c
Fixing doc
treff7es Aug 21, 2024
9e8f2a1
Merge branch 'master' into fix/ING-133/connector-for-prefect
treff7es Aug 23, 2024
6a701c9
Merge branch 'master' into fix/ING-133/connector-for-prefect
treff7es Aug 28, 2024
8b9548f
Fix tests
treff7es Aug 28, 2024
0422477
Fix black formatting
treff7es Aug 28, 2024
c134e97
Merge branch 'master' into fix/ING-133/connector-for-prefect
treff7es Aug 28, 2024
0bef326
Fixing wheel creation
treff7es Aug 28, 2024
c096add
Fixing examples
treff7es Aug 28, 2024
f2a05a9
Flake8 fix
treff7es Aug 28, 2024
706193e
Updating doc
treff7es Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ jobs:
-x :metadata-ingestion-modules:airflow-plugin:check \
-x :metadata-ingestion-modules:dagster-plugin:build \
-x :metadata-ingestion-modules:dagster-plugin:check \
-x :metadata-ingestion-modules:prefect-plugin:build \
-x :metadata-ingestion-modules:prefect-plugin:check \
-x :metadata-ingestion-modules:gx-plugin:build \
-x :metadata-ingestion-modules:gx-plugin:check \
-x :datahub-frontend:build \
Expand Down Expand Up @@ -138,4 +140,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: Event File
path: ${{ github.event_path }}
path: ${{ github.event_path }}
86 changes: 86 additions & 0 deletions .github/workflows/prefect-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Prefect Plugin
on:
push:
branches:
- master
paths:
- ".github/workflows/prefect-plugin.yml"
- "metadata-ingestion-modules/prefect-plugin/**"
- "metadata-ingestion/**"
- "metadata-models/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/prefect-plugin.yml"
- "metadata-ingestion-modules/prefect-plugin/**"
- "metadata-ingestion/**"
- "metadata-models/**"
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
prefect-plugin:
runs-on: ubuntu-latest
env:
SPARK_VERSION: 3.0.3
DATAHUB_TELEMETRY_ENABLED: false
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
include:
- python-version: "3.8"
- python-version: "3.9"
- python-version: "3.10"
fail-fast: false
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
- uses: gradle/gradle-build-action@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: ./metadata-ingestion/scripts/install_deps.sh
- name: Install prefect package
run: ./gradlew :metadata-ingestion-modules:prefect-plugin:lint :metadata-ingestion-modules:prefect-plugin:testQuick
- name: pip freeze show list installed
if: always()
run: source metadata-ingestion-modules/prefect-plugin/venv/bin/activate && pip freeze
- uses: actions/upload-artifact@v3
if: ${{ always() && matrix.python-version == '3.10'}}
with:
name: Test Results (Prefect Plugin ${{ matrix.python-version}})
path: |
**/build/reports/tests/test/**
**/build/test-results/test/**
**/junit.*.xml
!**/binary/**
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
fail_ci_if_error: false
flags: prefect,prefect-${{ matrix.extra_pip_extras }}
name: pytest-prefect-${{ matrix.python-version }}
verbose: true

event-file:
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Event File
path: ${{ github.event_path }}
2 changes: 1 addition & 1 deletion .github/workflows/test-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test Results

on:
workflow_run:
workflows: ["build & test", "metadata ingestion", "Airflow Plugin", "Dagster Plugin", "GX Plugin"]
workflows: ["build & test", "metadata ingestion", "Airflow Plugin", "Dagster Plugin", "Prefect Plugin", "GX Plugin"]
types:
- completed

Expand Down
11 changes: 11 additions & 0 deletions datahub-web-react/src/images/dagsterlogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions datahub-web-react/src/images/prefectlogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs-website/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ task yarnGenerate(type: YarnTask, dependsOn: [yarnInstall,
':metadata-ingestion:buildWheel',
':metadata-ingestion-modules:airflow-plugin:buildWheel',
':metadata-ingestion-modules:dagster-plugin:buildWheel',
':metadata-ingestion-modules:prefect-plugin:buildWheel',
':metadata-ingestion-modules:gx-plugin:buildWheel',
]) {
inputs.files(projectMdFiles)
Expand Down
13 changes: 12 additions & 1 deletion docs-website/filterTagIndexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"tags": {
"Platform Type": "Orchestrator",
"Connection Type": "Pull",
"Features": "Stateful Ingestion, UI Ingestion, Status Aspect"
"Features": "Status Aspect"
}
},
{
Expand Down Expand Up @@ -429,6 +429,17 @@
"Features": "Stateful Ingestion, Lower Casing, Status Aspect"
}
},
{
"Path": "docs/lineage/prefect",
"imgPath": "img/logos/platforms/prefect.svg",
"Title": "Prefect",
"Description": "Prefect is a modern workflow orchestration for data and ML engineers.",
"tags": {
"Platform Type": "Orchestrator",
"Connection Type": "Pull",
"Features": "Status Aspect"
}
},
{
"Path": "docs/generated/ingestion/sources/presto",
"imgPath": "img/logos/platforms/presto.svg",
Expand Down
1 change: 1 addition & 0 deletions docs-website/generateDocsDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ function copy_python_wheels(): void {
"../metadata-ingestion/dist",
"../metadata-ingestion-modules/airflow-plugin/dist",
"../metadata-ingestion-modules/dagster-plugin/dist",
"../metadata-ingestion-modules/prefect-plugin/dist",
"../metadata-ingestion-modules/gx-plugin/dist",
];

Expand Down
6 changes: 6 additions & 0 deletions docs-website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,11 @@ module.exports = {
id: "docs/lineage/openlineage",
label: "OpenLineage",
},
{
type: "doc",
id: "docs/lineage/prefect",
label: "Prefect",
},
{
type: "doc",
id: "metadata-integration/java/acryl-spark-lineage/README",
Expand Down Expand Up @@ -917,6 +922,7 @@ module.exports = {
// "metadata-integration/java/openlineage-converter/README"
//"metadata-ingestion-modules/airflow-plugin/README"
//"metadata-ingestion-modules/dagster-plugin/README"
//"metadata-ingestion-modules/prefect-plugin/README"
//"metadata-ingestion-modules/gx-plugin/README"
// "metadata-ingestion/schedule_docs/datahub", // we can delete this
// TODO: change the titles of these, removing the "What is..." portion from the sidebar"
Expand Down
2 changes: 2 additions & 0 deletions docs-website/src/pages/_components/Logos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const platformLogos = [
name: "CouchBase",
imageUrl: "/img/logos/platforms/couchbase.svg",
},
{ name: "Dagster", imageUrl: "/img/logos/platforms/dagster.png" },
{ name: "Databricks", imageUrl: "/img/logos/platforms/databricks.png" },
{ name: "DBT", imageUrl: "/img/logos/platforms/dbt.svg" },
{ name: "Deltalake", imageUrl: "/img/logos/platforms/deltalake.svg" },
Expand Down Expand Up @@ -87,6 +88,7 @@ const platformLogos = [
{ name: "Pinot", imageUrl: "/img/logos/platforms/pinot.svg" },
{ name: "PostgreSQL", imageUrl: "/img/logos/platforms/postgres.svg" },
{ name: "PowerBI", imageUrl: "/img/logos/platforms/powerbi.png" },
{ name: "Prefect", imageUrl: "/img/logos/platforms/prefect.svg" },
{ name: "Presto", imageUrl: "/img/logos/platforms/presto.svg" },
{ name: "Protobuf", imageUrl: "/img/logos/platforms/protobuf.png" },
{ name: "Pulsar", imageUrl: "/img/logos/platforms/pulsar.png" },
Expand Down
1 change: 1 addition & 0 deletions docs-website/static/img/logos/platforms/prefect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading