Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
8c4f2e7
Enable Rust Coverage (#5616)
nimanch Oct 7, 2021
32b7151
Increase Coverage to 47
nimanch Oct 7, 2021
6ddbfdc
Merge branch 'Azure:release/1.2' into release/1.2
nimanch Oct 7, 2021
b82bd1e
Merge branch 'Azure:release/1.2' into release/1.2
nimanch Oct 11, 2021
5d7f815
Merge branch 'Azure:release/1.2' into release/1.2
nimanch Oct 19, 2021
46560d5
Add Initial
nimanch Oct 19, 2021
cd968f4
Fix Path
nimanch Oct 19, 2021
8efe398
Fix Path again
nimanch Oct 19, 2021
416d0d9
Fix Parameter syntax
nimanch Oct 19, 2021
046b242
Fix Parameter syntax
nimanch Oct 19, 2021
5e52ba2
Fix Logic
nimanch Oct 19, 2021
44a0f66
Add E2E Test Run
nimanch Oct 19, 2021
20666f2
Add E2E Test Run
nimanch Oct 19, 2021
387577c
Add E2E Test Condition
nimanch Oct 19, 2021
eca99a3
Add E2E Test Condition
nimanch Oct 19, 2021
4b5e072
Add E2E Test Condition
nimanch Oct 19, 2021
f74d19b
Add E2E Test Condition
nimanch Oct 19, 2021
29bbf3c
Add E2E Test Condition
nimanch Oct 19, 2021
8d5fe5e
Add E2E Test Condition final
nimanch Oct 19, 2021
302b804
Add E2E Test Condition final
nimanch Oct 19, 2021
1ade1ce
Add E2E Test Condition final
nimanch Oct 19, 2021
7459068
Add E2E Test Condition final
nimanch Oct 19, 2021
e30d405
Fix E2E Test Condition
nimanch Oct 19, 2021
4c2de58
Fix E2E Test Condition
nimanch Oct 19, 2021
d25b9cb
Fix E2E Test Condition
nimanch Oct 19, 2021
ed14e74
Added Pre Conditions
nimanch Oct 19, 2021
43d1339
Added Pre Conditions
nimanch Oct 19, 2021
8333789
Added Pre Conditions
nimanch Oct 19, 2021
b9222a4
Added Pre Conditions
nimanch Oct 19, 2021
5a4477c
Added Pre Conditions
nimanch Oct 19, 2021
f36363b
Added Pre Conditions
nimanch Oct 19, 2021
e52802c
Added Pre Conditions
nimanch Oct 19, 2021
c322660
Added Pre Conditions
nimanch Oct 19, 2021
bed8758
Added Pre Conditions
nimanch Oct 19, 2021
b8c6642
Added Pre Conditions
nimanch Oct 19, 2021
3d40941
Added Pre Conditions
nimanch Oct 19, 2021
8049e41
Added Pre Conditions
nimanch Oct 19, 2021
aa246b3
Added Pre Conditions
nimanch Oct 19, 2021
c26593a
Added Pre Conditions
nimanch Oct 19, 2021
807a0bb
Added Pre Conditions
nimanch Oct 19, 2021
09ce41b
Added Pre Conditions
nimanch Oct 19, 2021
9f88ace
Added Pre Conditions
nimanch Oct 19, 2021
6646e4f
Added Pre Conditions
nimanch Oct 19, 2021
f3816ac
Added Pre Conditions
nimanch Oct 19, 2021
72c87bb
Added Pre Conditions
nimanch Oct 19, 2021
ad0cf51
Make Modification to E2E Setup
nimanch Oct 20, 2021
601fe5e
Add Verbose
nimanch Oct 20, 2021
2861582
Fix E2E Setup Variable
nimanch Oct 20, 2021
f65305d
Temp Skip Building
nimanch Oct 20, 2021
e9a752d
Temp Skip Building
nimanch Oct 20, 2021
751b9f4
Check not build
nimanch Oct 20, 2021
4f52f13
Fix E2E Setup Conditions
nimanch Oct 20, 2021
d89bcd9
Add condition to Download Artifacts
nimanch Oct 20, 2021
934524c
TEST ONLY
nimanch Oct 20, 2021
3719018
TEST ONLY
nimanch Oct 20, 2021
57396c0
TEST ONLY
nimanch Oct 20, 2021
6ca41dc
TEST ONLY
nimanch Oct 20, 2021
8cfaa73
TEST ONLY
nimanch Oct 20, 2021
d55634d
TEST ONLY 1
nimanch Oct 20, 2021
63ab8c3
TEST ONLY 2
nimanch Oct 20, 2021
09d226e
TEST ONLY 2
nimanch Oct 20, 2021
0723d43
TEST ONLY 4
nimanch Oct 20, 2021
92edd43
TEST ONLY 5
nimanch Oct 20, 2021
484b8db
Test Download Variables
nimanch Oct 20, 2021
75eff07
Final E2E
nimanch Oct 20, 2021
de71e02
Test Quick
nimanch Oct 20, 2021
2f47363
Test Quick 1
nimanch Oct 20, 2021
86c69a3
Fix ifelse
nimanch Oct 20, 2021
23d0da7
Fix ifelse
nimanch Oct 20, 2021
b401a61
Temporary Commit for Testing Pipeline Artifact Download
nimanch Oct 20, 2021
cfc168e
Temporary Commit for Testing Pipeline Artifact Download 1
nimanch Oct 20, 2021
771e1eb
Temporary Commit for Testing Pipeline Artifact Download 2
nimanch Oct 20, 2021
cb89242
Fix Triggers
nimanch Oct 20, 2021
74fd6a1
Temporary Commit for Testing Pipeline Artifact Download 3
nimanch Oct 20, 2021
b26ccd7
Temporary Commit for Testing Pipeline Artifact Download 4
nimanch Oct 20, 2021
3764bd8
Fix
nimanch Oct 21, 2021
e611e6e
Remove e2e resource
nimanch Oct 21, 2021
bbddff6
Formatting
nimanch Oct 21, 2021
b234b2a
Merge branch 'release/1.2' into personal/nimanch/e2echeckin
nimanch Oct 21, 2021
ca3f637
Merge branch 'release/1.2' into personal/nimanch/e2echeckin
nimanch Oct 21, 2021
84cc20b
Use Ubuntu 20.04 for E2E Test
nimanch Oct 21, 2021
8ffb995
Remove comment
nimanch Oct 21, 2021
9005883
Merge branch 'release/1.2' into personal/nimanch/e2echeckin
nimanch Oct 22, 2021
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
59 changes: 59 additions & 0 deletions builds/checkin/e2e-checkin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
trigger: none
pr:
branches:
include:
- master
- release/*

resources:
pipelines:
- pipeline: images
source: 'Azure-IoT-Edge-Core Build Images'
branch: 'release/1.2'
- pipeline: packages
source: 'Azure-IoT-Edge-Core Edgelet Packages'
branch: 'release/1.2'

stages:

- template: ../misc/templates/build-images.yaml
parameters:
E2EBuild : true

- template: ../misc/templates/build-packages.yaml
parameters:
E2EBuild : true

- stage: RunE2ETest
displayName: End-to-End Test
pool:
name: $(pool.linux.name)
demands:
- ImageOverride -equals agent-aziotedge-ubuntu-20.04-msmoby
dependsOn:
- PublishManifests
- BuildPackages
condition: |
and
(
succeededOrFailed(),
in(dependencies.PublishManifests.result, 'Succeeded','Skipped'),
in(dependencies.BuildPackages.result, 'Succeeded','Skipped')
)
jobs:
- job: ubuntu_2004_msmoby
displayName: Ubuntu 20.04 with iotedge-moby
variables:
verbose: false
os: linux
arch: amd64
artifactName: iotedged-ubuntu20.04-amd64
identityServiceArtifactName: packages_ubuntu-20.04_amd64
identityServicePackageFilter: aziot-identity-service_*_amd64.deb
builtImages: $[ stageDependencies.PublishManifests.PublishManifest.result ]
builtPackages: $[ stageDependencies.BuildPackages.linux.result ]
steps:
- template: ../e2e/templates/e2e-setup.yaml
- template: ../e2e/templates/e2e-run.yaml


47 changes: 44 additions & 3 deletions builds/e2e/templates/e2e-setup.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

steps:
- checkout: self
clean: true
Expand All @@ -22,9 +23,48 @@ steps:
TestRootCaPassword,
TestBlobStoreSas

- task: DownloadBuildArtifacts@0
displayName: Get Docker image info
- bash: |
echo "Built Images Result is $(builtImages)"
echo "Built Packages Result is $(builtPackages)"
if [[ ! -z $(builtImages) && $(builtImages) == 'Succeeded' ]]
then
echo "Use Pipeline Image Artifacts"
echo "##vso[task.setvariable variable=UsePipelineImageArtifacts;isOutput=true]TRUE"
else
echo "Use Build Image Artifacts"
echo "##vso[task.setvariable variable=UsePipelineImageArtifacts;isOutput=true]FALSE"
fi
if [[ ! -z $(builtPackages) && $(builtPackages) == 'Succeeded' ]]
then
echo "Use Pipeline Package Artifacts"
echo "##vso[task.setvariable variable=UsePipelinePackageArtifacts;isOutput=true]TRUE"
else
echo "Use Build Package Artifacts"
echo "##vso[task.setvariable variable=UsePipelinePackageArtifacts;isOutput=true]FALSE"
fi
name: check_use_artifacts
displayName: Check Use Pipeline Image Artifacts

- task: DownloadPipelineArtifact@2
displayName: Download Pipeline Build Images
condition: eq(variables['check_use_artifacts.UsePipelineImageArtifacts'],'true')
inputs:
source: 'current'
path: $(System.ArtifactsDirectory)
patterns: $(az.pipeline.images.artifacts)/artifactInfo.txt

- task: DownloadPipelineArtifact@2
displayName: Download Pipeline Build Packages
condition: eq(variables['check_use_artifacts.UsePipelinePackageArtifacts'],'true')
inputs:
source: 'current'
path: $(System.ArtifactsDirectory)
patterns: $(artifactName)/*.deb

- task: DownloadBuildArtifacts@0
displayName: Download Resource Build Images
condition: eq(variables['check_use_artifacts.UsePipelineImageArtifacts'],'false')
inputs:
buildType: specific
project: $(resources.pipeline.images.projectID)
pipeline: $(resources.pipeline.images.pipelineName)
Expand All @@ -34,9 +74,10 @@ steps:
artifactName: $(az.pipeline.images.artifacts)
allowPartiallySucceededBuilds: true
itemPattern: $(az.pipeline.images.artifacts)/artifactInfo.txt

- task: DownloadBuildArtifacts@0
displayName: Download edgelet packages
condition: eq(variables['check_use_artifacts.UsePipelinePackageArtifacts'],'false')
inputs:
buildType: specific
project: $(resources.pipeline.packages.projectID)
Expand Down
Loading