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

Add check infra deploy status workflow #682

Merged
merged 6 commits into from
Jul 23, 2024
Merged

Add check infra deploy status workflow #682

merged 6 commits into from
Jul 23, 2024

Conversation

lorenyu
Copy link
Contributor

@lorenyu lorenyu commented Jul 5, 2024

Ticket

Resolves #623

Changes

  • Add script to check deploy status of infra changes
  • Add AWS Backup to list of AWS services that GitHub Actions role needs access to

Context for reviewers

Ok this is finally ready for review

Testing

Developed and tested in platform-test in navapbc/platform-test#117

@lorenyu lorenyu requested a review from rocketnova July 5, 2024 16:12
@lorenyu
Copy link
Contributor Author

lorenyu commented Jul 15, 2024

@rocketnova no rush but this should be ready for review now

@lorenyu
Copy link
Contributor Author

lorenyu commented Jul 16, 2024

Now that we checked in the role manager dependencies, we can add the database layer to this check

@lorenyu
Copy link
Contributor Author

lorenyu commented Jul 16, 2024

Now that we checked in the role manager dependencies, we can add the database layer to this check

Actually I lied, the archive_file data source still produces a new hash every time so it still shows up as a diff. We'd have to source control the archive file itself if we want to keep that :/

@lorenyu
Copy link
Contributor Author

lorenyu commented Jul 18, 2024

Ok handled it in #695

Copy link
Contributor

@rocketnova rocketnova left a comment

Choose a reason for hiding this comment

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

@lorenyu This looks great. Excellent use of jq.

One change for this PR: I think we should document that jq is a requirement for Github Actions, even if it comes with the default Github Action environment, so that it's not a hidden dependency that breaks someday in the future and becomes really hard to debug.

.github/workflows/check-infra-deploy-status.yml Outdated Show resolved Hide resolved
Comment on lines +91 to +93
function get_app_names() {
find "infra" -maxdepth 1 -type d -not -name "infra" -not -name "accounts" -not -name "modules" -not -name "networks" -not -name "project-config" -not -name "test" -exec basename {} \;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Note for the future: Another reason to nest all apps in an /infra/apps dir.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created ticket #699 feel free to add to it

@lorenyu lorenyu merged commit 6f6d548 into main Jul 23, 2024
8 of 9 checks passed
@lorenyu lorenyu deleted the lorenyu/checkclean branch July 23, 2024 18:35
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.

Create CI check for clean terraform plan
2 participants