Closed rocketnova closed 2 months ago
@rocketnova FYI for the future, for testing this change I probably would have been ok with just template CI coverage rather than requiring manual testing. If I'm not mistaken template CI would hit most if not all of the code paths you tested which would be enough to sanity check.
@rocketnova FYI for the future, for testing this change I probably would have been ok with just template CI coverage rather than requiring manual testing. If I'm not mistaken template CI would hit most if not all of the code paths you tested which would be enough to sanity check.
@lorenyu Good to know. I'm still trying to tune in to what is the right level of testing you're looking for since you previously asked for more testing evidence.
For this particular testing, so I can improve my understanding of the CI, I know that the CI covers all of the changes to the /.github
files. Does it also cover all of the changes to the /infra
dir?
@rocketnova template CI will set up the account, network, build repository, and service layers, skipping the database layer. So it will cover quite a bit of surface area. It won't cover the infra/app/database/main.tf change, but since that change is the same as the other ones I think it's low risk. You can see what it does here: https://github.com/navapbc/template-infra/blob/5f92599fa1831535b91f94205a80ccbd883c76d6/template-only-test/template_infra_test.go
@rocketnova template CI will set up the account, network, build repository, and service layers, skipping the database layer. So it will cover quite a bit of surface area. It won't cover the infra/app/database/main.tf change, but since that change is the same as the other ones I think it's low risk. You can see what it does here: https://github.com/navapbc/template-infra/blob/5f92599fa1831535b91f94205a80ccbd883c76d6/template-only-test/template_infra_test.go
Oh right. Thanks for the reminder. I get the template CI and CD functionality mixed up sometimes.
Ticket
Resolves #587
Changes
~> 1.8.0
Context for reviewers
We are currently pinning our terraform version only to the major version:
This causes mysterious and sometimes hard to debug issues like #586. We should instead pin to the terraform minor version (e.g. 1.8.x) and do controlled upgrades to new minor versions (e.g. 1.8.x -> 1.9.x).
This PR uses the pessimistic constraint operator to ensure that only updates to the rightmost version component are applied.
Testing
For CI/CD changes, see https://github.com/navapbc/template-infra/actions/runs/9119524960
To test terraform CLI changes:
tfenv install 1.8.3 && tfenv use 1.8.3
Example screenshot