From d5624668d4ff79438a96c7e11dca0b4bdd9e52ce Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Mon, 16 Jun 2025 08:51:45 -0500 Subject: [PATCH] chore: use large modules in dogfood template (#18389) Large modules can potentially break or slow down template behaviors. Our primary dogfood template should experience this if it becomes an issue. Just trying to catch things in dogfood before we experience them in the wild. --- dogfood/coder/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index af4417b78c..3a2b34a19c 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.