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

[draft] Yophilav/test azure pipelines #6

Draft
wants to merge 520 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
520 commits
Select commit Hold shift + click to select a range
5d415ea
Disable PriorityQueueTimeToLive until it is fixed (#5650)
vipeller Oct 13, 2021
429e438
Generate TestCertificates in DpsX509 test (#5687)
gordonwang0 Oct 13, 2021
6c6d4be
Enable Support Bundle for E2E Tests on Release/1.2 (#5663)
nimanch Oct 14, 2021
ce0bbeb
remove extra capabilities in comment (#5684)
lfitchett Oct 14, 2021
c5d6176
Recreate edgeAgent when not Running, Stopped, or Failed (#5531)
gordonwang0 Oct 14, 2021
e5c2291
ISA95 Smoke Test: Convert to scheduled builds rather than every commi…
and-rewsmith Oct 15, 2021
861aceb
Fix workload socket denied (#5698)
huguesBouvier Oct 17, 2021
9fb6bc7
Remove variable that suppressed Component Governance errors. (#5572) …
vadim-kovalyov Oct 18, 2021
2d451cc
Remove WebSocket Ping KeepAlives (#5623) (#5689)
vadim-kovalyov Oct 20, 2021
f12d7ca
Updated SDK from 1.36.2 to 1.36.3 to fix connectivity issues (#5722) …
vipeller Oct 21, 2021
2391cd9
Restricting EdgeAgent parallel calls to edged to 5 (#5633) (#5720)
lfitchett Oct 21, 2021
52c563a
Fix: detect fail-over from iot hub/sdk behavior and disconnect from h…
vipeller Oct 21, 2021
8e61ce0
Add E2E Test[Ubuntu AMD64] as Gate for Pull Requests (#5717)
nimanch Oct 22, 2021
487890d
Fix edgehub_queue_len counting (#5692) (#5731)
nyanzebra Oct 22, 2021
986d899
Remove internal test dashboard code (#5740)
damonbarry Oct 22, 2021
3822152
Backport EST documentation and update configuration template (#5741)
onalante-msft Oct 25, 2021
9a2a526
Update dependency on vulnerable package (#5752)
damonbarry Oct 26, 2021
3c3c884
Modify Build Number for New E2E Check-in Pipeline (#5743)
nimanch Oct 26, 2021
4d995bd
E2E: Use http*_proxy for proxy test suite build step (#5749) (#5762)
and-rewsmith Oct 26, 2021
421aa33
[release/1.2] Wait for configuration before starting protocol heads (…
onalante-msft Oct 27, 2021
ddd5147
Update E2E test docs for release/1.2 (#5776)
gauravIoTEdge Nov 1, 2021
1a556e3
Revert "[release/1.2] Wait for configuration before starting protocol…
vadim-kovalyov Nov 2, 2021
04755ad
[release/1.2] Unset executable bits for source files (#5790)
onalante-msft Nov 2, 2021
f9ad578
E2E: Reenable validate metrics (#5775) (#5784)
and-rewsmith Nov 3, 2021
6f25fb5
E2E: Stabilize temp sensor tests by removing twin updates (#5774) (#5…
and-rewsmith Nov 3, 2021
2677657
Enable Test Get Module Logs (#5793)
nimanch Nov 4, 2021
d0978ba
[release/1.2] Fix typo in template configuration (#5771)
onalante-msft Nov 4, 2021
6bac3f1
Added some extra logging to MetricsValidator module (#5799) (#5807)
vadim-kovalyov Nov 8, 2021
2c52929
Enable Get Module Logs for Proxy Environment. (#5811)
nimanch Nov 8, 2021
84e6516
Connectivity Tests: Make c2d tolerance protocol agnostic (#5806) (#5815)
and-rewsmith Nov 9, 2021
fb72432
Prepare for Release 1.2.5 (#5817)
yophilav Nov 10, 2021
f7bab74
Modify How Dotnet is Accessed during E2E Run (#5826)
nimanch Nov 10, 2021
36fe1a9
Remove nuget.config to address pipeline warnings (#5829)
damonbarry Nov 10, 2021
bad01e5
Port parallelization changes from images pipeline to images-release …
nlcamp Nov 11, 2021
f7f4b89
Revert Changes to Handle Validation of Since and Until Time (#5840)
nimanch Nov 12, 2021
e15b86b
Prepare for release 1.2.6 (#5843)
damonbarry Nov 12, 2021
145a172
E2E: Re-enable validate metrics #5845
and-rewsmith Nov 18, 2021
aba68a4
Add script and documentation for attaching VSCode debugger to a conta…
nlcamp Nov 22, 2021
66215e8
Nested Tests: Agent lock resiliency (#5836) (#5863)
and-rewsmith Nov 23, 2021
2a0ec45
Run E2E Test on Ubuntu 20.04 Arm64 (#5875)
nimanch Nov 30, 2021
6627c7a
Add device ID to edge CA common name (#5878)
onalante-msft Nov 30, 2021
113359c
Enable 1ES Agents on Release and Publish Pipelines (#5884)
nimanch Dec 2, 2021
7117f7f
Enable IoT Edge Check E2E Test (#5889)
nimanch Dec 6, 2021
5712dcc
Fix: Workload socket issue for concurrent module create (#5876) (#5885)
huguesBouvier Dec 7, 2021
778ba7a
Use proper name for $rid parameter. (#5898) (#5909)
vadim-kovalyov Dec 8, 2021
58bdf94
Port parallelization changes from images pipeline to addons-release (…
nlcamp Dec 8, 2021
b1b7d2d
Use 1ES Agent for API Proxy Publish (#5914)
nimanch Dec 8, 2021
e3ddc7b
E2E: ValidateMetrics test flaky on arm (#5912) (#5919)
and-rewsmith Dec 9, 2021
1812de8
Generate Software Bill of Materials (SBOM) in release pipelines (#5859)
nlcamp Dec 9, 2021
cfc58e6
Increase Timeout for ARM64 E2E Test to 120 Minutes (#5917)
nimanch Dec 9, 2021
27a14d8
removing moby check (#5908)
huguesBouvier Dec 9, 2021
4983128
Cherry pick - release 1.2: Iotedge check proxy-settings (#5581) (#5927)
marianan Dec 13, 2021
2aac7ab
Update edgelet cargo dependency (#5940)
gordonwang0 Dec 17, 2021
fc7a2c4
[E2E]: Enable aziot-edge install from Microsoft prod (#4881) (#5941)
gauravIoTEdge Dec 20, 2021
45c36a9
Nested E2E: Mitigate validate metrics getting dup dm calls (#5853) (#…
and-rewsmith Dec 30, 2021
7d34960
[1.2] Build rocksdb and arm images in amd64 hosts (#5954)
darobs Jan 4, 2022
5d84aad
Add nupkg as part of publish-linux (#5957)
yophilav Jan 5, 2022
7c56af0
CI: Disable flaky SendTelemetry test (#5945) (#5959)
and-rewsmith Jan 6, 2022
b91cbe3
Automate Release Package Publication (#5963)
nimanch Jan 7, 2022
497108e
Remove .NET Core install templates from pipelines (#5968)
damonbarry Jan 8, 2022
02d7bfd
Update i-i-s dep to latest 1.2 (#5969)
arsing Jan 10, 2022
ca6958f
[release/1.2] Update vulnerable nix version (#5972)
onalante-msft Jan 10, 2022
0e1a3da
Update build pipelines to be using Ubuntu20.04 (#5964)
yophilav Jan 11, 2022
8194a93
Update Base Images for a Security Patch (#5965)
yophilav Jan 11, 2022
d3ec971
Prepare for Release 1.2.7 (#5976)
ggjjj Jan 12, 2022
826be42
Fix MQTT generic tester for ARM32 (#5982)
yophilav Jan 12, 2022
0838648
Automate Upload of Release Packages to Github Releases (#5983)
nimanch Jan 13, 2022
fcb1390
Disable Local Time Check IoT Edge Check E2E Test Run on ARM (#5994)
nimanch Jan 14, 2022
90cb0c7
Custom Release pipeline for simplifying Release process on Base image…
gauravIoTEdge Jan 15, 2022
c4ecd65
Pin cargo-tarpaulin version to 0.18.* (#6015)
nimanch Jan 19, 2022
5976efb
No need to use sudo, removing (#6012)
marianan Jan 19, 2022
7b3ffd4
Bugfix: Remove Double Quotes from Current Release Tag (#6022)
nimanch Jan 20, 2022
86a4267
Update E2E Test to use official Ubuntu 20.04 packages (#6029)
nimanch Jan 21, 2022
491202d
Iotedge v1.2.X for Mariner (#5479)
josephknierman Jan 24, 2022
b9fabbc
Use buildx for rust-test-module (#6051)
darobs Jan 28, 2022
dfaf0d2
Longhaul: Tolerance adjustments (#5902) (#5916) (#6052)
and-rewsmith Jan 29, 2022
bc78f1c
Fix underflow possibility on ColumnFamilyDbStore (#5975) (#6025)
nyanzebra Feb 1, 2022
403ca87
cherrypick: remove bouncy castle dependency from edgeHub #6019 (#6062)
vipeller Feb 2, 2022
32e96d6
Remove k8s projects from 1.2 (#6066)
darobs Feb 2, 2022
a34fd5b
[release/1.2] Update vulnerable regex package (#6071)
onalante-msft Feb 4, 2022
fe7de0b
[release/1.2] Remove thread_local for non-edgelet projects (#6092)
onalante-msft Feb 8, 2022
960596c
[release/1.2] Unconditionally publish logs (#6098)
onalante-msft Feb 8, 2022
3a12724
Devguide: Fix and enhance local EdgeHub build (#6077) (#6090)
and-rewsmith Feb 8, 2022
c5e90a7
Fix edgeHub shutdown for renew certificate (#6037) (#6091)
ancaantochi Feb 9, 2022
4b7570f
Update Microsoft.Azure.Devices.Client from 1.36.3 to 1.36.4 (#6115) (…
ancaantochi Feb 11, 2022
7589457
added more logging to certificate import (cherry pick #6085) (#6101)
vipeller Feb 16, 2022
a1a3aad
Don't stop the broker if unable to restore persisted state. (#6063) (…
vadim-kovalyov Feb 18, 2022
0ed0c71
added workaround for windows-certificate import problem (#6103)
vipeller Feb 18, 2022
8a98143
Update IIS commit used for Mariner RPM build (#6150)
josephknierman Feb 23, 2022
de24b76
Fix up references after renaming default branch (#6147)
damonbarry Feb 23, 2022
6055c6e
AMQP CBS token message dispose (#6057) (#6107)
ancaantochi Feb 23, 2022
9ea22ab
Revert "AMQP CBS token message dispose (#6057) (#6107)" (#6156)
ancaantochi Feb 24, 2022
6a807eb
[release/1.2] Update tokio, rayon, and crossbeam to latest compatible…
onalante-msft Feb 24, 2022
fd3e93d
[release/1.2] Revert crossbeam-utils upgrade (#6160)
onalante-msft Feb 24, 2022
9a0b369
Prepare for Release 1.2.8 (#6159)
yophilav Feb 25, 2022
f96e205
Workaround for `docker buildx` using in correct ARM arch for image bu…
yophilav Feb 25, 2022
8670979
AMQP CBS token message dispose (#6057) (#6107) (#6169)
ancaantochi Mar 1, 2022
fb8d034
[release/1.2] Dev identity issues when switching identities (#6067)
bilalsellak Mar 3, 2022
d468058
[release/1.2] Update tokio, rayon, and crossbeam to latest compatible…
onalante-msft Mar 3, 2022
e375cd6
Fix aarch64 diagnostics module build (#6168)
damonbarry Mar 5, 2022
60f8601
Nested E2E: Enhance lock/unlock logic (#6181)
and-rewsmith Mar 9, 2022
a0f148e
Revert usage of arsing/cross to upstream cross 0.2 (#6196)
arsing Mar 11, 2022
7db756c
Upgrade end-to-end tests to run against Debian 10 & 11 arm32v7 (#5911)
damonbarry Mar 11, 2022
cb20b6b
[release/1.2] Update regex to 1.5.5 (#6198)
onalante-msft Mar 11, 2022
0535bc2
Introduce Buster & Bullseye automated artifacts publication (#6217)
yophilav Mar 18, 2022
a131745
Use 1ES-hosted agent pool for arm64 end-to-end tests (#6076)
damonbarry Mar 18, 2022
477814d
[release/1.2] Device product information (#6089)
onalante-msft Mar 22, 2022
1016859
Move edge-modules/MetricsCollector to test/modules/TestMetricsCollect…
nlcamp Mar 25, 2022
1e47b00
Longhaul: Fix tolerance for broker enabled messaging (#6183)
and-rewsmith Mar 28, 2022
4bbfdb9
Prepare for Release 1.2.9 (#6246)
yophilav Apr 1, 2022
cf1171f
Remove PR template body from commits (#6252)
damonbarry Apr 4, 2022
3a3a68e
Allow apt-get to wait up to 5 minutes on lock. (#6259) (#6260)
darobs Apr 7, 2022
63273b1
Mariner 2.0 Package Build for IoTEdge (#6255)
josephknierman Apr 27, 2022
9559759
Bear Test Azure Pipeline
yophilav Apr 29, 2022
da84e4c
Test Repo checkout
yophilav Apr 29, 2022
4b262ce
Commented out
yophilav Apr 29, 2022
b19b180
ADd \
yophilav Apr 29, 2022
fbe965e
Use find -type d
yophilav Apr 29, 2022
85f2f2d
Use tree
yophilav Apr 29, 2022
fe88fbd
Use sudo
yophilav Apr 29, 2022
b1b4669
use ls
yophilav Apr 29, 2022
2be5cb5
Test bash
yophilav Apr 29, 2022
d261f5e
script baseh@3
yophilav Apr 29, 2022
7a5c58d
Test iot-identity-service
yophilav Apr 30, 2022
4a15e13
checkout iot-identity-service
yophilav Apr 30, 2022
0cdd95c
Test GhCli
yophilav May 2, 2022
befd091
Test GhCli
yophilav May 2, 2022
d97490e
Test GhCli push
yophilav May 2, 2022
e85c5ba
Remove the publication of Deb10 to PMC (#6328)
yophilav May 4, 2022
12b52ba
[release/1.2] Flatten additional properties of metrics (#6321)
onalante-msft May 4, 2022
f9c51c7
Update GitHub Artifacts Upload Automation (#6334)
yophilav May 6, 2022
62b5eb1
Dangerous test
yophilav May 6, 2022
5858ffd
Use Main
yophilav May 6, 2022
f2e5a47
Adding error message when listener crashes (#6309)
huguesBouvier May 10, 2022
0325d3a
Testign
yophilav May 12, 2022
124cfff
Configurable task for cancelling hanging upstream calls (#6269)
bilalsellak May 16, 2022
74ee70b
Automate version increment for /azure-iotedge (#6354)
yophilav May 16, 2022
7ee8acf
Increase the validation timeout for PMC package upload
yophilav May 17, 2022
591cdf9
Mariner ARM64 Build [Squashed] (#6356)
josephknierman May 18, 2022
ba60151
Revert "Mariner ARM64 Build [Squashed]" (#6375)
josephknierman May 20, 2022
d7d98d0
Fix exit code when restarting due to reprovision (#6368)
gordonwang0 May 20, 2022
bf31d16
[release/1.2] Restore SystemInfo structure for product information (#…
onalante-msft May 21, 2022
719bffd
Prepare for release 1.2.10 (#6376)
ggjjj May 23, 2022
44cdf1f
add back"Mariner ARM64 Build [Squashed]" (#6377)
josephknierman May 26, 2022
2f1fbbb
Github Release Page and Tagging Automation for /azure-iotedge (#6378)
yophilav May 26, 2022
933a70a
Lock cargo tarpaulin upstream dependences to a specific version (#639…
gauravIoTEdge Jun 2, 2022
7fc4e4a
Disable SCCA task (#6401)
damonbarry Jun 3, 2022
bef6889
Disable Mariner OSes (#6409)
yophilav Jun 3, 2022
7846d77
Testing smokeTest
yophilav Jun 3, 2022
fe9a857
Update cargo dependency (#6404)
gordonwang0 Jun 3, 2022
8051491
Nested Connectivity: Stop pipeline schedule (#6387)
and-rewsmith Jun 6, 2022
682e27a
Test Upgrade Scenarios 1.2 (#6382)
nlcamp Jun 7, 2022
b6213b5
Downlaod artifact from OSes
yophilav Jun 7, 2022
dc8ef98
Merge branch 'yophilav/test-azure-pipelines' of https://github.com/yo…
yophilav Jun 7, 2022
98922f5
Test1
yophilav Jun 7, 2022
f092f9f
pool correction
yophilav Jun 7, 2022
e81f30d
correct parsing
yophilav Jun 7, 2022
18b6589
save
yophilav Jun 7, 2022
88a206d
download-artifact-from-pmc-apt
yophilav Jun 7, 2022
98194e0
Adding artifact comparison
yophilav Jun 7, 2022
2276067
Adding artifact comparison
yophilav Jun 7, 2022
1a1eebe
Publish ARM32 iot-identity-service artifacts for Debian10 in PMC (#6390)
yophilav Jun 8, 2022
9800936
update size calculation
yophilav Jun 8, 2022
0be430a
Fix E2E pipeline artifact name collision 1.2 (#6427)
nlcamp Jun 9, 2022
cdc11aa
Setup-config-apt()
yophilav Jun 9, 2022
72f59ce
Merge branch 'release/1.2' into yophilav/test-azure-pipelines
yophilav Jun 9, 2022
14deacc
Update to use 18.04 for testing
yophilav Jun 9, 2022
a3ad3f0
Merge branch 'yophilav/test-azure-pipelines' of https://github.com/yo…
yophilav Jun 9, 2022
7e00097
Add passing conditions
yophilav Jun 9, 2022
ce86c6b
test
yophilav Jun 9, 2022
dc1e3cf
Gh vs PMC
yophilav Jun 9, 2022
fae0513
test
yophilav Jun 9, 2022
3503fb1
Refactor
yophilav Jun 10, 2022
f1aa64a
Add more logs
yophilav Jun 10, 2022
ec65449
Github artifact naming correction
yophilav Jun 10, 2022
402cd0d
Github artifact naming correction
yophilav Jun 10, 2022
4eaf5f3
Check if file exist
yophilav Jun 10, 2022
bdb16cf
check-file-size-limit()
yophilav Jun 10, 2022
326055e
Test
yophilav Jun 10, 2022
80c78cf
Test
yophilav Jun 10, 2022
f822a91
check-content-difference(), and testing
yophilav Jun 10, 2022
eb79b12
Further Refactor & check-github-pmc-artifacts-similarity()
yophilav Jun 10, 2022
5bb5723
test
yophilav Jun 10, 2022
b99cd87
Improve awk for version sorting
yophilav Jun 10, 2022
2e92c95
iis artifact
yophilav Jun 10, 2022
a52db7f
iis artifact
yophilav Jun 10, 2022
748e566
iis artifact
yophilav Jun 10, 2022
44b754a
Format output
yophilav Jun 13, 2022
e355c2c
Rename fnx; Format outputs
yophilav Jun 13, 2022
205fe8d
Expand OSes
yophilav Jun 13, 2022
8111704
Update arch
yophilav Jun 13, 2022
bb4487d
Rename jobs
yophilav Jun 13, 2022
2d708a1
Common the code block
yophilav Jun 13, 2022
d3d318c
test the demands
yophilav Jun 13, 2022
9273876
test the demands
yophilav Jun 13, 2022
dcc0f84
wait
yophilav Jun 13, 2022
1edbd5e
wait
yophilav Jun 13, 2022
0a40c9a
apt update test
yophilav Jun 13, 2022
6b6f42a
debug
yophilav Jun 13, 2022
fc31168
wait-for-dpkg-lock()
yophilav Jun 13, 2022
106f1bd
setup-focal-source-apt()
yophilav Jun 13, 2022
e00f406
setup-focal-source-apt()
yophilav Jun 13, 2022
0c31e17
apt test
yophilav Jun 13, 2022
a4600ea
Does non-interactive work?
yophilav Jun 13, 2022
0e181ca
use apt-get install
yophilav Jun 13, 2022
2149265
test
yophilav Jun 13, 2022
4bd7ce1
test
yophilav Jun 13, 2022
06d4a0c
test
yophilav Jun 13, 2022
af2e2fc
ucf
yophilav Jun 13, 2022
b82b5f9
DEBIAN_FRONTEND=noninteractive
yophilav Jun 13, 2022
a17dcc7
test
yophilav Jun 13, 2022
e97cca2
--force-confnew
yophilav Jun 13, 2022
c42b50f
apt upgrade
yophilav Jun 13, 2022
1316f67
test
yophilav Jun 13, 2022
d767e07
test
yophilav Jun 13, 2022
42733c9
apt-cache
yophilav Jun 13, 2022
c2c893e
apt-cache
yophilav Jun 13, 2022
4e0e707
apt-cache
yophilav Jun 13, 2022
eee32fa
working
yophilav Jun 13, 2022
56b39ea
Test other OSes
yophilav Jun 14, 2022
ef76b96
Refactor into a file
yophilav Jun 14, 2022
656d02d
Fix the input argument for file
yophilav Jun 14, 2022
99c9800
more correction
yophilav Jun 14, 2022
007f68f
Clean up the pipeline
yophilav Jun 14, 2022
6692421
Test multirepo versioning
yophilav Jun 15, 2022
121f948
Test multirepo versioning
yophilav Jun 15, 2022
51bfe81
Test multirepo versioning
yophilav Jun 15, 2022
b15fd1d
Test multirepo versioning
yophilav Jun 15, 2022
99d123f
Test multirepo versioning
yophilav Jun 15, 2022
919300a
Install jq for ARM*
yophilav Jun 15, 2022
b76e309
SetupTestAgent
yophilav Jun 15, 2022
0e10837
SetupTestAgent
yophilav Jun 15, 2022
e6e772f
SetupTestAgent
yophilav Jun 15, 2022
8c2da1d
Test Demands
yophilav Jun 15, 2022
28605e9
deb11
yophilav Jun 15, 2022
6208c1e
Test scheduling
yophilav Jun 15, 2022
e1f0678
Test artifact downloading
yophilav Jun 15, 2022
a334ca6
remove safe_guard
yophilav Jun 15, 2022
04bb918
Disable docker
yophilav Jun 15, 2022
2cb028c
Test msint login
yophilav Sep 29, 2022
05cb9d6
name
yophilav Sep 29, 2022
93042d2
wahtevawer
yophilav Sep 29, 2022
644ed84
nope
yophilav Sep 29, 2022
8486af5
Leave britney alone
yophilav Sep 29, 2022
4a8cb98
Blah
yophilav Sep 29, 2022
426434b
Blah
yophilav Sep 29, 2022
8430eda
app
yophilav Sep 29, 2022
0cb5337
puke
yophilav Sep 29, 2022
809dad3
pwsh
yophilav Sep 29, 2022
0220fc4
dash
yophilav Sep 29, 2022
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
Prev Previous commit
Next Next commit
Port parallelization changes from images pipeline to addons-release (A…
…zure#5904)

Port the parallelization changes from the image builder pipeline to the addons-release pipeline. This fixes the addons-release pipeline, which is currently broken because it depends on build-api-proxy.yaml, which was changed from a template containing   'tasks' to one containing 'jobs' as part of the parallelization changes to the image builder pipeline.

The changes have been tested with a successful test run of the addons-release pipeline. I then tested the resulting build of the API Proxy image by using it in a nested edge deployment and verifying that it worked; the lower layer device was able to pull the diagnostics image via the API proxy running on the top layer device.

## Azure IoT Edge PR checklist:

This checklist is used to make sure that common guidelines for a pull request are followed.

### General Guidelines and Best Practices
- [x] I have read the [contribution guidelines](https://github.com/azure/iotedge#contributing).
- [x] Title of the pull request is clear and informative.
- [x] Description of the pull request includes a concise summary of the enhancement or bug fix.

### Testing Guidelines
- [x] Pull request includes test coverage for the included changes.
- Description of the pull request includes 
	- [x] concise summary of tests added/modified
	- [x] local testing done.  

### Draft PRs
- Open the PR in `Draft` mode if it is:
	- Work in progress or not intended to be merged.
	- Encountering multiple pipeline failures and working on fixes.

_Note: We use the kodiakhq bot to merge PRs once the necessary checks and approvals are in place. When it merges a PR, kodiakhq converts the PR title to the commit title, PR description to the commit description, and squashes all the commits in the PR to a single commit. The net effect is that entire PR becomes a single commit. Please follow the best practices mentioned [here](https://chris.beams.io/posts/git-commit/#:~:text=The%20seven%20rules%20of%20a%20great%20Git%20commit,what%20and%20why%20vs.%20how%20For%20example%3A%20) for the PR title and description_
  • Loading branch information
nlcamp authored Dec 8, 2021
commit 58bdf948944e3fb089c2d116995858183ad8f06d
189 changes: 131 additions & 58 deletions builds/misc/addons-release.yaml
Original file line number Diff line number Diff line change
@@ -1,61 +1,122 @@
name: $(version)

jobs:
variables:
NugetSecurityAnalysisWarningLevel: warn

stages:
################################################################################
- stage: BuildExecutables
################################################################################
displayName: Build Excecutables
pool:
name: $(pool.linux.name)
demands:
- ImageOverride -equals agent-aziotedge-ubuntu-18.04-docker
dependsOn: []
jobs:
# Build API Proxy executable
- template: templates/build-api-proxy.yaml

# TODO: Consider removing this consolidate stage, which is here mostly for
# consistency with images.yaml and images-release.yaml.
################################################################################
- stage: ConsolidateAndPubishArtifacts
################################################################################
displayName: Consolidate And Publish Artifacts
pool:
name: $(pool.linux.name)
demands:
- ImageOverride -equals agent-aziotedge-ubuntu-18.04-docker
dependsOn: BuildExecutables
jobs:
- job: ConsolidateAndPublishArtifacts
steps:
- task: DownloadBuildArtifacts@0
displayName: Download Artifacts
inputs:
buildType: 'current'
downloadPath: '$(Build.ArtifactStagingDirectory)'
downloadType: specific
extractTars: true

- task: CopyFiles@2
displayName: Copy API Proxy Artifacts (amd64)
inputs:
sourceFolder: '$(Agent.TempDirectory)/extracted_tars/api_proxy_x86_64'
contents: '**'
targetFolder: '$(Build.BinariesDirectory)/publish'

- task: CopyFiles@2
displayName: Copy API Proxy Artifacts (arm32)
inputs:
sourceFolder: '$(Agent.TempDirectory)/extracted_tars/api_proxy_armv7l'
contents: '**'
targetFolder: '$(Build.BinariesDirectory)/publish'

- task: CopyFiles@2
displayName: Copy API Proxy Artifacts (arm64)
inputs:
sourceFolder: '$(Agent.TempDirectory)/extracted_tars/api_proxy_aarch64'
contents: '**'
targetFolder: '$(Build.BinariesDirectory)/publish'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts'
inputs:
pathToPublish: '$(Build.BinariesDirectory)/publish'
artifactName: 'consolidated_artifacts'
StoreAsTar: true

################################################################################
- job: linux_API_proxy_module
- stage: BuildImages
################################################################################
displayName: linuxAPIProxy
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-18.04'
displayName: Build Images
pool:
name: $(pool.linux.name)
demands:
- ImageOverride -equals agent-aziotedge-ubuntu-18.04-docker
dependsOn: ConsolidateAndPubishArtifacts
jobs:
- job: BuildImageApiProxy
steps:
- bash: |
if [ -z '$(version)' ]; then
echo '##vso[task.setvariable variable=buildVersion]$(Build.BuildNumber)'
else
echo '##vso[task.setvariable variable=buildVersion]$(version)'
fi
sudo apt-get update && sudo apt-get -y install qemu binfmt-support qemu-user-static && \
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && \
docker buildx rm mbuilder || true && \
docker buildx create --name mbuilder || true && \
docker buildx use mbuilder
docker -v
displayName: 'Set build version'
# Both docker logins needed for if we need to test this job. In this case images should go to edgebuilds.
- task: Docker@2
displayName: Docker login edgebuilds
inputs:
command: login
containerRegistry: iotedge-edgebuilds-acr
- task: Docker@2
displayName: Docker login edgerelease
inputs:
command: login
containerRegistry: iotedge-release-acr
# Build API Proxy executable
- template: templates/build-api-proxy.yaml
# Build API Proxy Image
- template: templates/image-linux.yaml
parameters:
name: API Proxy
imageName: azureiotedge-api-proxy
project: api-proxy-module
version: $(buildVersion)
buildx_flag: false
# Check API proxy
- task: ComponentGovernanceComponentDetection@0
inputs:
dockerImagesToScan: '$(registry.address)/microsoft/azureiotedge-api-proxy:$(buildVersion)-linux-amd64,$(registry.address)/microsoft/azureiotedge-api-proxy:$(buildVersion)-linux-arm32v7,$(registry.address)/microsoft/azureiotedge-api-proxy:$(buildVersion)-linux-arm64v8'
- bash: |
if [ -z '$(version)' ]; then
echo '##vso[task.setvariable variable=buildVersion]$(Build.BuildNumber)'
else
echo '##vso[task.setvariable variable=buildVersion]$(version)'
fi
sudo apt-get update && sudo apt-get -y install qemu binfmt-support qemu-user-static && \
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && \
docker buildx rm mbuilder || true && \
docker buildx create --name mbuilder || true && \
docker buildx use mbuilder
docker -v
displayName: 'Set build version'
- template: templates/image-linux.yaml
parameters:
name: API Proxy
imageName: azureiotedge-api-proxy
project: api-proxy-module
buildx_flag: false
version: $(buildVersion)
bin_dir: '$(Build.BinariesDirectory)'

################################################################################
- job: manifest
- stage: PublishManifests
################################################################################
displayName: Publish Manifest Images
pool:
vmImage: 'ubuntu-18.04'
dependsOn:
- linux_API_proxy_module
displayName: Publish Manifests
pool:
name: $(pool.linux.name)
demands:
- ImageOverride -equals agent-aziotedge-ubuntu-18.04-docker
dependsOn: BuildImages
jobs:
- job: PublishManifest
displayName: Publish Manifest
strategy:
matrix:
ApiProxy:
manifestFilePath: '$(System.DefaultWorkingDirectory)/edge-modules/api-proxy-module/docker/manifest.yaml.template'
steps:
# Both docker logins needed for if we need to test this job. In this case images should go to edgebuilds.
- task: Docker@2
Expand All @@ -69,11 +130,23 @@ jobs:
command: login
containerRegistry: iotedge-release-acr
- bash: |
if [ -z '$(version)' ]; then
echo '##vso[task.setvariable variable=buildVersion]$(Build.BuildNumber)'
else
echo '##vso[task.setvariable variable=buildVersion]$(version)'
fi
displayName: 'Set build version'
- script: scripts/linux/buildManifest.sh -r $(registry.address) -v $(buildVersion) -t $(System.DefaultWorkingDirectory)/edge-modules/api-proxy-module/docker/manifest.yaml.template -n microsoft --tags "$(tags)"
displayName: 'Publish azureiotedge-api-proxy Manifest'
if [ -z '$(version)' ]; then
echo '##vso[task.setvariable variable=buildVersion]$(Build.BuildNumber)'
else
echo '##vso[task.setvariable variable=buildVersion]$(version)'
fi
displayName: 'Set build version'
- script: scripts/linux/buildManifest.sh -r $(registry.address) -v $(buildVersion) -t $(manifestFilePath) -n microsoft --tags "$(tags)"

- job: ComponentGovernance
steps:
- bash: |
if [ -z '$(version)' ]; then
echo '##vso[task.setvariable variable=buildVersion]$(Build.BuildNumber)'
else
echo '##vso[task.setvariable variable=buildVersion]$(version)'
fi
displayName: 'Set build version'
- task: ComponentGovernanceComponentDetection@0
inputs:
dockerImagesToScan: '$(registry.address)/microsoft/azureiotedge-api-proxy:$(buildVersion)-linux-amd64,$(registry.address)/microsoft/azureiotedge-api-proxy:$(buildVersion)-linux-arm32v7,$(registry.address)/microsoft/azureiotedge-api-proxy:$(buildVersion)-linux-arm64v8'