Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] CI: Use Linux containers with pinned package versions #3082

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .azurepipelines/templates/basetools-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ parameters:
tool_chain_tag: ''

steps:
- ${{ if contains(parameters.tool_chain_tag, 'GCC') }}:
- bash: sudo apt-get update
displayName: Update apt
condition: and(gt(variables.pkg_count, 0), succeeded())

- bash: sudo apt-get install gcc g++ make uuid-dev
displayName: Install required tools
condition: and(gt(variables.pkg_count, 0), succeeded())

- task: CmdLine@1
displayName: Build Base Tools from source
inputs:
Expand Down
7 changes: 7 additions & 0 deletions .azurepipelines/templates/platform-build-run-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ parameters:
default: []

steps:
- bash: |
echo "##vso[task.prependpath]${HOME}/.local/bin"
echo "new PATH=${PATH}"
displayName: Set PATH
condition: eq('${{ parameters.tool_chain_tag }}', 'GCC5')

- checkout: self
clean: true
fetchDepth: 1
Expand All @@ -44,6 +50,7 @@ steps:
inputs:
versionSpec: "3.8.x"
architecture: "x64"
condition: not(eq('${{ parameters.tool_chain_tag }}', 'GCC5'))

- script: pip install -r pip-requirements.txt --upgrade
displayName: 'Install/Upgrade pip modules'
Expand Down
3 changes: 3 additions & 0 deletions .azurepipelines/templates/pr-gate-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
pool:
vmImage: ${{ parameters.vm_image }}

${{ if contains(parameters.tool_chain_tag, 'GCC') }}:
container: 'ghcr.io/osteffenrh/edk2-containers/fedora-35-test:c93b448'

steps:
- template: pr-gate-steps.yml
parameters:
Expand Down
7 changes: 7 additions & 0 deletions .azurepipelines/templates/pr-gate-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ parameters:
build_archs: ''

steps:
- bash: |
echo "##vso[task.prependpath]${HOME}/.local/bin"
echo "new PATH=${PATH}"
displayName: Set PATH
condition: eq('${{ parameters.tool_chain_tag }}', 'GCC5')

- checkout: self
clean: true
fetchDepth: 1
Expand All @@ -22,6 +28,7 @@ steps:
inputs:
versionSpec: '3.8.x'
architecture: 'x64'
condition: not(eq('${{ parameters.tool_chain_tag }}', 'GCC5'))

- script: pip install -r pip-requirements.txt --upgrade
displayName: 'Install/Upgrade pip modules'
Expand Down
1 change: 1 addition & 0 deletions ArmPkg/ArmPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,4 @@

[Components.AARCH64, Components.ARM]
ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
# modified
1 change: 1 addition & 0 deletions ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@

[Components.common]
ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.inf
# modified
1 change: 1 addition & 0 deletions ArmPlatformPkg/ArmPlatformPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@

[Components.AARCH64]
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf
# modified
1 change: 1 addition & 0 deletions ArmVirtPkg/ArmVirtCloudHv.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,4 @@
<LibraryClasses>
NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
}
# modified
1 change: 1 addition & 0 deletions ArmVirtPkg/ArmVirtKvmTool.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -368,3 +368,4 @@
#
ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManagerDxe.inf
!endif
# modified
1 change: 1 addition & 0 deletions ArmVirtPkg/ArmVirtQemu.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -549,3 +549,4 @@
<LibraryClasses>
NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
}
# modified
1 change: 1 addition & 0 deletions ArmVirtPkg/ArmVirtQemuKernel.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,4 @@
<LibraryClasses>
NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
}
# modified
1 change: 1 addition & 0 deletions ArmVirtPkg/ArmVirtXen.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,4 @@
!if $(ARCH) == AARCH64
ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
!endif
# modified
6 changes: 2 additions & 4 deletions ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
pool:
vmImage: $(vm_image)

container: 'ghcr.io/osteffenrh/edk2-containers/fedora-35-test:c93b448'

steps:
- template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
parameters:
Expand All @@ -85,7 +87,3 @@ jobs:
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
extra_install_step:
- bash: sudo apt-get install qemu
displayName: Install qemu
condition: and(gt(variables.pkg_count, 0), succeeded())
21 changes: 0 additions & 21 deletions BaseTools/Bin/gcc_aarch64_linux_ext_dep.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions BaseTools/Bin/gcc_arm_linux_ext_dep.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions BaseTools/Bin/gcc_riscv64_unknown_ext_dep.yaml

This file was deleted.

1 change: 1 addition & 0 deletions CryptoPkg/CryptoPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,4 @@
INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES
!endif
# modified
1 change: 1 addition & 0 deletions CryptoPkg/Test/CryptoPkgHostUnitTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@
MSFT:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions DynamicTablesPkg/DynamicTablesPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@
# Inhibit C6305: Potential mismatch between sizeof and countof quantities.
*_VS2017_*_CC_FLAGS = /wd6305 /analyze
!endif
# modified
1 change: 1 addition & 0 deletions EmbeddedPkg/EmbeddedPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,4 @@

[Components.IA32, Components.X64, Components.ARM]
EmbeddedPkg/GdbStub/GdbStub.inf
# modified
1 change: 1 addition & 0 deletions EmulatorPkg/EmulatorPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -504,3 +504,4 @@
GCC:DEBUG_CLANGPDB_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000
GCC:NOOPT_CLANGPDB_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000
!endif
# modified
2 changes: 2 additions & 0 deletions EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
pool:
vmImage: $(vm_image)

