Repository: kurtosis-tech/kurtosis
Pull request #2030 (2024-01-08 20:14:11)

fix: treat size value as megabytes
## Description:
We expect(in DOCS) the user to enter value in megabytes but were never multiplying the value with the megaByteToByte multiplier


barnabasbusa: Could we actually use Gigabytes over megabytes? 
h4ck3rk3y: @barnabasbusa discussed with you, this fix is fine for now but i will support 5GB, 2.5TB or other values, please create a ticket!

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f80f2a1d3..cfa3d08bb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
 # Changelog
 
+## [0.86.1](https://github.com/kurtosis-tech/kurtosis/compare/0.86.0...0.86.1) (2024-01-08)
+
+
+### Features
+
+* add ability to set uid and gid ([#2024](https://github.com/kurtosis-tech/kurtosis/issues/2024)) ([2102164](https://github.com/kurtosis-tech/kurtosis/commit/2102164e3ed62b62fcca8a08d4733cf65716322d))
+
 ## [0.86.0](https://github.com/kurtosis-tech/kurtosis/compare/0.85.56...0.86.0) (2024-01-08)
 
 
diff --git a/LICENSE.md b/LICENSE.md
index ffa5d472c..ac5be842a 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -3,7 +3,7 @@ Business Source License 1.1
 Parameters
 
 Licensor:             Kurtosis Technologies, Inc.
-Licensed Work:        Kurtosis 0.86.0
+Licensed Work:        Kurtosis 0.86.1
 The Licensed Work is (c) 2024 Kurtosis Technologies, Inc.
 Additional Use Grant: You may make use of the Licensed Work, provided that
 you may not use the Licensed Work for an Environment Orchestration Service.
diff --git a/api/golang/kurtosis_version/kurtosis_version.go b/api/golang/kurtosis_version/kurtosis_version.go
index 880d72d6b..bfdad63eb 100644
--- a/api/golang/kurtosis_version/kurtosis_version.go
+++ b/api/golang/kurtosis_version/kurtosis_version.go
@@ -9,6 +9,6 @@ const (
 	// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
 	// This is necessary so that Kurt Core consumers will know if they're compatible with the currently-running
 	//  API container
-	KurtosisVersion = "0.86.0"
+	KurtosisVersion = "0.86.1"
 	// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
 )
diff --git a/api/rust/Cargo.toml b/api/rust/Cargo.toml
index 584fb4592..a7a3f0795 100644
--- a/api/rust/Cargo.toml
+++ b/api/rust/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "kurtosis-sdk"
-version = "0.86.0"
+version = "0.86.1"
 license = "BUSL-1.1"
 description = "Rust SDK for Kurtosis"
 edition = "2021"
diff --git a/api/typescript/package.json b/api/typescript/package.json
index 2d7fc2afc..ec86f3880 100644
--- a/api/typescript/package.json
+++ b/api/typescript/package.json
@@ -1,7 +1,7 @@
 {
     "name": "kurtosis-sdk",
     "//": "NOTE: DO NOT UPDATE THIS VERSION MANUALLY - IT WILL BE UPDATED DURING THE RELEASE PROCESS!",
-    "version": "0.86.0",
+    "version": "0.86.1",
     "main": "./build/index",
     "description": "This repo contains a Typescript client for communicating with the Kurtosis Engine server, which is responsible for creating, managing and destroying Kurtosis Enclaves.",
     "types": "./build/index",
diff --git a/api/typescript/src/kurtosis_version/kurtosis_version.ts b/api/typescript/src/kurtosis_version/kurtosis_version.ts
index e043540b1..65f1f9968 100644
--- a/api/typescript/src/kurtosis_version/kurtosis_version.ts
+++ b/api/typescript/src/kurtosis_version/kurtosis_version.ts
@@ -1,5 +1,5 @@
 // !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
 // This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running
 //  API container
-export const KURTOSIS_VERSION: string = "0.86.0"
+export const KURTOSIS_VERSION: string = "0.86.1"
 // !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
diff --git a/core/server/api_container/server/startosis_engine/kurtosis_types/directory/directory.go b/core/server/api_container/server/startosis_engine/kurtosis_types/directory/directory.go
index 267c788a6..36e495d45 100644
--- a/core/server/api_container/server/startosis_engine/kurtosis_types/directory/directory.go
+++ b/core/server/api_container/server/startosis_engine/kurtosis_types/directory/directory.go
@@ -18,7 +18,8 @@ const (
 	PersistentKeyAttr = "persistent_key"
 	SizeKeyAttr       = "size"
 
-	atleastOneMegabyte = 1
+	atleastOneMegabyte       = 1
+	megaByteToByteMultiplier = 1024 * 1024
 )
 
 func NewDirectoryType() *kurtosis_type_constructor.KurtosisTypeConstructor {
@@ -159,5 +160,5 @@ func (directory *Directory) GetSizeOrDefault() (int64, *startosis_errors.Interpr
 	if !ok {
 		return 0, startosis_errors.NewInterpretationError("Couldn't convert size '%v' to int64", size)
 	}
-	return sizeInt64, nil
+	return sizeInt64 * megaByteToByteMultiplier, nil
 }
diff --git a/enclave-manager/web/lerna.json b/enclave-manager/web/lerna.json
index d23fadbd6..ca4fa88cb 100644
--- a/enclave-manager/web/lerna.json
+++ b/enclave-manager/web/lerna.json
@@ -2,7 +2,7 @@
   "packages": [
     "packages/*"
   ],
-  "version": "0.86.0",
+  "version": "0.86.1",
   "npmClient": "yarn",
   "$schema": "node_modules/lerna/schemas/lerna-schema.json",
   "useNx": false,
diff --git a/enclave-manager/web/packages/app/package.json b/enclave-manager/web/packages/app/package.json
index 3bfff599f..03ab0dca2 100644
--- a/enclave-manager/web/packages/app/package.json
+++ b/enclave-manager/web/packages/app/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@kurtosis/emui-app",
-  "version": "0.86.0",
+  "version": "0.86.1",
   "private": true,
   "homepage": ".",
   "dependencies": {
@@ -9,7 +9,7 @@
     "html-react-parser": "^4.2.2",
     "js-cookie": "^3.0.5",
     "kurtosis-cloud-indexer-sdk": "^0.0.2",
-    "kurtosis-ui-components": "0.86.0",
+    "kurtosis-ui-components": "0.86.1",
     "react-error-boundary": "^4.0.11",
     "react-hook-form": "^7.47.0",
     "yaml": "^2.3.4"
diff --git a/enclave-manager/web/packages/components/package.json b/enclave-manager/web/packages/components/package.json
index d4bb74842..cf82b244b 100644
--- a/enclave-manager/web/packages/components/package.json
+++ b/enclave-manager/web/packages/components/package.json
@@ -1,6 +1,6 @@
 {
   "name": "kurtosis-ui-components",
-  "version": "0.86.0",
+  "version": "0.86.1",
   "private": false,
   "main": "build/index",
   "description": "This repo contains components used by Kurtosis UI applications.",
diff --git a/enclave-manager/web/yarn.lock b/enclave-manager/web/yarn.lock
index 118968301..b2f75ab0e 100644
--- a/enclave-manager/web/yarn.lock
+++ b/enclave-manager/web/yarn.lock
@@ -7525,9 +7525,9 @@ focus-lock@^1.0.0:
     tslib "^2.0.3"
 
 follow-redirects@^1.0.0, follow-redirects@^1.15.0:
-  version "1.15.3"
-  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a"
-  integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==
+  version "1.15.4"
+  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf"
+  integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==
 
 for-each@^0.3.3:
   version "0.3.3"
diff --git a/engine/frontend/package-lock.json b/engine/frontend/package-lock.json
index 840dbdc9a..0ceae2f62 100644
--- a/engine/frontend/package-lock.json
+++ b/engine/frontend/package-lock.json
@@ -60,7 +60,7 @@
     },
     "../../api/typescript": {
       "name": "kurtosis-sdk",
-      "version": "0.85.38",
+      "version": "0.86.1",
       "license": "Apache-2.0",
       "dependencies": {
         "@bufbuild/connect": "^0.12.0",
@@ -104,14 +104,14 @@
       "version": "0.0.0",
       "license": "Apache-2.0",
       "dependencies": {
-        "@bufbuild/protobuf": "^1.3.3"
+        "@bufbuild/protobuf": "^1.3.3",
+        "@connectrpc/connect": "^0.13.0",
+        "@connectrpc/connect-web": "^0.13.0"
       },
       "devDependencies": {
         "@babel/core": "^7.23.2",
         "@babel/preset-env": "^7.23.2",
         "@bufbuild/protoc-gen-es": "^1.3.3",
-        "@connectrpc/connect": "^0.13.0",
-        "@connectrpc/connect-web": "^0.13.0",
         "@connectrpc/protoc-gen-connect-es": "^0.13.0",
         "@types/jest": "^29.5.6",
         "jest": "^29.7.0",
@@ -10962,9 +10962,9 @@
       }
     },
     "node_modules/follow-redirects": {
-      "version": "1.15.3",
-      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
-      "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==",
+      "version": "1.15.4",
+      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz",
+      "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==",
       "funding": [
         {
           "type": "individual",
@@ -32296,9 +32296,9 @@
       }
     },
     "follow-redirects": {
-      "version": "1.15.3",
-      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
-      "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q=="
+      "version": "1.15.4",
+      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz",
+      "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw=="
     },
     "for-each": {
       "version": "0.3.3",
diff --git a/version.txt b/version.txt
index 63cd8847a..9cbbfc722 100644
--- a/version.txt
+++ b/version.txt
@@ -1,1 +1,1 @@
-0.86.0
+0.86.1


Test patch:
diff --git a/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/directory_persistent_directory_framework_test.go b/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/directory_persistent_directory_framework_test.go
index ca6aff71f..81e7958d8 100644
--- a/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/directory_persistent_directory_framework_test.go
+++ b/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/directory_persistent_directory_framework_test.go
@@ -38,5 +38,5 @@ func (t *directoryPersistentDirectoryTestCase) Assert(typeValue builtin_argument
 
 	size, err := directoryStarlark.GetSizeOrDefault()
 	require.Nil(t, err)
-	require.Equal(t, testPersistentDirectorySize, size)
+	require.Equal(t, testPersistentDirectorySizeInBytes, size)
 }
diff --git a/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/static_constants.go b/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/static_constants.go
index 046fa5d5a..d869efb1b 100644
--- a/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/static_constants.go
+++ b/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/test_engine/static_constants.go
@@ -48,13 +48,14 @@ var (
 	testPublicPortProtocol        = port_spec.TransportProtocol_TCP
 	testPublicApplicationProtocol = "https"
 
-	testFilesArtifactPath1      = "path/to/file/1"
-	testFilesArtifactName1      = "file_1"
-	testFilesArtifactPath2      = "path/to/file/2"
-	testFilesArtifactName2      = "file_2"
-	testPersistentDirectoryPath = "path/to/persistent/dir"
-	testPersistentDirectoryKey  = "persistent-dir-test"
-	testPersistentDirectorySize = int64(30)
+	testFilesArtifactPath1             = "path/to/file/1"
+	testFilesArtifactName1             = "file_1"
+	testFilesArtifactPath2             = "path/to/file/2"
+	testFilesArtifactName2             = "file_2"
+	testPersistentDirectoryPath        = "path/to/persistent/dir"
+	testPersistentDirectoryKey         = "persistent-dir-test"
+	testPersistentDirectorySize        = int64(30)
+	testPersistentDirectorySizeInBytes = testPersistentDirectorySize * 1024 * 1024
 
 	testEntryPointSlice = []string{
 		"127.0.0.0",
diff --git a/internal_testsuites/typescript/yarn.lock b/internal_testsuites/typescript/yarn.lock
index 8e261f54e..a77aeec02 100644
--- a/internal_testsuites/typescript/yarn.lock
+++ b/internal_testsuites/typescript/yarn.lock
@@ -1404,9 +1404,9 @@ find-up@^4.0.0, find-up@^4.1.0:
     path-exists "^4.0.0"
 
 follow-redirects@^1.14.4:
-  version "1.15.3"
-  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a"
-  integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==
+  version "1.15.4"
+  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf"
+  integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==
 
 form-data@^3.0.0:
   version "3.0.1"
@@ -2207,7 +2207,7 @@ kleur@^3.0.3:
   integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
 
 kurtosis-sdk@../../api/typescript:
-  version "0.84.7"
+  version "0.86.1"
   dependencies:
     "@bufbuild/connect" "^0.12.0"
     "@bufbuild/connect-web" "^0.12.0"