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

last error #1364

Merged
merged 88 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
70a0825
Strip newline from client secret (#1163)
eapolinario Sep 15, 2022
51f34ba
Adds docstrings for pod task (#1153)
SmritiSatyanV Sep 15, 2022
a0d6927
Update clis.rst (#1166)
SmritiSatyanV Sep 15, 2022
aedcfd4
Execution model fields (#1164)
katrogan Sep 15, 2022
495894d
Overwrite SQLite3 Task image (#1165)
pingsutw Sep 16, 2022
21ae290
hugging Face Datasets Plugin (#1116)
esadler-hbo Sep 16, 2022
cfcccb8
Flytekit dbt plugin (#1150)
eapolinario Sep 17, 2022
2ecd653
refreshing examples and to_html() method (#1169)
murilommen Sep 22, 2022
245c414
Open HashMethod to all types (#1171)
eapolinario Sep 23, 2022
41f7750
Return None for SyncCheckpoint.read() when src is empty (#1189)
andrewwdye Sep 24, 2022
3758b82
fix: plugins/flytekit-k8s-pod/requirements.txt to reduce vulnerabilit…
snyk-bot Sep 28, 2022
63ad4fc
pyflyte non-fast register (#1205)
pingsutw Sep 29, 2022
0bd3261
fix bug (#1216)
wild-endeavor Oct 3, 2022
605639a
Add support chain multiple tasks (#1222)
pingsutw Oct 6, 2022
55c1c3e
Fix handling of Optional in the DataclassTransformer (#1225)
eapolinario Oct 6, 2022
d910cda
Bump protobuf versions in requirements (#1228)
eapolinario Oct 7, 2022
ea1437a
Enable use of image stanza in `pyflyte register` and other small chan…
eapolinario Oct 7, 2022
91db60e
Handle special characters in snowflake query (#1221)
pingsutw Oct 7, 2022
92ef28e
[Docs] Added doc on how to handle a large response when using FlyteRe…
Ln11211 Oct 7, 2022
3d008e8
Updates flytekit API reference guide (#1204)
samhita-alla Oct 7, 2022
13319cb
Update control_plane.rst doc (#1229)
Ln11211 Oct 7, 2022
f5d1f0d
Fix the failing tests when run on a system that has a GPU available. …
dennisobrien Oct 7, 2022
9b8f255
Adds support for modifying allow_pickle and mmap_mode in numpy array …
samhita-alla Oct 7, 2022
b1dbab9
Use console endpoint config if available (#1233)
andrewwdye Oct 13, 2022
36dd82b
Stable cache keys in the case of nested dictionaries (#1231)
eapolinario Oct 13, 2022
ab9aa65
DBT plugin api reference doc update (#1232)
arpitbhardwaj Oct 13, 2022
3eb29f8
Set reasonable defaults for pandas dataframe default renderer (#1238)
eapolinario Oct 18, 2022
b7ecdf6
Walk inheritance hierarchy before checking is_dataclass in type_engin…
rahul-theorem Oct 18, 2022
c84c114
3006 - Added a version constraint for grpcio and grpcio-status (#1248)
dennisobrien Oct 20, 2022
1fa73a0
Install sklearn in default image and unify dockerfiles (#1246)
eapolinario Oct 20, 2022
918801f
Add support using dict in pyflyte run (#1247)
pingsutw Oct 20, 2022
b76cf84
Make decks opt-in (#1251)
wild-endeavor Oct 21, 2022
5608f80
fix: plugins/flytekit-modin/requirements.txt to reduce vulnerabilitie…
snyk-bot Oct 26, 2022
4aebc25
fix: pass gpu resource request and limit in ContainerTask (#1249)
flixr Oct 26, 2022
caf612d
Fixing Fast Registration for non root dirs (#1255)
kumare3 Oct 27, 2022
b1ff43e
vaex structured dataset and native types implementation (#1230)
ryankarlos Oct 28, 2022
19eaf89
MyPy Cleanup Incompatible Types Errors (#1245)
ryankarlos Oct 28, 2022
8ae879e
Install fsspec plugin in default image (#1256)
eapolinario Oct 28, 2022
ddde3f1
fix: plugins/flytekit-greatexpectations/requirements.txt to reduce vu…
snyk-bot Oct 28, 2022
f53537e
fix: doc-requirements.txt to reduce vulnerabilities (#1266)
snyk-bot Oct 28, 2022
ea3d3e9
fix: plugins/flytekit-greatexpectations/requirements.txt to reduce vu…
snyk-bot Oct 28, 2022
a1e1fa2
fix: doc-requirements.txt to reduce vulnerabilities (#1261)
EngHabu Oct 28, 2022
71da643
Bump joblib (#1210)
dependabot[bot] Oct 28, 2022
cef02aa
update flyteidl and get more data on error (#1235)
jerempy Oct 28, 2022
b787849
Add support dict in @dynamic (#1264)
pingsutw Oct 31, 2022
6c39022
Remove use TypeVar to denote the extension of a Flytefile #2870 (#1236)
jerempy Oct 31, 2022
bda16b2
update papermill container's command (#1260)
pingsutw Oct 31, 2022
2cfaa56
Update cookiecutter checkout branch (#1268)
eapolinario Nov 2, 2022
44ffdb4
Add support flyteDir in union type (#1270)
pingsutw Nov 2, 2022
cb651e8
Do not fail if push to codecov fails (#1301)
eapolinario Nov 3, 2022
aa1e8fa
fix: plugins/flytekit-papermill/dev-requirements.txt to reduce vulner…
eapolinario Nov 3, 2022
3ffb6df
Build arm images (#1305)
andrewwdye Nov 4, 2022
28c17fb
add support for dbt freshness (#1257)
kiliangojek Nov 4, 2022
12b283d
fix: plugins/flytekit-papermill/requirements.txt to reduce vulnerabil…
eapolinario Nov 4, 2022
8bd342d
Bump wheel to 0.38.0 (#1308)
eapolinario Nov 4, 2022
3b5d15a
Add missing secret_requests to ContainerTask (#1307)
flixr Nov 4, 2022
10484cc
Auto Display of Deck in Jupyter notebook (#1161)
kumare3 Nov 8, 2022
da905a8
Bump requirements and restrict grpcio and grpcio-status (#1309)
eapolinario Nov 9, 2022
9e40690
Download onchinook.zip only once in the tests (#1312)
pingsutw Nov 10, 2022
a626e83
Allow for environment variables to be defined in the pod spec (#1330)
eapolinario Nov 16, 2022
d53ebc6
Relax max flytekit version constraint in Huggingface plugin (#1332)
sbrunk Nov 16, 2022
1aea88c
Improve pyflyte register (#1237)
kumare3 Nov 17, 2022
3acbc48
Adds tags to doc pages (#1328)
samhita-alla Nov 18, 2022
dd3fcae
Add missing ephemermal/storage resources to other container tasks (#1…
flixr Nov 19, 2022
f2dd4aa
Relax pyarrow constraint (#1340)
eapolinario Nov 21, 2022
83fd573
[Temporary fix] Comment out click test (#1347)
wild-endeavor Nov 22, 2022
7ceaae6
Override node name (#1344)
honnix Nov 22, 2022
4de18a1
feat: add type transformer for sklearn BaseEstimator (#1244)
techytushar Nov 23, 2022
430795d
Dynamic local execution (#1343)
wild-endeavor Nov 23, 2022
7cf5b68
Dbt freshness debug clean (#1321)
kiliangojek Nov 25, 2022
a47e383
Use shutil instead of setuptools/distutils to copy dirs (#1349)
wild-endeavor Nov 28, 2022
f616cd4
Add node output for VoidPromise (#1353)
honnix Nov 28, 2022
46abe91
bug fix: vaex plugin (#1356)
samhita-alla Nov 29, 2022
c0d7fca
Skip copying files to the remote path if the directory is empty (#1345)
pingsutw Nov 30, 2022
fb10e4b
Remove plugins from flytekit core packaging (#1357)
wild-endeavor Nov 30, 2022
7994f47
Add support to choose docker build target architecture (#1350)
andresgomezfrr Dec 1, 2022
bc29749
Sanitize query template input in sqlite task (#1359)
eapolinario Dec 5, 2022
467a137
TypeTransformer for reading and writing from TensorFlowRecord format …
ryankarlos Dec 6, 2022
2340e5d
Bump numpy (#1170)
dependabot[bot] Dec 6, 2022
53cc246
update ray plugin dependency (#1361)
pingsutw Dec 7, 2022
5f43944
last error
wild-endeavor Dec 7, 2022
c5881fa
update logic one more time, now look to see if there is only one hand…
wild-endeavor Dec 8, 2022
f3617f0
finish test that works
wild-endeavor Dec 8, 2022
5a20dc2
revert test to broken state
wild-endeavor Dec 8, 2022
929a1f6
i think this should be here
wild-endeavor Dec 8, 2022
56014d7
Bring in buf protobufs (#1363)
eapolinario Dec 8, 2022
0c9490b
read kwargs file_format
wild-endeavor Dec 8, 2022
f6feaf3
Merge remote-tracking branch 'origin/master' into bq-bug-1-changes
wild-endeavor Dec 8, 2022
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
15 changes: 8 additions & 7 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
FLYTE_SDK_LOGGING_LEVEL: 10 # debug
FLYTE_SDK_LOGGING_LEVEL: 10 # debug

jobs:
build:
Expand Down Expand Up @@ -49,11 +49,11 @@ jobs:
pip freeze
- name: Test with coverage
run: |
pytest tests/flytekit/unit -m "not sandbox_test" --cov=./ --cov-report=xml
make unit_test_codecov
- name: Codecov
uses: codecov/[email protected]
with:
fail_ci_if_error: true # optional (default = false)
fail_ci_if_error: false

build-plugins:
runs-on: ubuntu-latest
Expand All @@ -68,6 +68,7 @@ jobs:
- flytekit-aws-sagemaker
- flytekit-bigquery
- flytekit-data-fsspec
- flytekit-dbt
- flytekit-deck-standard
- flytekit-dolt
- flytekit-greatexpectations
Expand All @@ -87,6 +88,7 @@ jobs:
- flytekit-snowflake
- flytekit-spark
- flytekit-sqlalchemy
- flytekit-vaex
- flytekit-whylogs
exclude:
# flytekit-modin depends on ray which does not have a 3.10 wheel yet.
Expand All @@ -109,8 +111,6 @@ jobs:
# Issue tracked: https://github.com/whylabs/whylogs/issues/697
- python-version: 3.10
plugin-names: "flytekit-whylogs"


steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -136,7 +136,6 @@ jobs:
run: |
cd plugins/${{ matrix.plugin-names }}
coverage run -m pytest tests

lint:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -178,4 +177,6 @@ jobs:
python -m pip install --upgrade pip==21.2.4 setuptools wheel
pip install -r doc-requirements.txt
- name: Build the documentation
run: make -C docs html
run: |
# TODO: Remove after buf migration is done and packages updated
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python make -C docs html
72 changes: 51 additions & 21 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,61 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Build & Push Flytekit Python${{ matrix.python-version }} Docker Image to Github Registry
uses: whoan/docker-build-with-cache-action@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'release' }}
uses: docker/login-action@v1
with:
# https://docs.github.com/en/packages/learn-github-packages/publishing-a-package
registry: ghcr.io
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: "${{ secrets.FLYTE_BOT_PAT }}"
image_name: ${{ github.repository_owner }}/flytekit
image_tag: py${{ matrix.python-version }}-latest,py${{ matrix.python-version }}-${{ github.sha }},py${{ matrix.python-version }}-${{ needs.deploy.outputs.version }}
push_git_tag: true
push_image_and_stages: true
registry: ghcr.io
build_extra_args: "--compress=true --build-arg=VERSION=${{ needs.deploy.outputs.version }} --build-arg=DOCKER_IMAGE=ghcr.io/flyteorg/flytekit:py${{ matrix.python-version }}-${{ needs.deploy.outputs.version }}"
- name: Prepare Flytekit Image Names
id: flytekit-names
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/${{ github.repository_owner }}/flytekit
tags: |
py${{ matrix.python-version }}-latest
py${{ matrix.python-version }}-${{ github.sha }}
py${{ matrix.python-version }}-${{ needs.deploy.outputs.version }}
- name: Build & Push Flytekit Python${{ matrix.python-version }} Docker Image to Github Registry
uses: docker/build-push-action@v2
with:
context: .
dockerfile: Dockerfile.py${{ matrix.python-version }}
platforms: linux/arm64, linux/amd64
push: ${{ github.event_name == 'release' }}
tags: ${{ steps.flytekit-names.outputs.tags }}
build-args: |
VERSION=${{ needs.deploy.outputs.version }}
DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/flytekit:py${{ matrix.python-version }}-${{ needs.deploy.outputs.version }}
PYTHON_VERSION=${{ matrix.python-version }}
file: Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Prepare SQLAlchemy Image Names
id: sqlalchemy-names
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/${{ github.repository_owner }}/flytekit
tags: |
py${{ matrix.python-version }}-sqlalchemy-latest
py${{ matrix.python-version }}-sqlalchemy-${{ github.sha }}
py${{ matrix.python-version }}-sqlalchemy-${{ needs.deploy.outputs.version }}
- name: Push SQLAlchemy Image to GitHub Registry
uses: whoan/docker-build-with-cache-action@v5
uses: docker/build-push-action@v2
with:
# https://docs.github.com/en/packages/learn-github-packages/publishing-a-package
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: "${{ secrets.FLYTE_BOT_PAT }}"
image_name: ${{ github.repository_owner }}/flytekit
image_tag: py${{ matrix.python-version }}-sqlalchemy-latest,py${{ matrix.python-version }}-sqlalchemy-${{ github.sha }},py${{ matrix.python-version }}-sqlalchemy-${{ needs.deploy.outputs.version }}
push_git_tag: true
push_image_and_stages: true
registry: ghcr.io
build_extra_args: "--compress=true --build-arg=VERSION=${{ needs.deploy.outputs.version }}"
context: "./plugins/flytekit-sqlalchemy/"
dockerfile: Dockerfile.py${{ matrix.python-version }}
platforms: linux/arm64, linux/amd64
push: ${{ github.event_name == 'release' }}
tags: ${{ steps.sqlalchemy-names.outputs.tags }}
build-args: |
VERSION=${{ needs.deploy.outputs.version }}
file: ./plugins/flytekit-sqlalchemy/Dockerfile.py${{ matrix.python-version }}
cache-from: type=gha
cache-to: type=gha,mode=max
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ docs/source/plugins/generated/
htmlcov
*.ipynb
*dat
source/_tags/
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ARG PYTHON_VERSION
FROM python:${PYTHON_VERSION}-slim-buster

MAINTAINER Flyte Team <[email protected]>
LABEL org.opencontainers.image.source https://github.com/flyteorg/flytekit

WORKDIR /root
ENV PYTHONPATH /root

ARG VERSION
ARG DOCKER_IMAGE

RUN apt-get update && apt-get install build-essential -y

# Pod tasks should be exposed in the default image
RUN pip install -U flytekit==$VERSION \
flytekitplugins-pod==$VERSION \
flytekitplugins-deck-standard==$VERSION \
flytekitplugins-data-fsspec[aws]==$VERSION \
flytekitplugins-data-fsspec[gcp]==$VERSION \
scikit-learn

ENV FLYTE_INTERNAL_IMAGE "$DOCKER_IMAGE"
18 changes: 0 additions & 18 deletions Dockerfile.py3.10

This file was deleted.

18 changes: 0 additions & 18 deletions Dockerfile.py3.7

This file was deleted.

18 changes: 0 additions & 18 deletions Dockerfile.py3.8

This file was deleted.

18 changes: 0 additions & 18 deletions Dockerfile.py3.9

This file was deleted.

2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# include folders
recursive-include flytekit *
recursive-include flytekit_scripts *
recursive-include plugins *

# include specific files
include README.md
Expand All @@ -25,6 +24,7 @@ recursive-exclude tests *
recursive-exclude docs *
recursive-exclude boilerplate *
recursive-exclude .github *
recursive-exclude plugins *

# exclude dist folder:
# - contains the generated *.tar.gz and .whl files.
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,18 @@ spellcheck: ## Runs a spellchecker over all code and documentation
.PHONY: test
test: lint unit_test

.PHONY: unit_test_codecov
unit_test_codecov:
# Ensure coverage file
rm coverage.xml || true
$(MAKE) CODECOV_OPTS="--cov=./ --cov-report=xml --cov-append" unit_test

.PHONY: unit_test
unit_test:
pytest -m "not sandbox_test" tests/flytekit/unit
# Skip tensorflow tests and run them with the necessary env var set so that a working (albeit slower)
# library is used to serialize/deserialize protobufs is used.
pytest -m "not sandbox_test" tests/flytekit/unit/ --ignore=tests/flytekit/unit/extras/tensorflow ${CODECOV_OPTS} && \
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python pytest tests/flytekit/unit/extras/tensorflow ${CODECOV_OPTS}

requirements-spark2.txt: export CUSTOM_COMPILE_COMMAND := make requirements-spark2.txt
requirements-spark2.txt: requirements-spark2.in install-piptools
Expand Down
6 changes: 5 additions & 1 deletion dev-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ codespell
google-cloud-bigquery
google-cloud-bigquery-storage
IPython
torch
tensorflow==2.8.1
# Newer versions of torch bring in nvidia dependencies that are not present in windows, so
# we put this constraint while we do not have per-environment requirements files
torch<=1.12.1
scikit-learn
Loading