-
Notifications
You must be signed in to change notification settings - Fork 77
Conversation
3596f6c
to
0e86df7
Compare
Adding support for the cn-production environment to our |
workers/unity/Packages/io.improbable.gdk.tools/DevAuthTokenUtils.cs
Outdated
Show resolved
Hide resolved
{ | ||
// These are the last tested values | ||
Heartbeat = new HeartbeatParameters | ||
DownstreamHeartbeat = new HeartbeatParameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are the defaults?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were the last tested values
...ers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/ClientFactory.cs
Outdated
Show resolved
Hide resolved
...s/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/Commands/Create.cs
Show resolved
Hide resolved
.WithArgs("file", "zip", $"--output=\"{Path.GetFullPath(zipPath)}\"", | ||
RedirectedProcess | ||
.Spatial("file", "zip") | ||
.WithArgs($"--output=\"{Path.GetFullPath(zipPath)}\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So looking at this API, what happens if I put the current args with file
and zip
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you give an example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RedirectedProcess.Spatial("file", "zip", "--output=./something.zip", ...)
...ers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/ClientFactory.cs
Outdated
Show resolved
Hide resolved
...ers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/ClientFactory.cs
Show resolved
Hide resolved
}; | ||
|
||
var tokenFile = possibleTokenFiles.FirstOrDefault(File.Exists); | ||
if (!string.IsNullOrEmpty(tokenFile)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this check required if we've ran it through File.Exists
on the line above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also copied from the Platform SDK
} | ||
|
||
// Fail if no form of credentials could be found. | ||
throw new NoRefreshTokenFoundException(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put some message in this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has a message internally which states it was unable to find the token file locally.
@@ -181,6 +178,11 @@ private static string ModifySimulatedPlayerLaunchJson(Options.CreateSimulated op | |||
var content = new ByteArrayContent(bytes); | |||
content.Headers.Add("Content-MD5", snapshotToUpload.Checksum); | |||
|
|||
if (options.Environment == "cn-production") | |||
{ | |||
content.Headers.Add("x-amz-server-side-encryption", "AES256"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @MatthewSandfordImprobable for the code
workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/Options.cs
Outdated
Show resolved
Hide resolved
{ | ||
// These are the last tested values | ||
Heartbeat = new HeartbeatParameters | ||
DownstreamHeartbeat = new HeartbeatParameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were the last tested values
Description
Add support for the cn-production environment for workers and deployment launcher.
Upgraded the Worker and Platform SDK to 14.4.0, as the locator cannot connect otherwise.
Removed use of deprecated network protocols (Tests still exist)
Tests
Fully tested deployment launcher window to work.
Connected a client to a cloud deployment in cn-production using the locator.
Documentation