Skip to content

refactor(tests): Apply OPENDAL_TEST for behavior test#3322

Merged
Xuanwo merged 14 commits intomainfrom
refactor-test
Oct 17, 2023
Merged

refactor(tests): Apply OPENDAL_TEST for behavior test#3322
Xuanwo merged 14 commits intomainfrom
refactor-test

Conversation

@Xuanwo
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo commented Oct 17, 2023

This PR, inspired by @eryue0220's PR (#3297), simplifies test behavior control through an environment variable rather than arguments. This improvement eliminates the need for code repetition across all services.

  • We don't support the use case like running multiple tests now which is rarely.
  • We don't need to set OPENDAL_XXX_TEST anymore.

Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo requested a review from PsiACE as a code owner October 17, 2023 12:10
@github-actions github-actions Bot added the releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" label Oct 17, 2023
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Comment thread .github/workflows/service_test_foundationdb.yml Outdated
Comment thread .github/workflows/service_test_atomicserver.yml Outdated
Comment thread .github/workflows/service_test_ipmfs.yml
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo requested a review from suyanhanx October 17, 2023 13:25
@Xuanwo
Copy link
Copy Markdown
Member Author

Xuanwo commented Oct 17, 2023

cc @suyanhanx, would you like to take another review?

Copy link
Copy Markdown
Member

@suyanhanx suyanhanx left a comment

Choose a reason for hiding this comment

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

Thanks

@suyanhanx
Copy link
Copy Markdown
Member

suyanhanx commented Oct 17, 2023

May we restart the wasabi job? Some cases are very slow.
Seems ok. Just slow.

@Xuanwo Xuanwo merged commit 5d2cb57 into main Oct 17, 2023
@Xuanwo Xuanwo deleted the refactor-test branch October 17, 2023 14:02
run: cargo nextest run behavior
env:
OPENDAL_S3_TEST: on
OPENDAL_TEST: s3
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Xuanwo It seems we should align Java's behavior test with this option change?

If so, may you create an issue and ping me >_<

Copy link
Copy Markdown
Member Author

@Xuanwo Xuanwo Oct 17, 2023

Choose a reason for hiding this comment

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

DONE #3323

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe python also needs to align?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Tracked at #3267

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

Labels

releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants