Skip to content

Miscellaneous resilience improvements #2358

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
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Molter73
Copy link
Collaborator

Description

Some improvements have been made to our ansible playbooks, namely:

  • Remove us-central1-c zone, since this one doesn't have Arm VM support.
  • Update ansible to use the newer break_when loop control, this is closer to our original intent.
  • Ensure the compute instance is removed when creation fails.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

CI should be enough.

This zone does not have support for Arm VMs, which is causing it to fail
the entire workflow when we rollover to it.
This is a newer approach to break out of loops in ansible which is
closer to what we originally intended.
Comment on lines 3 to 4
ansible-core==2.18.7
ansible==11.6.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

🎉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to roll this back, there are many VMs that have older Python interpreters and are not compatible with the new ansible versions apparently

@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.83%. Comparing base (c467e0e) to head (031a347).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2358   +/-   ##
=======================================
  Coverage   28.83%   28.83%           
=======================================
  Files          96       96           
  Lines        5799     5799           
  Branches     2551     2551           
=======================================
  Hits         1672     1672           
  Misses       3408     3408           
  Partials      719      719           
Flag Coverage Δ
collector-unit-tests 28.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Molter73 Molter73 force-pushed the mauro/ansible/miscellaneous-resilience-improvements branch from df4c39b to b42cb48 Compare August 18, 2025 15:12
@@ -7,7 +7,6 @@ gcp_instance_prefix: ci
gcp_available_zones:
- us-central1-a
- us-central1-b
- us-central1-c
- us-central1-f
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- us-central1-f
- us-central1-f
- us-central1-d

Copy link
Collaborator

Choose a reason for hiding this comment

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

$ gcloud compute machine-types list --filter="name=t2a-standard-2 AND zone~'^us-'" --format="value(zone)"
us-central1-a
us-central1-b
us-central1-f
us-central1-d

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