Skip to content

Commit

Permalink
[wasm] Bump chrome for testing - linux: 123.0.6312.58, windows: 123.0…
Browse files Browse the repository at this point in the history
….6312.58 (#100084)

* Automated bump of chrome version

* Revert #99945, #99814

* Feedback, more logging

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ilona Tomkowicz <[email protected]>
Co-authored-by: Ilona Tomkowicz <[email protected]>
  • Loading branch information
4 people authored Mar 25, 2024
1 parent d8c3db7 commit 330b70c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
18 changes: 9 additions & 9 deletions eng/testing/ChromeVersions.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project>
<PropertyGroup>
<linux_ChromeVersion>122.0.6261.69</linux_ChromeVersion>
<linux_ChromeRevision>1250580</linux_ChromeRevision>
<linux_ChromeBaseSnapshotUrl>https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1250580</linux_ChromeBaseSnapshotUrl>
<linux_V8Version>12.2.281</linux_V8Version>
<win_ChromeVersion>122.0.6261.69</win_ChromeVersion>
<win_ChromeRevision>1250580</win_ChromeRevision>
<win_ChromeBaseSnapshotUrl>https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/1250586</win_ChromeBaseSnapshotUrl>
<win_V8Version>12.2.281</win_V8Version>
<linux_ChromeVersion>123.0.6312.58</linux_ChromeVersion>
<linux_ChromeRevision>1262506</linux_ChromeRevision>
<linux_ChromeBaseSnapshotUrl>https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1262506</linux_ChromeBaseSnapshotUrl>
<linux_V8Version>12.3.219</linux_V8Version>
<win_ChromeVersion>123.0.6312.58</win_ChromeVersion>
<win_ChromeRevision>1262506</win_ChromeRevision>
<win_ChromeBaseSnapshotUrl>https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/1262514</win_ChromeBaseSnapshotUrl>
<win_V8Version>12.3.219</win_V8Version>
</PropertyGroup>
</Project>
</Project>
12 changes: 5 additions & 7 deletions src/tasks/WasmBuildTasks/UpdateChromeVersions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ private async Task<Stream> GetDownloadFileStreamAsync(string filename, string ur

private async Task<string?> FindSnapshotUrlFromBasePositionAsync(string osPrefix, ChromeVersionSpec version, bool throwIfNotFound = true)
{
string baseUrlForRevision = $"{s_snapshotBaseUrl}?prefix={osPrefix}";
string baseUrl = $"{s_snapshotBaseUrl}/{osPrefix}";

int branchPosition = int.Parse(version.branch_base_position);
for (int i = 0; i < MaxBranchPositionsToCheck; i++)
{
string branchUrl = $"{baseUrlForRevision}/{branchPosition}";
string branchUrl = $"{baseUrl}/{branchPosition}";
string url = $"{branchUrl}/REVISIONS";

Log.LogMessage(MessageImportance.Low, $"Checking if {url} exists ..");
Expand All @@ -285,16 +285,14 @@ private async Task<Stream> GetDownloadFileStreamAsync(string filename, string ur
.ConfigureAwait(false);
if (response.StatusCode == HttpStatusCode.OK)
{
string baseUrlForDownload = $"{s_snapshotBaseUrl}/{osPrefix}";
string snapshotUrl = $"{baseUrlForDownload}/{branchPosition}";
Log.LogMessage(MessageImportance.Low, $"Found {url}. Snapshots should be under ${snapshotUrl}");
return snapshotUrl;
Log.LogMessage(MessageImportance.Low, $"Found url = {url} with branchUrl = ${branchUrl}");
return branchUrl;
}

branchPosition += 1;
}

string message = $"Could not find a chrome snapshot folder under {baseUrlForRevision}, " +
string message = $"Could not find a chrome snapshot folder under {baseUrl}, " +
$"for branch positions {version.branch_base_position} to " +
$"{branchPosition}, for version {version.version}. " +
"A fixed version+url can be set in eng/testing/ProvisioningVersions.props .";
Expand Down

0 comments on commit 330b70c

Please sign in to comment.