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

integration test config #5058

Merged
merged 9 commits into from
Mar 15, 2024
Merged

integration test config #5058

merged 9 commits into from
Mar 15, 2024

Conversation

troychiu
Copy link
Member

@troychiu troychiu commented Mar 14, 2024

Tracking issue

NA

Why are the changes needed?

Local integration test for flyteadmin will fail because of the out-of-dated db config.

What changes were proposed in this pull request?

Set sandbox db as default and add a environment variable in github action.
With these changes, contributors can easily run integration test locally and the github action can keep running

Signed-off-by: troychiu <[email protected]>
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.00%. Comparing base (44914b1) to head (8dc337c).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5058   +/-   ##
=======================================
  Coverage   59.00%   59.00%           
=======================================
  Files         645      645           
  Lines       55578    55578           
=======================================
  Hits        32792    32792           
  Misses      20194    20194           
  Partials     2592     2592           
Flag Coverage Δ
unittests 59.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

flyteadmin/tests/bootstrap.go Outdated Show resolved Hide resolved
flyteadmin/tests/bootstrap.go Outdated Show resolved Hide resolved
Signed-off-by: troychiu <[email protected]>
Signed-off-by: troychiu <[email protected]>
Signed-off-by: troychiu <[email protected]>
Signed-off-by: troychiu <[email protected]>
Comment on lines +47 to +48
// Run `flytectl demo start` to start the sandbox
func getSandboxDbConfig() *database.DbConfig {
Copy link
Member

Choose a reason for hiding this comment

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

cc @ysysys3074 you can try this config to run integration tests

Signed-off-by: troychiu <[email protected]>
@troychiu troychiu marked this pull request as ready for review March 14, 2024 22:32
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Mar 14, 2024
@troychiu troychiu requested a review from katrogan March 14, 2024 22:50
katrogan
katrogan previously approved these changes Mar 15, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 15, 2024
Signed-off-by: troychiu <[email protected]>
katrogan
katrogan previously approved these changes Mar 15, 2024
flyteadmin/tests/bootstrap.go Outdated Show resolved Hide resolved
Signed-off-by: troychiu <[email protected]>
@troychiu
Copy link
Member Author

Catch some places that I didn't modify correspondingly. (don't know why IDE didn't catch that)

@troychiu troychiu requested a review from katrogan March 15, 2024 18:22
Signed-off-by: troychiu <[email protected]>
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 15, 2024
Copy link
Contributor

@katrogan katrogan left a comment

Choose a reason for hiding this comment

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

:shipit:

@pingsutw pingsutw merged commit 04dc245 into master Mar 15, 2024
48 checks passed
@pingsutw pingsutw deleted the integration-test-config branch March 15, 2024 20:26
yubofredwang pushed a commit to yubofredwang/flyte that referenced this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants