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

Commitd50eeea

Browse files
Fix seed max value for Container Linux CI (#24510) (#24511)
1 parent30b9b9d commitd50eeea

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
@@ -863,11 +863,17 @@ function Invoke-InitializeContainerStage {
863863

864864
# For PRs set the seed to the PR number so that the image is always the same
865865
$seed=$env:SYSTEM_PULLREQUEST_PULLREQUESTID
866+
866867
if(!$seed) {
867868
# for non-PRs use the integer identifier of the build as the seed.
868869
$seed=$fallbackSeed
869870
}
870871

872+
# cut down to 32 bits and keep the most varying parts, which are lower bits
873+
if ($seed-ge [Int32]::MaxValue) {
874+
$seed= [int]($seed-band [int]::MaxValue)
875+
}
876+
871877
Write-Verbose"Seed:$seed"-Verbose
872878

873879
# Get the latest image matrix JSON for preview

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp