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

Ensure package hash is stable #387

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Ensure package hash is stable #387

merged 1 commit into from
Feb 7, 2024

Conversation

jdno
Copy link
Member

@jdno jdno commented Feb 6, 2024

Fastly added metadata collection1 to the CLI in version 10.6.0. The metadata includes the heap size during the build, which is not stable over time. Because of that, Terraform always detected a change to the compute package, even though no code had changed.

Disabling the metadata collection ensures that the package hash is stable between builds, thus reducing the noise in Terraform.

Footnotes

  1. https://developer.fastly.com/learning/tools/cli/#metadata-collection

Fastly added metadata collection[^1] to the CLI in version 10.6.0. The
metadata includes the heap size during the build, which is not stable
over time. Because of that, Terraform always detected a change to the
compute package, even though no code had changed.

Disabling the metadata collection ensures that the package hash is
stable between builds, thus reducing the noise in Terraform.

[^1]: https://developer.fastly.com/learning/tools/cli/#metadata-collection
@jdno
Copy link
Member Author

jdno commented Feb 6, 2024

I've reported this as an issue here: fastly/cli#1125.

@jdno jdno merged commit aff57e6 into rust-lang:master Feb 7, 2024
3 checks passed
@jdno jdno deleted the stable-hash branch February 7, 2024 10:29
jdno added a commit to jdno/rust-simpleinfra that referenced this pull request Feb 15, 2024
The collection of metadata was disabled in rust-lang#387, because the metadata
contained an unstable property that broke the change detection in
Terraform. This issue has been resolved upstream by introducing buckets
for the heap allocation size, which reduces the risk of changes in the
metadata while preserving the usefulness of the property.

See fastly/cli#1130 for details on the buckets.
jdno added a commit to jdno/rust-simpleinfra that referenced this pull request Apr 16, 2024
The collection of metadata was disabled in rust-lang#387, because the metadata
contained an unstable property that broke the change detection in
Terraform. This issue has been resolved upstream by introducing buckets
for the heap allocation size, which reduces the risk of changes in the
metadata while preserving the usefulness of the property.

See fastly/cli#1130 for details on the buckets.
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.

2 participants