Skip to content

Commit 73e50ec

Browse files
authored
Merge pull request #5981 from microsoft/joslobo/merge-for-august-update2
Merge for August Update 2
2 parents 88407e2 + 97c61fa commit 73e50ec

File tree

81 files changed

+17081
-618
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+17081
-618
lines changed

.pipelines/prchecks/PackageBuildPRCheck.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ extends:
102102
steps:
103103
- template: .pipelines/templates/PackageBuild.yml@self
104104
parameters:
105-
customToolchainArtifactBuild: $(toolchainArtifactNameBase)_${{ configuration.name }}
106-
customToolchainEnabled: true
105+
customToolchainArtifactName: $(toolchainArtifactNameBase)_${{ configuration.name }}
107106
isCheckBuild: ${{ packageBuildJob.runCheck }}
108107
isDeltaBuild: true
109108
outputArtifactsFolder: $(ob_outputDirectory)

.pipelines/templates/PackageBuild.yml

+41-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
parameters:
2-
- name: customToolchainArtifactBuild
2+
- name: buildRepoRoot
3+
type: string
4+
default: "$(Build.SourcesDirectory)"
5+
6+
- name: concurrentPackageBuilds
7+
type: number
8+
default: 12
9+
10+
- name: customToolchainArtifactName
311
type: string
412
default: ""
513

6-
- name: customToolchainEnabled
7-
type: boolean
8-
default: false
14+
- name: extraPackageRepos
15+
type: string
16+
default: ""
917

1018
- name: isCheckBuild
1119
type: boolean
@@ -19,9 +27,9 @@ parameters:
1927
type: string
2028
default: "$(Build.ArtifactStagingDirectory)"
2129

22-
- name: buildRepoRoot
30+
- name: rpmsCacheArtifactName
2331
type: string
24-
default: "$(Build.SourcesDirectory)"
32+
default: ""
2533

2634
- name: rpmsTarballName
2735
type: string
@@ -31,6 +39,10 @@ parameters:
3139
type: string
3240
default: "CBL-Mariner"
3341

42+
- name: specsFolderPath
43+
type: string
44+
default: "SPECS"
45+
3446
- name: srpmsTarballName
3547
type: string
3648
default: "srpms.tar.gz"
@@ -40,11 +52,11 @@ steps:
4052
parameters:
4153
buildRepoRoot: ${{ parameters.buildRepoRoot }}
4254

43-
- ${{ if eq(parameters.customToolchainEnabled, true) }}:
55+
- ${{ if parameters.customToolchainArtifactName }}:
4456
- task: DownloadPipelineArtifact@2
4557
displayName: "Download toolchain"
4658
inputs:
47-
artifact: "${{ parameters.customToolchainArtifactBuild }}"
59+
artifact: "${{ parameters.customToolchainArtifactName }}"
4860
patterns: "**/toolchain_built_rpms_all.tar.gz"
4961

5062
- script: |
@@ -57,6 +69,23 @@ steps:
5769
sudo make -C "${{ parameters.buildRepoRoot }}/toolkit" toolchain TOOLCHAIN_ARCHIVE="$toolchain_archive"
5870
displayName: "Populate toolchain"
5971
72+
- ${{ if parameters.rpmsCacheArtifactName }}:
73+
- task: DownloadPipelineArtifact@2
74+
displayName: "Download RPM cache"
75+
inputs:
76+
artifact: "${{ parameters.rpmsCacheArtifactName }}"
77+
patterns: "**/rpms*.tar.gz"
78+
79+
- script: |
80+
rpms_archive="$(find "$(Pipeline.Workspace)" -name rpms*.tar.gz)"
81+
if [[ ! -f "$rpms_archive" ]]; then
82+
echo "ERROR: RPMs cache archive not found!" >&2
83+
exit 1
84+
fi
85+
86+
sudo make -C "${{ parameters.buildRepoRoot }}/toolkit" hydrate-cached-rpms CACHED_PACKAGES_ARCHIVE="$rpms_archive"
87+
displayName: "Populate RPMs cache"
88+
6089
- script: |
6190
delta_fetch_arg="DELTA_FETCH=n"
6291
if [[ ${{ parameters.isDeltaBuild }} =~ [Tt]rue ]]; then
@@ -69,9 +98,12 @@ steps:
6998
fi
7099
71100
sudo make -C "${{ parameters.buildRepoRoot }}/toolkit" build-packages -j$(nproc) \
101+
CONCURRENT_PACKAGE_BUILDS=${{ parameters.concurrentPackageBuilds }} \
72102
CONFIG_FILE="" \
73-
$delta_fetch_arg \
74103
REBUILD_TOOLS=y \
104+
REPO_LIST="${{ parameters.extraPackageRepos }}" \
105+
SPECS_DIR="${{ parameters.buildRepoRoot }}/${{ parameters.specsFolderPath }}" \
106+
$delta_fetch_arg \
75107
$run_check_arg
76108
displayName: "Build packages"
77109

