Skip to content

[bulk][split-218 #91] Install faker only for fill verb (bu-56r) - #46

Closed
relentlesscol wants to merge 1 commit into
mainfrom
polecat/bu-56r
Closed

[bulk][split-218 #91] Install faker only for fill verb (bu-56r)#46
relentlesscol wants to merge 1 commit into
mainfrom
polecat/bu-56r

Conversation

@relentlesscol

Copy link
Copy Markdown
Owner

Summary

Issue awslabs#91. Only install the faker dependency when the fill verb is invoked — speeds up startup for all other commands.

TDD REQUIRED: (1) Write a failing unit test that asserts faker is not imported/installed for non-fill verbs. (2) Implement conditional install. (3) make test must pass. Single-issue PR.

Files: client/src/python_modules/. Tests: tests/client/.

Implementation notes

Implemented: faker now installed only at runtime for fill verb. Removed from bootstrap DefaultArguments, injected in _get_glue_job_arguments when XAction=fill. All 1325 tests pass.

Refinery handoff

  • Issue: bu-56r (task, P2)
  • Source branch: polecat/bu-56r
  • Target: main
  • Rebased on main via Gastown Refinery.

Move faker from Glue job DefaultArguments (installed on every run) to a
runtime argument injected only when XAction=fill. This eliminates the
pip install overhead for all other verbs (load, copy, delete, find, etc).

Fixes awslabs#91
@relentlesscol

Copy link
Copy Markdown
Owner Author

Promoted to upstream: awslabs#223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant