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

lakectl support create repository with sample data #8628

Merged
merged 5 commits into from
Feb 8, 2025

Conversation

nopcoder
Copy link
Contributor

@nopcoder nopcoder commented Feb 7, 2025

Support create repository with sample data by passing '--sample-data' flag

Closes #8627

@nopcoder nopcoder added area/lakectl Issues related to lakeFS' command line interface (lakectl) include-changelog PR description should be included in next release changelog labels Feb 7, 2025
@nopcoder nopcoder self-assigned this Feb 7, 2025
Copy link

github-actions bot commented Feb 7, 2025

♻️ PR Preview 9734fab has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

Copy link

github-actions bot commented Feb 7, 2025

E2E Test Results - DynamoDB Local - Local Block Adapter

13 passed

Copy link

github-actions bot commented Feb 7, 2025

E2E Test Results - Quickstart

11 passed

@nopcoder nopcoder requested a review from a team February 8, 2025 10:04
Copy link
Contributor

@yonipeleg33 yonipeleg33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

"STORAGE": storage3,
"BRANCH": mainBranch,
}
RunCmdAndVerifySuccessWithFile(t, Lakectl()+" repo create lakefs://"+repoName3+" "+storage3+" --sample-data", false, "lakectl_repo_create_sample", vars)
Copy link
Contributor

@yonipeleg33 yonipeleg33 Feb 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: There's a command builder for lakectl tests, you can use it.
Here's an example

Copy link
Contributor Author

@nopcoder nopcoder Feb 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The builder doesn't give any additional value as I see, it doesn't quote args or provide additional functionality above contact. If you still think we should replace all test run of lakectl with the builder style. Lets discuss and address in a different PR.
  • Keeping the current usage match the rest of the tests in this function.
  • Wish to replace lakectl tests (not in this PR) with something more simple like https://bitfieldconsulting.com/posts/test-scripts. It may not match all the current requirements of the current lakectl_test but I think it will make running it outside esti and modify/add more test easy.

@nopcoder nopcoder merged commit f5ec65a into master Feb 8, 2025
39 checks passed
@nopcoder nopcoder deleted the feat/create-repo-sample branch February 8, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/lakectl Issues related to lakeFS' command line interface (lakectl) include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lakectl repo create: add sample-data flag
2 participants