forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump mlserver to 0.5.3 (kubeflow#1853)
* Bump mlserver to 0.5.0 * Change umask and set 777 for new folders * Remove comment * Add changes in go.mod * Update storage URI in MMS tests * Update expected results * Fix linter * Update storage URIs in other tests and docs * Try extending sleep * Add more debug info * Reduce sleep * uncomment lines * Disable errexit temporarily to get debug output * Add more logs to e2e script * Kick-off tests again * Try increasing memory reqs * Remove breakpoint * Bump up memory reqs to 512 * Bump MLServer image to 0.5.3 * Revert some of the debugging changes * Change memory requirements for MMS * Try to increase memory in case is OOO again * Try reducing amount of memory * Reduce memory usage on MMS test
- Loading branch information
Adrian Gonzalez-Martin
authored
Dec 1, 2021
1 parent
1754f08
commit f90c669
Showing
10 changed files
with
78 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package storage | ||
|
||
import ( | ||
"io/ioutil" | ||
"os" | ||
"path" | ||
"syscall" | ||
"testing" | ||
|
||
"github.com/onsi/gomega" | ||
) | ||
|
||
func TestCreate(t *testing.T) { | ||
g := gomega.NewGomegaWithT(t) | ||
|
||
// This would get called in StartPullerAndProcessModels | ||
syscall.Umask(0) | ||
|
||
tmpDir, _ := ioutil.TempDir("", "test-create-") | ||
defer os.RemoveAll(tmpDir) | ||
|
||
folderPath := path.Join(tmpDir, "foo") | ||
filePath := path.Join(folderPath, "bar.txt") | ||
f, err := Create(filePath) | ||
defer f.Close() | ||
|
||
g.Expect(err).To(gomega.BeNil()) | ||
g.Expect(folderPath).To(gomega.BeADirectory()) | ||
|
||
info, _ := os.Stat(folderPath) | ||
mode := info.Mode() | ||
expectedMode := os.FileMode(0777) | ||
g.Expect(mode.Perm()).To(gomega.Equal(expectedMode)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters