Skip to content

Commit

Permalink
Update uAMQP vendored code (#396)
Browse files Browse the repository at this point in the history
* bring in new files + doc changes

* changes needed for jenkins

* the rest of the changes from the vendor
  • Loading branch information
kashifkhan authored Sep 19, 2024
1 parent 5e5a808 commit f10fac5
Show file tree
Hide file tree
Showing 221 changed files with 5,050 additions and 1,770 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ requires = [

[tool.cibuildwheel]
# skip musl and pypy
skip = ["*-musllinux*", "pp*"]
skip = ["*-musllinux*", "pp*","cp37-*", "*-win32"]
#test-requires = "pytest"
#test-command = "python -X dev -m pytest {project}/tests"

Expand Down
233 changes: 115 additions & 118 deletions src/vendor/azure-uamqp-c/build/.vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,27 @@ name: $(BuildID)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Re
variables:
runCodesignValidationInjection: false
resources:
- repo: self
clean: true
containers:
- container: linux-c-ubuntu-2004
endpoint: csdk-containers
image: csdkcontainerregistry.azurecr.io/linux-c-ubuntu-2004:latest
- container: linux-c-ubuntu-clang
endpoint: csdk-containers
image: csdkcontainerregistry.azurecr.io/linux-c-ubuntu-clang:latest
- container: linux-c-debian-buster
endpoint: csdk-containers
image: csdkcontainerregistry.azurecr.io/linux-c-debian-buster:latest
- container: linux-c-ubuntu-wolfssl
endpoint: csdk-containers
image: csdkcontainerregistry.azurecr.io/linux-c-ubuntu-wolfssl:latest
- container: raspberrypi-c-buster
endpoint: csdk-containers
image: csdkcontainerregistry.azurecr.io/raspberrypi-c-buster:brown
jobs:
- job: checksubmodule
variables:
CodeQL.Enabled: false
displayName: Check Submodules
pool:
vmImage: 'ubuntu-20.04'
steps:
Expand All @@ -21,15 +38,16 @@ jobs:
displayName: 'setup'
- script: |
npm install check_submodules
./../../node_modules/.bin/check_submodules . master
node_modules/.bin/check_submodules . master
displayName: 'build'
- job: windowsx86
displayName: Windows x86
pool:
name: 'sdk-c--win-vs2017'
name: 'sdk-c--win-vs2022'
steps:
- script: |
if exist jenkins\windows_c.cmd (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
call jenkins\windows_c_VsDevCmd.cmd
call jenkins\windows_c.cmd)
displayName: 'build'
env:
Expand All @@ -48,47 +66,18 @@ jobs:
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: cd .. && rd /Q /S $(Agent.BuildDirectory)\s
displayName: 'cleanup'
condition: always()
- job: raspberrypi
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/raspberrypi-c-buster:brown"
pool:
name: 'sdk-c--ubuntu-18'
displayName: raspberrypi
steps:
- script: |
chmod +x jenkins/raspberrypi_c_buster.sh
./jenkins/raspberrypi_c_buster.sh
displayName: 'build'
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
- job: linuxoptions
- job: windowsx64
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/vsts-linux-c-ubuntu"
pool:
name: 'sdk-c--ubuntu-18'
displayName: 'linux-options'
steps:
- script: |
if [ -f "jenkins/linux_c_option_test.sh" ]
then
sudo ./jenkins/linux_c_option_test.sh
fi
displayName: 'build'
condition: always()
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
condition: always()
- job: windowsdynamic
CodeQL.Enabled: true
CodeQL.Language: cpp
pool:
name: 'sdk-c--win-vs2017'
name: 'sdk-c--win-vs2022'
displayName: 'Windows x64'
steps:
- script: |
if exist jenkins\windows_c_build_as_dynamic.cmd (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
call jenkins\windows_c_build_as_dynamic.cmd)
if exist jenkins\windows_c.cmd (
call jenkins\windows_c_VsDevCmd.cmd
call jenkins\windows_c.cmd --platform x64)
displayName: 'build'
env:
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
Expand All @@ -103,23 +92,21 @@ jobs:
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: cd .. && rd /Q /S $(Agent.BuildDirectory)\s
displayName: 'cleanup'
condition: always()
- job: OSX
- job: windowsdynamic
displayName: Windows Dynamic
pool:
name: OSX
name: 'sdk-c--win-vs2022'
steps:
- script: |
if [ -f "jenkins/osx_gcc_openssl.sh" ]
then
./jenkins/osx_gcc_openssl.sh
fi
if exist jenkins\windows_c_build_as_dynamic.cmd (
call jenkins\windows_c_VsDevCmd.cmd
call jenkins\windows_c_build_as_dynamic.cmd)
displayName: 'build'
env:
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
Expand All @@ -134,21 +121,16 @@ jobs:
IOT_DPS_ID_SCOPE: $(IOT-DPS-ID-SCOPE)
IOTHUB_CA_ROOT_CERT: $(IOTHUB-CA-ROOT-CERT)
IOTHUB_CA_ROOT_CERT_KEY: $(IOTHUB-CA-ROOT-CERT-KEY)
IOT_DPS_GLOBAL_ENDPOINT: $(IOT-DPS-GLOBAL-ENDPOINT)
IOTHUB_DEVICE_CONN_STRING_INVALIDCERT: $(IOTHUB-DEVICE-CONN-STRING-INVALIDCERT)
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
condition: always()
- job: clang
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/ubuntu-clang"
container: linux-c-ubuntu-clang
pool:
name: 'sdk-c--ubuntu-18'
displayName: 'clang'
name: 'sdk-c--ubuntu-22'
displayName: 'Linux Ubuntu Clang'
steps:
- script: |
if [ -f "jenkins/ubuntu_clang.sh" ]
Expand Down Expand Up @@ -177,22 +159,18 @@ jobs:
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
condition: always()
- job: ubuntu1604
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/linux-c-ubuntu"
- job: ubuntu2004
container: linux-c-ubuntu-2004
pool:
name: 'sdk-c--ubuntu-18'
displayName: 'ubuntu1604'
name: 'sdk-c--ubuntu-22'
displayName: 'Linux Ubuntu 20.04'
steps:
- script: |
if [ -f "jenkins/ubuntu1604_c.sh" ]
if [ -f "jenkins/ubuntu_c.sh" ]
then
export OPENSSL_ia32cap=0x00000000
sudo chmod -R 755 .
sudo -E ./jenkins/ubuntu1604_c.sh
sudo -E ./jenkins/ubuntu_c.sh
fi
displayName: 'build'
env:
Expand All @@ -214,22 +192,31 @@ jobs:
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
- job: linuxoptions
container: linux-c-ubuntu-2004
pool:
name: 'sdk-c--ubuntu-22'
displayName: 'Linux Ubuntu 20.04 with Options'
steps:
- script: |
if [ -f "jenkins/linux_c_option_test.sh" ]
then
sudo ./jenkins/linux_c_option_test.sh
fi
displayName: 'build'
condition: always()
- job: linux_install_deps
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/c-debian"
- job: wolfssl
container: linux-c-ubuntu-wolfssl
pool:
name: 'sdk-c--ubuntu-18'
displayName: 'linux_install_deps'
name: 'sdk-c--ubuntu-22'
displayName: 'Linux Ubuntu with WolfSSL'
steps:
- script: |
if [ -f "jenkins/linux_install_deps.sh" ]
if [ -f "jenkins/linux_wolfssl.sh" ]
then
sudo chmod 755 jenkins/linux_install_deps.sh
sudo -E ./jenkins/linux_install_deps.sh
sudo jenkins/linux_install_deps.sh
LD_LIBRARY_PATH=/usr/local/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/my_library/
sudo ./jenkins/linux_wolfssl.sh
fi
displayName: 'build'
env:
Expand All @@ -251,22 +238,18 @@ jobs:
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
condition: always()
- job: debian
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/c-debian"
container: linux-c-debian-buster
pool:
name: 'sdk-c--ubuntu-18'
displayName: 'debian'
name: 'sdk-c--ubuntu-22'
displayName: 'Linux Debian (Buster)'
steps:
- script: |
if [ -f "jenkins/debian_c.sh" ]
then
sudo chmod 755 jenkins/debian_c.sh
sudo -E ./debian_c.sh
sudo jenkins/debian_c.sh
sudo -E ./jenkins/debian_c.sh
sudo ./jenkins/debian_c.sh
fi
displayName: 'build'
env:
Expand All @@ -288,22 +271,18 @@ jobs:
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
condition: always()
- job: wolfssl
variables:
_PREVIEW_VSTS_DOCKER_IMAGE: "aziotbld/vsts-c-wolfssl"
- job: linux_install_deps
container: linux-c-debian-buster
pool:
name: 'sdk-c--ubuntu-18'
displayName: 'wolfssl'
name: 'sdk-c--ubuntu-22'
displayName: 'Linux Debian (Buster) with Installed Deps'
steps:
- script: |
if [ -f "jenkins/linux_wolfssl.sh" ]
if [ -f "jenkins/linux_install_deps.sh" ]
then
LD_LIBRARY_PATH=/usr/local/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/my_library/
sudo jenkins/linux_wolfssl.sh
sudo chmod 755 jenkins/linux_install_deps.sh
sudo -E ./jenkins/linux_install_deps.sh
sudo jenkins/linux_install_deps.sh
fi
displayName: 'build'
env:
Expand All @@ -324,19 +303,18 @@ jobs:
IOTHUB_CONN_STRING_INVALIDCERT: $(IOTHUB-CONN-STRING-INVALIDCERT)
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: sudo rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
condition: always()
- job: windowsx64
- job: OSX
displayName: OSX
variables:
CodeQL.Enabled: false
pool:
name: 'sdk-c--win-vs2017'
displayName: 'windowsx64'
vmImage: 'macOS-13'
steps:
- script: |
if exist jenkins\windows_c.cmd (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
call jenkins\windows_c.cmd --platform x64)
if [ -f "jenkins/osx_gcc_openssl.sh" ]
then
./jenkins/osx_gcc_openssl.sh
fi
displayName: 'build'
env:
IOTHUB_CONNECTION_STRING: $(IOTHUB-CONNECTION-STRING)
Expand All @@ -357,12 +335,12 @@ jobs:
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: cd .. && rd /Q /S $(Agent.BuildDirectory)\s
displayName: 'cleanup'
condition: always()
- job: xcodenative
displayName: XCode Native
variables:
CodeQL.Enabled: false
pool:
name: OSX
vmImage: 'macOS-13'
steps:
- script: |
if [ -f "jenkins/osx_xcode_native.sh" ]
Expand Down Expand Up @@ -390,6 +368,25 @@ jobs:
DPS_GLOBALDEVICEENDPOINT_INVALIDCERT: $(DPS-GLOBALDEVICEENDPOINT-INVALIDCERT)
PROVISIONING_CONNECTION_STRING_INVALIDCERT: $(PROVISIONING-CONNECTION-STRING-INVALIDCERT)
UAMQP_E2E_DEVICE_KEY: $(UAMQP-E2E-DEVICE-KEY)
- script: rm -rf $(Agent.BuildDirectory)/*
displayName: 'cleanup'
condition: always()
- job: raspberrypi
container: raspberrypi-c-buster
pool:
name: 'sdk-c--ubuntu-22'
displayName: Raspberry Pi
steps:
- script: |
chmod +x jenkins/raspberrypi_c_buster.sh
./jenkins/raspberrypi_c_buster.sh
displayName: 'build'
- job: DotNET
displayName: .NET
variables:
CodeQL.Enabled: true
CodeQL.Language: csharp
pool:
vmImage: 'windows-latest'
steps:
- script: |
dotnet build uamqp_generator\uamqp_generator.sln
displayName: 'Build'
Loading

0 comments on commit f10fac5

Please sign in to comment.