From fff03c8a819d80458ae49f82951884c8ccfea7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sat, 13 Sep 2025 21:18:07 +0200 Subject: [PATCH 1/2] fix: download large benchmarks file --- Pipeline/Build.Benchmarks.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Pipeline/Build.Benchmarks.cs b/Pipeline/Build.Benchmarks.cs index 1f90ca80f..7462ee209 100644 --- a/Pipeline/Build.Benchmarks.cs +++ b/Pipeline/Build.Benchmarks.cs @@ -207,7 +207,10 @@ async Task DownloadBenchmarkFile(string filename) } using JsonDocument document = JsonDocument.Parse(responseContent); - string content = Base64Decode(document.RootElement.GetProperty("content").GetString()); + var contentStream = await client.GetStreamAsync( + $"https://raw.githubusercontent.com/aweXpect/aweXpect/refs/heads/{BenchmarkBranch}/Docs/pages/static/js/{filename}"); + using StreamReader reader = new(contentStream, Encoding.UTF8); + string content = reader.ReadToEnd(); string sha = document.RootElement.GetProperty("sha").GetString(); return new BenchmarkFile(content, sha); } From 8acf19d77a7007cd111218422faf68cffd5db2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sat, 13 Sep 2025 21:27:12 +0200 Subject: [PATCH 2/2] Use async overload --- Pipeline/Build.Benchmarks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pipeline/Build.Benchmarks.cs b/Pipeline/Build.Benchmarks.cs index 7462ee209..638c2b682 100644 --- a/Pipeline/Build.Benchmarks.cs +++ b/Pipeline/Build.Benchmarks.cs @@ -210,7 +210,7 @@ async Task DownloadBenchmarkFile(string filename) var contentStream = await client.GetStreamAsync( $"https://raw.githubusercontent.com/aweXpect/aweXpect/refs/heads/{BenchmarkBranch}/Docs/pages/static/js/{filename}"); using StreamReader reader = new(contentStream, Encoding.UTF8); - string content = reader.ReadToEnd(); + string content = await reader.ReadToEndAsync(); string sha = document.RootElement.GetProperty("sha").GetString(); return new BenchmarkFile(content, sha); }