Repository navigation
Conversation
|
@Turbo87 super valid comments, this was too quickly done, I'll rework it with your comments in mind |
ad031cc to
2ce9b60
Compare
|
I rebased / redid the PR, as first version just a direct migration of the current behavior, without any change. Codex review tells me there might be an issue with terragrunt copying the compute-static module, but not having access to the shared library? not sure about the best way to solve it. |
| # https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions | ||
| resolver = "2" | ||
| members = [ | ||
| "crates/fastly-access-log", |
There was a problem hiding this comment.
why did you make this a top-level workspace member?
I'm asking because it seems that the terraform/terragrunt modules currently aren't workspace members for some reason and this seems to balloon the top-level lockfile quite a bit 😅
There was a problem hiding this comment.
Only half-reasons you could say.
The CI runs tests / clippy for all workspace crates automatically.
From what I see, we only kept the WASM crates separate because you only can run their tests etc with viceroy.
So my thinking was to add that shared crate to the workspace just because it works without viceroy.
( I don't have a strong opinion here and happily oblige with any other design preference, what do you think?)
There was a problem hiding this comment.
I see, thanks.
I don't have a strong opinion here and happily oblige with any other design preference, what do you think?
up to the infra team, I guess :D
There was a problem hiding this comment.
I don't have a strong opinion either, I'm fine as it is.
hmm, yeah, Claude agrees that this might be problematic. I don't know enough about terragrunt/terraform and the setup here to have an opinion on that part, and I don't think have the credentials to be able to experiment with it either 😅 |
ubiratansoares
left a comment
There was a problem hiding this comment.
@syphar @Turbo87 I ran some plans for both docs-rs (terraform) and crates-io-staging (terragrunt) and I confirmed the issue.
I tried a fix changing the terraform.source for crates.io/staging, ie having instead
terraform {
source = "${get_repo_root()}//terragrunt/modules/crates-io"
}
and got a successful terragrunt plan
# previous output
20:09:10.641 fastly_service_compute.static: Refreshing state... [id=liljrvY3Xt0CzNk0mpuLa7]
20:09:14.901 fastly_service_dictionary_items.compute_static["compute_static"]: Refreshing state... [id=liljrvY3Xt0CzNk0mpuLa7/0xXJPFIZ3yLoVjrIUTeqY2]
20:09:15.319 Terraform used the selected providers to generate the following execution
20:09:15.319 plan. Resource actions are indicated with the following symbols:
20:09:15.319 ~ update in-place
20:09:15.319 Terraform will perform the following actions:
20:09:15.319 # fastly_service_compute.static will be updated in-place
20:09:15.319 ~ resource "fastly_service_compute" "static" {
20:09:15.319 ~ active_version = 152 -> (known after apply)
20:09:15.319 ~ cloned_version = 152 -> (known after apply)
20:09:15.319 id = "liljrvY3Xt0CzNk0mpuLa7"
20:09:15.319 name = "static.staging.crates.io"
20:09:15.319 # (6 unchanged attributes hidden)
20:09:15.319 ~ package {
20:09:15.319 ~ source_code_hash = "d3a53d4bea4dc90f1b79f629521972720ed5a221cad1b6e9df18b06a6ab016eeee4c03c8edd9e1867a04bd8569defc765e6e919c80e6fe97121bef9be4214839" -> "b2a245c1d04ae9617135f0bf97c57a8a6abd201ea1d3d0db2b675b3aa12373b83c6b69c1975eec8c60c78037a99478fce327d8fc382c2e4fd3f1747058ff10f9"
20:09:15.319 # (2 unchanged attributes hidden)
20:09:15.319 }
20:09:15.319 # (9 unchanged blocks hidden)
20:09:15.319 }
20:09:15.319 Plan: 0 to add, 1 to change, 0 to destroy.
@ubiratansoares I added a commit doing that for |
101f11e to
80fc540
Compare
189bef6 to
3740524
Compare
3740524 to
4b93e8c
Compare
@ubiratansoares I just rebased this PR, after both PRs above were merged. @Turbo87 do you want to have another look about the parity in functionality? For now, this PR tries to have no output / behavior change for crates.io, so we can review improvements / changes separately. |
|
@ubiratansoares on top: |
|
I just ran tf apply, nothing fancy. I didn't check if this PR touches more than one module. |
@marcoieni mind sharing which changes did you deploy? |
|
I didn't run anything this week. I was answering to this:
I don't even know what it refers to "last time". But I don't remember anything in particular. What do you mean with "both" and "last time"? |
in datadog we have some custom inbound processing for access logs, specially fitted to the
compute-staticaccess log format.For docs.rs access logs we would reuse the same format, so we can reuse that logic.
This moves the access log logic into a small shared crate, then used by the
compute-staticandfastly-compute-docs-rsWASM modules.This is the first PR, just moving the logic, not changing it.