<#3238 (backport) Fast registration runs into infi...
# flyte-github
c
#3238 (backport) Fast registration runs into infinite loop Pull request opened by pingsutw ## Tracking issue Closes flyteorg/flyte#6405 ## Why are the changes needed? In Spark fast registration workflows,
entrypoint.py
runs into an infinite loop while preparing to run the job
flytekit
is taking everything in the current working directory and zip it, the archive file (
flyte_wf.zip
) is placed in the same directory that is being archived.
shutil.make_archive
creates a zip file and archives the whole directory, including the zip file itself. In the case of Databricks clusters, it triggers a recursion and runs into an endless zipping loop. ## What changes were proposed in this pull request? The easiest way to fix this issue to create the archive outside of the directory to be archived. ## How was this patch tested? Built a docker image with the fixed flytekit version and tested it E2E. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This pull request addresses a critical bug in Spark fast registration workflows by preventing an infinite zipping loop through relocating archive creation to a temporary directory. It also fixes several issues including dependency constraints in pyproject.toml, potential uninitialized variable errors, improper FlyteFile API usage, and type mismatches in structured datasets. Unit tests added: False Estimated effort to review (1-5, lower is better): 5 flyteorg/flytekit