Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a78378

Browse files
Fix seed max value for Container Linux CI (#24510) (#24543)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
1 parent72f8c58 commit9a78378

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎tools/ci.psm1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,11 +889,17 @@ function Invoke-InitializeContainerStage {
889889

890890
# For PRs set the seed to the PR number so that the image is always the same
891891
$seed=$env:SYSTEM_PULLREQUEST_PULLREQUESTID
892+
892893
if(!$seed) {
893894
# for non-PRs use the integer identifier of the build as the seed.
894895
$seed=$fallbackSeed
895896
}
896897

898+
# cut down to 32 bits and keep the most varying parts, which are lower bits
899+
if ($seed-ge [Int32]::MaxValue) {
900+
$seed= [int]($seed-band [int]::MaxValue)
901+
}
902+
897903
Write-Verbose"Seed:$seed"-Verbose
898904

899905
# Get the latest image matrix JSON for preview

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp