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

ci: temp fix for models test #2949

Merged
merged 1 commit into from Aug 31, 2022
Merged

ci: temp fix for models test #2949

merged 1 commit into from Aug 31, 2022

Conversation

sauyon
Copy link
Contributor

@sauyon sauyon commented Aug 29, 2022

Another temporary fix for the weird store issue that seems to occur only on actions.

@sauyon sauyon requested a review from a team as a code owner August 29, 2022 13:53
@sauyon sauyon requested review from larme and removed request for a team August 29, 2022 13:53
@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #2949 (1e5940c) into main (3de0c9a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2949   +/-   ##
=======================================
  Coverage   70.62%   70.62%           
=======================================
  Files         104      104           
  Lines        9534     9534           
=======================================
  Hits         6733     6733           
  Misses       2801     2801           

@@ -49,6 +50,8 @@ def test_models(tmpdir: "Path"):
) as testmodel:
testmodel1tag = testmodel.tag

time.sleep(1)
Copy link
Member

Choose a reason for hiding this comment

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

maybe we can check whether this is running in actions

Suggested change
time.sleep(1)
if os.getenv("GITHUB_ACTIONS"):
...

So that when test run locally we don't have to sleep it

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please address address @aarnphm's suggestion in a following PR if needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we shouldn't special case our tests too much, it'll just make debugging harder.

Though I should probably debug what's going on here at some point...

Copy link
Collaborator

@ssheng ssheng left a comment

Choose a reason for hiding this comment

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

I still think we can use the mocked timestamp for unit testing purpose but I'm OK with this change, too.

@ssheng ssheng merged commit 83d8a30 into bentoml:main Aug 31, 2022
@aarnphm aarnphm deleted the fix-model-test branch August 31, 2022 01:03
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.

None yet

3 participants