Skip to content

Conversation

@pmacius
Copy link
Contributor

@pmacius pmacius commented Aug 5, 2025

@pmacius pmacius added the ec2-test Triggers ec2 integrations tests label Aug 5, 2025
@pmacius pmacius marked this pull request as ready for review August 5, 2025 12:28
@pmacius pmacius requested review from a team, alxgomz, ffjdm, gionn and siddavamshi4 August 5, 2025 13:12
@gionn gionn requested a review from Copilot August 5, 2025 14:21

This comment was marked as outdated.

@pmacius pmacius requested a review from gionn August 6, 2025 07:18
@gionn gionn changed the title OPSEXP-2826 Run apply_amps script when needed OPSEXP-2826 Run apply_amps script only when needed Aug 6, 2025
gionn
gionn previously approved these changes Aug 6, 2025
@gionn gionn requested a review from Copilot August 6, 2025 07:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR optimizes the Ansible repository role to only run the apply_amps.sh script when AMP configuration changes are detected, preventing unnecessary execution on subsequent runs.

  • Introduces checksum-based change detection for AMP configurations
  • Conditionally executes the apply_amps.sh script only when needed
  • Adds checksum file storage to track configuration state between runs

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
roles/repository/tasks/main.yml Implements checksum generation, comparison logic, and conditional execution of AMP installation
roles/repository/defaults/main.yml Adds default path for the AMP checksum file

@pmacius pmacius removed the ec2-test Triggers ec2 integrations tests label Aug 6, 2025
@pmacius pmacius merged commit f5719cc into master Aug 6, 2025
63 checks passed
@pmacius pmacius deleted the OPSEXP-2826 branch August 6, 2025 10: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.

3 participants