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

fix(deployer): check correct config field(s) in resource cache #1675

Merged
merged 4 commits into from Mar 12, 2024

Conversation

iulianbarbu
Copy link
Contributor

@iulianbarbu iulianbarbu commented Mar 11, 2024

Description of change

For now, the resources config are not relevant for the provisioning, so caching based on them is not required.
Furthermore, the way the codegen creates the resource configs in the loader is based on the resources input
builder default implementation, which for databases depends on DbInput, which is "{ 'local_uri': null, 'db_name': null }".
Comparing this to the way we store the configs for any resource in resource-recorder: serde_json::Value::Null, then
when checking the cache we'll always get a miss given we check for configs equality.

Existing projects must upgrade their deployers to be able to provision RDSs and do subsequent deployments.

How has this been tested? (if applicable)

On staging, provision database is not called anymore on subsequent deployments once the db was provisioned.

@jonaro00 jonaro00 changed the title fix(deployer): r#type based resource caching fix(deployer): check correct config field(s) in resource cache Mar 12, 2024
@iulianbarbu iulianbarbu merged commit f547060 into main Mar 12, 2024
30 checks passed
@jonaro00 jonaro00 deleted the fix-db-resource-cache-miss branch March 12, 2024 09:49
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.

None yet

2 participants