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: add benchmarks and helper functions #4139

Merged

Conversation

zachary-bailey
Copy link
Collaborator

What type of PR is this?

/kind test

What this PR does / why we need it:

This PR adds benchmarking helper functions to cse_helpers.sh and then utilizes them in pre / post / install-dependencies scripts. These can be used to view benchmarking data while running ADO pipelines, and can be reviewed during the build or after.

This data will later be used to programmatically evaluate the effect of a PRs code changes on the VHD Build Time.

Which issue(s) this PR fixes:

This code prevents the developer from not being able to easily evaluate how long certain parts of the VHD Build process take.

@coveralls
Copy link

coveralls commented Mar 6, 2024

Pull Request Test Coverage Report for Build 8270408024

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.39%

Totals Coverage Status
Change from base Build 8261516573: 0.0%
Covered Lines: 2292
Relevant Lines: 2887

💛 - Coveralls

@@ -242,8 +265,8 @@ cat << EOF >> ${VHD_LOGS_FILEPATH}
EOF

echo "${CONTAINER_RUNTIME} images pre-pulled:" >> ${VHD_LOGS_FILEPATH}


stop_watch $capture_time "Pull NVIDIA Image, Start installBcc subshell" false
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "Pull NVIDIA driver image (mcr)" - minor change to note this is the image from MCR/hosted by Azure. There's a separate Nvidia driver container which will be used in the future.

@ganeshkumarashok
Copy link
Contributor

Thanks for addressing the comments here: #4067.

Copy link
Contributor

@ganeshkumarashok ganeshkumarashok left a comment

Choose a reason for hiding this comment

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

Lgtm after a rebase.

@zachary-bailey zachary-bailey force-pushed the zacharybailey/v3AddBenchmarksAndHelperFunctions branch from f3041e4 to 95d0d5e Compare March 11, 2024 20:10
@zachary-bailey zachary-bailey force-pushed the zacharybailey/v3AddBenchmarksAndHelperFunctions branch from 95d0d5e to 77f1052 Compare March 12, 2024 14:45
@zachary-bailey zachary-bailey force-pushed the zacharybailey/v3AddBenchmarksAndHelperFunctions branch from ad74ed5 to 1606dce Compare March 13, 2024 19:22
@ganeshkumarashok ganeshkumarashok merged commit 6e9e929 into master Mar 13, 2024
14 of 19 checks passed
@ganeshkumarashok ganeshkumarashok deleted the zacharybailey/v3AddBenchmarksAndHelperFunctions branch March 13, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants