From 3b8c8d3e6571e27751512b0ac5d6ab6a9f9b4299 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Mon, 16 Jun 2025 08:37:45 -0500 Subject: [PATCH 1/2] chore: dogfood large modules Large modules can potentially break or slow down template behaviors. Our primary dogfood template should experience this if it becomes an issue. --- dogfood/coder/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index af4417b78c04f..0889d1564f9a9 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -11,6 +11,16 @@ terraform { } } +// This module is a terraform no-op. It contains 5mb worth of files to test +// Coder's behavior dealing with larger modules. This is included to test +// protobuf message size limits and the performance of module loading. +// +// In reality, modules might have accidental bloat from non-terraform files such +// as images & documentation. +module "large-5mb-module" { + source = "git::https://github.com/Emyrk/large-module.git" +} + locals { // These are cluster service addresses mapped to Tailscale nodes. Ask Dean or // Kyle for help. From 66012cd67520d7db1636bdaa871acfe9f20d265c Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Mon, 16 Jun 2025 08:41:11 -0500 Subject: [PATCH 2/2] fmt --- dogfood/coder/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index 0889d1564f9a9..3a2b34a19c7b4 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -18,7 +18,7 @@ terraform { // In reality, modules might have accidental bloat from non-terraform files such // as images & documentation. module "large-5mb-module" { - source = "git::https://github.com/Emyrk/large-module.git" + source = "git::https://github.com/Emyrk/large-module.git" } locals {