container: 'ghcr.io/osteffenrh/edk2-containers/fedora-35-test:c93b448'

steps:
- template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
parameters:
Expand Down
1 change: 1 addition & 0 deletions FatPkg/FatPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@
[Components]
FatPkg/FatPei/FatPei.inf
FatPkg/EnhancedFatDxe/Fat.inf
# modified
1 change: 1 addition & 0 deletions FmpDevicePkg/FmpDevicePkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions FmpDevicePkg/Test/FmpDeviceHostPkgTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
# Build HOST_APPLICATION that tests the FmpDependencyLib
#
FmpDevicePkg/Test/UnitTest/Library/FmpDependencyLib/FmpDependencyLibUnitTestsHost.inf
# modified
1 change: 1 addition & 0 deletions IntelFsp2Pkg/IntelFsp2Pkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -469,3 +469,4 @@
*_GCC5_IA32_DLINK_FLAGS = -no-pie
*_GCC5_IA32_ASLCC_FLAGS = -fno-pic
*_GCC5_IA32_ASLDLINK_FLAGS = -no-pie
# modified
1 change: 1 addition & 0 deletions IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions MdeModulePkg/MdeModulePkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -517,3 +517,4 @@

[BuildOptions]

# modified
1 change: 1 addition & 0 deletions MdeModulePkg/Test/MdeModulePkgHostTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@
UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
}
# modified
1 change: 1 addition & 0 deletions MdePkg/MdePkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,4 @@
MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf

[BuildOptions]
# modified
1 change: 1 addition & 0 deletions MdePkg/Test/MdePkgHostTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
# Build HOST_APPLICATION Libraries
#
MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf
# modified
1 change: 1 addition & 0 deletions NetworkPkg/NetworkPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions OvmfPkg/AmdSev/AmdSevX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -769,3 +769,4 @@
# TPM support
#
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
# modified
1 change: 1 addition & 0 deletions OvmfPkg/Bhyve/BhyveX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -820,3 +820,4 @@
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
}

# modified
1 change: 1 addition & 0 deletions OvmfPkg/CloudHv/CloudHvX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -948,3 +948,4 @@
# TPM support
#
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
# modified
1 change: 1 addition & 0 deletions OvmfPkg/IntelTdx/IntelTdxX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -763,3 +763,4 @@
HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
}
#modified
1 change: 1 addition & 0 deletions OvmfPkg/Microvm/MicrovmX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -868,3 +868,4 @@
<LibraryClasses>
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
}
# modified
1 change: 1 addition & 0 deletions OvmfPkg/OvmfPkgIa32.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -1011,3 +1011,4 @@
!if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
!endif
# modified
1 change: 1 addition & 0 deletions OvmfPkg/OvmfPkgIa32X64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -1025,3 +1025,4 @@
# TPM support
#
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
# modified
1 change: 1 addition & 0 deletions OvmfPkg/OvmfPkgX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -1092,3 +1092,4 @@
# TPM support
#
!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
# modified
1 change: 1 addition & 0 deletions OvmfPkg/OvmfXen.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -760,3 +760,4 @@
<LibraryClasses>
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
}
# modified
6 changes: 2 additions & 4 deletions OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ jobs:
pool:
vmImage: $(vm_image)

container: 'ghcr.io/osteffenrh/edk2-containers/fedora-35-test:c93b448'

steps:
- template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
parameters:
Expand All @@ -176,7 +178,3 @@ jobs:
build_file: $(Build.File)
build_flags: $(Build.Flags)
run_flags: $(Run.Flags)
extra_install_step:
- bash: sudo apt-get install qemu
displayName: Install qemu
condition: and(gt(variables.pkg_count, 0), succeeded())
1 change: 1 addition & 0 deletions PcAtChipsetPkg/PcAtChipsetPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions PrmPkg/PrmPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,4 @@
[BuildOptions]
# Force deprecated interfaces off
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions PrmPkg/Test/PrmPkgHostTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@
#
PrmPkg/Library/DxePrmContextBufferLib/UnitTest/DxePrmContextBufferLibUnitTestHost.inf
PrmPkg/Library/DxePrmModuleDiscoveryLib/UnitTest/DxePrmModuleDiscoveryLibUnitTestHost.inf
# modified
1 change: 1 addition & 0 deletions RedfishPkg/RedfishPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@
RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.inf

!include RedfishPkg/Redfish.dsc.inc
# modified
1 change: 1 addition & 0 deletions SecurityPkg/SecurityPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,4 @@
MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256
INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions ShellPkg/ShellPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions SignedCapsulePkg/SignedCapsulePkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions SourceLevelDebugPkg/SourceLevelDebugPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
1 change: 1 addition & 0 deletions StandaloneMmPkg/StandaloneMmPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ GCC:*_*_*_CC_FLAGS = -fno-stack-protector
[BuildOptions.X64]
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
GCC:*_GCC*_*_DLINK_FLAGS = -z common-page-size=0x1000
# modified
1 change: 1 addition & 0 deletions UefiCpuPkg/Test/UefiCpuPkgHostTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
# Build HOST_APPLICATION that tests the MtrrLib
#
UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTestHost.inf
# modified
1 change: 1 addition & 0 deletions UefiCpuPkg/UefiCpuPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,4 @@

[BuildOptions]
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
# modified
Loading