.pipelines/templates/ToolchainBuild.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ steps:
3434
- bash: |
3535
published_artifacts_dir="${{ parameters.outputArtifactsFolder }}/ARTIFACTS"
3636
mkdir -p "$published_artifacts_dir"
37-
cp "${{ parameters.buildRepoRoot }}"/build/toolchain/toolchain_built_{,s}rpms_all.tar.gz "$published_artifacts_dir"
37+
cp "${{ parameters.buildRepoRoot }}"/build/toolchain/toolchain_built_{,s}rpms_*.tar.gz "$published_artifacts_dir"
3838
displayName: "Copy artifacts for publishing"
3939
4040
- bash: |

SPECS-SIGNED/kernel-azure-signed/kernel-azure-signed.spec

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%define uname_r %{version}-%{release}
1010
Summary: Signed Linux Kernel for Azure
1111
Name: kernel-azure-signed-%{buildarch}
12-
Version: 5.15.122.1
12+
Version: 5.15.125.1
1313
Release: 1%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
@@ -153,6 +153,12 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
153153
%exclude /module_info.ld
154154

155155
%changelog
156+
* Wed Aug 09 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.125.1-1
157+
- Auto-upgrade to 5.15.125.1
158+
159+
* Tue Aug 01 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.123.1-1
160+
- Auto-upgrade to 5.15.123.1
161+
156162
* Wed Jul 26 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.122.1-1
157163
- Auto-upgrade to 5.15.122.1
158164

SPECS-SIGNED/kernel-hci-signed/kernel-hci-signed.spec

+11-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
%define uname_r %{version}-%{release}
55
Summary: Signed Linux Kernel for HCI
66
Name: kernel-hci-signed-%{buildarch}
7-
Version: 5.15.122.1
8-
Release: 2%{?dist}
7+
Version: 5.15.125.1
8+
Release: 1%{?dist}
99
License: GPLv2
1010
Vendor: Microsoft Corporation
1111
Distribution: Mariner
@@ -149,6 +149,15 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
149149
%exclude /module_info.ld
150150

151151
%changelog
152+
* Wed Aug 09 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.125.1-1
153+
- Auto-upgrade to 5.15.125.1
154+
155+
* Mon Aug 07 2023 Lanze Liu <[email protected]> - 5.15.123.1-2
156+
- Bump release number to match kernel release.
157+
158+
* Tue Aug 01 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.123.1-1
159+
- Auto-upgrade to 5.15.123.1
160+
152161
* Fri Jul 28 2023 Vince Perri <[email protected]> - 5.15.122.1-2
153162
- Bump release number to match kernel release.
154163

SPECS-SIGNED/kernel-signed/kernel-signed.spec

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%define uname_r %{version}-%{release}
1010
Summary: Signed Linux Kernel for %{buildarch} systems
1111
Name: kernel-signed-%{buildarch}
12-
Version: 5.15.122.1
12+
Version: 5.15.125.1
1313
Release: 2%{?dist}
1414
License: GPLv2
1515
Vendor: Microsoft Corporation
@@ -153,6 +153,15 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
153153
%exclude /module_info.ld
154154

155155
%changelog
156+
* Thu Aug 10 2023 Rachel Menge <[email protected]> - 5.15.125.1-2
157+
- Bump release to match kernel
158+
159+
* Wed Aug 09 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.125.1-1
160+
- Auto-upgrade to 5.15.125.1
161+
162+
* Tue Aug 01 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.123.1-1
163+
- Auto-upgrade to 5.15.123.1
164+
156165
* Fri Jul 28 2023 Juan Camposeco <[email protected]> - 5.15.122.1-2
157166
- Bump release to match kernel
158167

SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)