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

wait for provision to complete before install test agent #3094

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

nagworld9
Copy link
Contributor

Description

wait for provision to complete before install test agent.

Issue #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

Copy link

codecov bot commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.89%. Comparing base (e72f9e8) to head (b9dd227).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3094   +/-   ##
========================================
  Coverage    71.89%   71.89%           
========================================
  Files          110      110           
  Lines        16395    16395           
  Branches      2342     2342           
========================================
  Hits         11788    11788           
  Misses        4055     4055           
  Partials       552      552           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

maddieford
maddieford previously approved these changes Mar 18, 2024
@@ -85,19 +85,19 @@ echo "Agent Version:"
$python "$waagent" --version
echo "Service Status:"

# Sometimes the service can take a while to start; give it a few minutes,
# Sometimes the service can take a while to start and provision completed; give it a few minutes,
Copy link
Member

Choose a reason for hiding this comment

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

I'd update the comment to describe that we need to wait for the provisioning code before stopping the agent's service to do the test setup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

started=true
break
fi
echo "Waiting for service to start..."
echo "Waiting for service to complete provision..."
Copy link
Member

Choose a reason for hiding this comment

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

"Waiting for agent to complete provisioning."?

sleep 30
done
if [ $started == false ]; then
echo "Service failed to start."
echo "Service failed to complete provision."
Copy link
Member

Choose a reason for hiding this comment

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

"Provisioning did not completed in the given timeout (cannot find /var/lib/waagent/provisioned)"?

@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.87%. Comparing base (af77271) to head (1955f3c).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3094   +/-   ##
========================================
  Coverage    71.87%   71.87%           
========================================
  Files          110      110           
  Lines        16406    16406           
  Branches      2344     2344           
========================================
  Hits         11791    11791           
  Misses        4064     4064           
  Partials       551      551           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nagworld9 nagworld9 merged commit c125edc into Azure:develop Mar 21, 2024
11 checks passed
@nagworld9 nagworld9 deleted the provision-check branch March 21, 2024 02:07
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.

4 participants