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

Added test workflow with basic python test #32

Merged
merged 11 commits into from
Jul 13, 2023
Merged

Conversation

lynnro314
Copy link
Contributor

No description provided.

@lynnro314 lynnro314 force-pushed the add-integration-tests branch 2 times, most recently from 1566344 to 13c76f3 Compare July 10, 2023 12:00
@lynnro314 lynnro314 force-pushed the add-integration-tests branch 2 times, most recently from 53a52e8 to 319829f Compare July 12, 2023 13:22
@lynnro314 lynnro314 force-pushed the add-integration-tests branch 3 times, most recently from f988ede to a1494e9 Compare July 12, 2023 15:50
@lynnro314 lynnro314 force-pushed the add-integration-tests branch 6 times, most recently from 527cf32 to 187034e Compare July 12, 2023 16:56
@lynnro314 lynnro314 marked this pull request as ready for review July 13, 2023 08:09
@lynnro314 lynnro314 requested a review from johnnyaug July 13, 2023 08:09
@lynnro314 lynnro314 self-assigned this Jul 13, 2023
Copy link
Contributor

@johnnyaug johnnyaug left a comment

Choose a reason for hiding this comment

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

Nice! minor comments


jobs:
iceberg-isolation-test:
name: Test lakeFS isolation with iceberg
Copy link
Contributor

Choose a reason for hiding this comment

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

Why specifically "isolation"? This is testing lakeFS with Iceberg

runs-on: ubuntu-20.04
services:
lakefs:
image: "treeverse/lakefs:latest"
Copy link
Contributor

Choose a reason for hiding this comment

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

May be better to lock the version number here. There is a trade-off, but I think consistency wins over freshness.

run: |
python ./test/run-test.py \
--storage_namespace s3://iceberg-lakefs-testing/${{ github.run_number }}-s3-gateway/${{ steps.unique.outputs.value }} \
--repository gateway-test \
Copy link
Contributor

Choose a reason for hiding this comment

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

newline

lfs_client.branches.create_branch(repo_name, BranchCreation(name="dev", source="main"))
df_main = spark.read.table("lakefs.main.nyc.permits")
df_dev = spark.read.table("lakefs.dev.nyc.permits")
assert (df_main.schema == df_dev.schema) and (df_main.collect() == df_dev.collect()), "main and dev tables should be equal"
Copy link
Contributor

Choose a reason for hiding this comment

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

In a future PR, can we use some Python testing framework here? To manage the test cases and report the failures.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course, this is how it will be.

@lynnro314 lynnro314 merged commit c9c0f1b into main Jul 13, 2023
1 check passed
@lynnro314 lynnro314 deleted the add-integration-tests branch July 13, 2023 09:39
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.

2 participants