Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Skip tests if C2/ONNX models cannot be read#18494

Closed
nimin98 wants to merge 1 commit into
pytorch:masterfrom
nimin98:export-D14442241
Closed

Skip tests if C2/ONNX models cannot be read#18494
nimin98 wants to merge 1 commit into
pytorch:masterfrom
nimin98:export-D14442241

Conversation

@nimin98
Copy link
Copy Markdown
Contributor

@nimin98 nimin98 commented Mar 26, 2019

Summary:
Today we have some C2 end2end test run requiring reading model data from external filesystem (for example, Gluster and AWS). This could be a source for flaky test when the external filesystems are not reachable during the tests.

In this diff, we add try/catch logic around where we download models and open model files from external system. In case such attempts fails, we will catch the excption and let the unittest skip the current test instead of failure.

I also refactor the code a little bit by removing some duplicated logic on downloading and build the c2 model data. It has been duplicated in two classes and a few functions...

Differential Revision: D14442241

Summary:
Pull Request resolved: pytorch#18494

Today we have some C2 end2end test run requiring reading model data from external filesystem (for example, Gluster and AWS). This could be a source for flaky test when the external filesystems are not reachable during the tests.

In this diff, we add try/catch logic around where we download models and open model files from external system. In case such attempts fails, we will catch the excption and let the unittest skip the current test instead of failure.

I also refactor the code a little bit by removing some duplicated logic on downloading and build the c2 model data. It has been duplicated in two classes and a few functions...

Differential Revision: D14442241

fbshipit-source-id: dd38f9a109ca9f97992297dab27fd1fff9b0400f
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in c3e3c5c.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#18494

Today we have some C2 end2end test run requiring reading model data from external filesystem (for example, Gluster and AWS). This could be a source for flaky test when the external filesystems are not reachable during the tests.

In this diff, we add try/catch logic around where we download models and open model files from external system. In case such attempts fails, we will catch the excption and let the unittest skip the current test instead of failure.

I also refactor the code a little bit by removing some duplicated logic on downloading and build the c2 model data. It has been duplicated in two classes and a few functions...

Reviewed By: yinghai

Differential Revision: D14442241

fbshipit-source-id: da8bf56c8d096efa34ca2070de5cd10a18aad70c
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