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

Modify Build Number for New E2E Check-in Pipeline #5743

Merged
merged 17 commits into from
Oct 26, 2021

Conversation

nimanch
Copy link
Contributor

@nimanch nimanch commented Oct 23, 2021

Example Run with this pipeline https://dev.azure.com/msazure/One/_build/results?buildId=48225966&view=results

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

  • I have read the contribution guidelines.
  • Title of the pull request is clear and informative.
  • Description of the pull request includes a concise summary of the enhancement or bug fix.

Testing Guidelines

  • Pull request includes test coverage for the included changes.
  • Description of the pull request includes
    • concise summary of tests added/modified
    • 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 for the PR title and description

This PR Re-enables Rust Coverage in Check in Pipelines
1. Remove the Dependency to on nightly build on Rust. Use the same version of rust as other pipelines
2. Use Cargo Tarpaulin for Create Code Coverage Reports. This was recommended by other teams within Microsoft developing rust code. (https://lib.rs/crates/cargo-tarpaulin)
3. Publish HTML Code Coverage Report Based on Coverage Report


Note : The Current Code Coverage stands at 44%.  I had to reduce the code coverage gate for Rust to 44%.  The intent is to increase the code coverage and then increase the gate.

Sample Build : https://iotedge.visualstudio.com/iotedge/_build/results?buildId=83180&view=codecoverage-tab
@nimanch nimanch changed the title Display Build Number [ DO NOT MERGE] Display Build Number Oct 23, 2021
@nimanch nimanch changed the title [ DO NOT MERGE] Display Build Number Modify Build Number for New E2E Check-in Pipeline Oct 25, 2021
@nimanch nimanch marked this pull request as ready for review October 25, 2021 15:48
builds/checkin/e2e-checkin.yaml Outdated Show resolved Hide resolved
Copy link
Member

@damonbarry damonbarry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did Cargo.lock get added to your change? Can you remove it?

@nimanch
Copy link
Contributor Author

nimanch commented Oct 25, 2021

How did Cargo.lock get added to your change? Can you remove it?

@damonbarry : Something was messed with my Rust VS Code extension. Fixed it now

@kodiakhq kodiakhq bot merged commit 3c3c884 into Azure:release/1.2 Oct 26, 2021
nimanch added a commit to nimanch/iotedge that referenced this pull request Oct 26, 2021
Example Run with this pipeline https://dev.azure.com/msazure/One/_build/results?buildId=48225966&view=results

## 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_
@nimanch nimanch mentioned this pull request Oct 26, 2021
6 tasks
kodiakhq bot pushed a commit that referenced this pull request Oct 27, 2021
This PR is a manual port of #5717 , #5743 to Enable E2E Check-in Gate for Release/1.1 Branch. Due to the way Images are built (Single Stage vs Multi-stage), Some minor modifications had to be made in creating the build-images.yaml and build-packages.yaml template.

Deviation from #5717 
1. Use Powershell Scrip in e2e-setup.yaml since windows platform is also used in 1.1
2. Add Debug Log to Print Edge Hub and Edge Agent Image
3. Fix Artifact Filter Pattern (Edgelet artifacts involve both .gz and .deb packages)

Testing Done
1. E2E Checkin Gate: https://dev.azure.com/msazure/One/_build/results?buildId=48273899&view=results
2. Build Images Pipeline: https://dev.azure.com/msazure/One/_build/results?buildId=48274103&view=results
3. Build Packages Pipeline: https://dev.azure.com/msazure/One/_build/results?buildId=48274136&view=results
4. CI E2E Test: https://dev.azure.com/msazure/One/_build/results?buildId=48266631&view=logs&j=9ec97737-d75d-57d0-984a-aca7d53a27f6&t=dcdcf879-b5e7-5ee9-8160-60c54b14cdfe

## 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_
kodiakhq bot pushed a commit that referenced this pull request Oct 28, 2021
…Pull Requests (#5755)

This PR is a manual port of the E2E Check-in Changes made in

#5717
#5743

Changes had to be manually ported over due to additional artifacts that get build for Master Branch

Deviation from #5717 
1. Manually Port Build Images  Instead of Cherry Picking since Master images.yaml builds builds more images than Release/1.2
2. Use Master Resources instead of release/1.2 Resources for downloading build artifacts

Testing
1. E2E Check-in Test run : https://dev.azure.com/msazure/One/_build/results?buildId=48267053&view=results
2. Build Images Pipeline: https://msazure.visualstudio.com/One/_build/results?buildId=48269740&view=results
3. Build Packages Pipeline: https://msazure.visualstudio.com/One/_build/results?buildId=48269877&view=results
4. CI E2E Test Run: https://dev.azure.com/msazure/One/_build/results?buildId=48272784&view=results

## Azure IoT Edge PR checklist:
damonbarry pushed a commit to damonbarry/iotedge that referenced this pull request Apr 15, 2022
…Pull Requests (Azure#5755)

This PR is a manual port of the E2E Check-in Changes made in

Azure#5717
Azure#5743

Changes had to be manually ported over due to additional artifacts that get build for Master Branch

Deviation from Azure#5717 
1. Manually Port Build Images  Instead of Cherry Picking since Master images.yaml builds builds more images than Release/1.2
2. Use Master Resources instead of release/1.2 Resources for downloading build artifacts

Testing
1. E2E Check-in Test run : https://dev.azure.com/msazure/One/_build/results?buildId=48267053&view=results
2. Build Images Pipeline: https://msazure.visualstudio.com/One/_build/results?buildId=48269740&view=results
3. Build Packages Pipeline: https://msazure.visualstudio.com/One/_build/results?buildId=48269877&view=results
4. CI E2E Test Run: https://dev.azure.com/msazure/One/_build/results?buildId=48272784&view=results

## Azure IoT Edge PR checklist:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants