Skip to content

Commit

Permalink
Commit some forgotten pkl-related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Jun 6, 2024
1 parent 5b26d47 commit 655744b
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/build-workflows.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Get-ChildItem -Path './pkl-workflows' -Filter *.pkl -File -Name | ForEach-Object {
&pkl eval ./pkl-workflows/$_ -o "./workflows/$($_.Replace('pkl', 'yml'))"
}
2 changes: 2 additions & 0 deletions .github/pkl-workflows/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ brew install pkl

## Building the workflows

Run `pwsh .github/build-workflows.ps1` or the following bash script if you don't have/use powershell:

```bash
cd $SolutionDir/.github/pkl-workflows
for file in *.pkl ; do pkl eval $file -o ../workflows/$(echo $file | sed s/pkl/yml/) ; done
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Tools/DeployApps/BaasClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1099,10 +1099,8 @@ private async Task<string> StartContainer(string differentiator)

private async Task<ContainerInfo> WaitForContainer(string containerId, int maxRetries = 100)
{
while (maxRetries > 0)
for (var i = 0; i < maxRetries; i++)
{
maxRetries -= 1;

try
{
var containers = await GetContainers();
Expand All @@ -1125,7 +1123,7 @@ private async Task<ContainerInfo> WaitForContainer(string containerId, int maxRe
await Task.Delay(2000);
}

throw new Exception($"Container with id={containerId} was not found or ready after 100 retries");
throw new Exception($"Container with id={containerId} was not found or ready after {maxRetries} retries");
}

private async Task<T> CallEndpointAsync<T>(HttpMethod method, string relativePath, object? payload = null)
Expand Down

0 comments on commit 655744b

Please sign in to comment.