Skip to content

test(cli): add minio export-import v2 e2e - #8314

Merged
fengjiachun merged 6 commits into
mainfrom
feat/export-import-v2-minio-e2e
Jun 24, 2026
Merged

test(cli): add minio export-import v2 e2e#8314
fengjiachun merged 6 commits into
mainfrom
feat/export-import-v2-minio-e2e

Conversation

@fengjiachun

@fengjiachun fengjiachun commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a MinIO/S3-compatible export/import-v2 roundtrip E2E using the existing GT_S3_* test environment convention
  • run all ignored export/import-v2 E2E tests serially in CI after starting the MinIO fixture and a GreptimeDB standalone server
  • keep the live E2E tests #[ignore] so normal unit/nextest runs remain stable; CI invokes them explicitly with --ignored --test-threads=1

Stack

Stacked on #8313 (feat/import-v2-negative-e2e). Review this PR against feat/import-v2-negative-e2e.

Validation

  • cargo fmt --all -- --check
  • cargo test -p cli data::export_v2::tests::export_import_v2_minio_roundtrip_e2e --lib -- --exact
  • cargo test -p cli data::export_v2::tests --lib -- --ignored --test-threads=1 with local MinIO fixture and GreptimeDB standalone: 8 passed
  • cargo clippy -p cli --lib --tests -- -D warnings
  • cargo build --bin greptime --features "dashboard,pg_kvbackend,mysql_kvbackend,vector_index"
  • git diff --check

Refs #7786

@fengjiachun
fengjiachun requested a review from a team as a code owner June 16, 2026 15:19
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@github-actions github-actions Bot added size/S docs-not-required This change does not impact docs. labels Jun 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new end-to-end integration test, export_import_v2_minio_roundtrip_e2e, to verify the export, verification, import, and deletion of v2 data using MinIO. The reviewer suggested refactoring the duplicated environment variable extraction and database client setup logic into a shared helper struct to improve maintainability across the test suite.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/cli/src/data/export_v2/tests.rs Outdated
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: cd4714a606

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun
fengjiachun force-pushed the feat/import-v2-negative-e2e branch from 1a25faa to fdc483c Compare June 16, 2026 15:30
@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from cd4714a to fa7b537 Compare June 16, 2026 15:30
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: fa7b5379cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun
fengjiachun force-pushed the feat/import-v2-negative-e2e branch from fdc483c to 3b8195e Compare June 16, 2026 15:35
@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from fa7b537 to 114919f Compare June 16, 2026 15:35
@fengjiachun
fengjiachun force-pushed the feat/import-v2-negative-e2e branch from 3b8195e to 67fa311 Compare June 16, 2026 15:39
@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from 114919f to 695b58a Compare June 16, 2026 15:39
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 2cf50e882d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 6eb7c88890

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun
fengjiachun force-pushed the feat/import-v2-negative-e2e branch from 67fa311 to 301e8f7 Compare June 17, 2026 01:56
@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from 6eb7c88 to 8e65db1 Compare June 17, 2026 01:56
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e65db15aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cli/src/data/export_v2/tests.rs Outdated
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from 16d6f89 to bfd75cf Compare June 22, 2026 05:14
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: bfd75cfae0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun
fengjiachun force-pushed the feat/import-v2-negative-e2e branch 2 times, most recently from e8245c4 to d133d54 Compare June 23, 2026 05:48
Base automatically changed from feat/import-v2-negative-e2e to main June 23, 2026 07:32
Signed-off-by: jeremyhi <fengjiachun@gmail.com>
Signed-off-by: jeremyhi <fengjiachun@gmail.com>
Signed-off-by: jeremyhi <fengjiachun@gmail.com>
@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from bfd75cf to 2bfb5af Compare June 23, 2026 09:26
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 2bfb5af777

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@github-actions github-actions Bot added the ci label Jun 23, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: f0d9d3b918

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from f0d9d3b to cff9164 Compare June 23, 2026 12:18
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: cff91648cc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Signed-off-by: jeremyhi <fengjiachun@gmail.com>
@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from cff9164 to 7776fa1 Compare June 23, 2026 12:30
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 7776fa19d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cli/src/data/export_v2/tests.rs Outdated
Comment thread src/cli/src/data/export_v2/tests.rs Outdated
Signed-off-by: jeremyhi <fengjiachun@gmail.com>
@fengjiachun
fengjiachun force-pushed the feat/export-import-v2-minio-e2e branch from eb6db8f to e5f660b Compare June 24, 2026 07:33
@fengjiachun

Copy link
Copy Markdown
Collaborator Author

@codex review

discord9

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: e5f660b0aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fengjiachun
fengjiachun enabled auto-merge June 24, 2026 08:37
@fengjiachun
fengjiachun added this pull request to the merge queue Jun 24, 2026
Merged via the queue into main with commit 619460f Jun 24, 2026
88 of 90 checks passed
@fengjiachun
fengjiachun deleted the feat/export-import-v2-minio-e2e branch June 24, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci docs-not-required This change does not impact docs. size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants