Skip to content

Infrastructure updates for Yellow env#1611

Merged
tk-o merged 4 commits intomainfrom
fix/yellow-env-infra-config
Feb 6, 2026
Merged

Infrastructure updates for Yellow env#1611
tk-o merged 4 commits intomainfrom
fix/yellow-env-infra-config

Conversation

@tk-o
Copy link
Contributor

@tk-o tk-o commented Feb 6, 2026

Lite PR

Tip: Review docs on the ENSNode PR process

Summary

  • ENSRainbow instances in Yellow env will have now more disk space available.
  • ENSAdmin in Yellow env will read ENSNode connection options from configuration provided during service deployment.

Why

  • ENSRainbow Searchlight needs over 50 GB of disk space to perform label set data loading and validation.
  • ENSAdmin Yellow use default list of connection options, which points to production URLs and is not handy while testing new ENSNode deployment to Yellow env.

Testing

  • I tested ENSAdmin env vars update directly on Redner platform and it worked image

Notes for Reviewer (Optional)

  • N/A

Pre-Review Checklist (Blocking)

  • This PR does not introduce significant changes and is low-risk to review quickly.
  • Relevant changesets are included (or are not required)

Copilot AI review requested due to automatic review settings February 6, 2026 08:01
@changeset-bot
Copy link

changeset-bot bot commented Feb 6, 2026

⚠️ No Changeset found

Latest commit: 4ac2e52

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
admin.ensnode.io Ready Ready Preview, Comment Feb 6, 2026 8:13am
ensnode.io Ready Ready Preview, Comment Feb 6, 2026 8:13am
ensrainbow.io Ready Ready Preview, Comment Feb 6, 2026 8:13am

@coderabbitai
Copy link

coderabbitai bot commented Feb 6, 2026

Warning

Rate limit exceeded

@tk-o has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 50 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📝 Walkthrough

Walkthrough

Added a passthrough for NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY across GitHub Actions and Terraform, introduced Terraform variables for next_public_server_connection_library and disk_size_gb, wired those into the ensadmin and ensrainbow modules, and added the sample env entry. No behavioral logic changes beyond configuration wiring.

Changes

Cohort / File(s) Summary
GitHub Actions Workflows
\.github/workflows/deploy_ensnode_yellow.yml, \.github/workflows/plan_terraform_ensnode_yellow.yml
Added TF_VAR_next_public_server_connection_library environment variable mapped from NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY/vars.NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY for Terraform runs.
Terraform Root Configuration
terraform/variables.tf, terraform/main.tf
Added root var next_public_server_connection_library and passed it into the ensadmin module; added disk_size_gb routing for ensrainbow.
Terraform ENSAdmin Module
terraform/modules/ensadmin/variables.tf, terraform/modules/ensadmin/main.tf
Declared next_public_server_connection_library variable and exposed it as NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY in the ensadmin service env vars.
Terraform ENSRainbow Module
terraform/modules/ensrainbow/variables.tf, terraform/modules/ensrainbow/main.tf
Added disk_size_gb variable and replaced fixed size_gb = 50 with var.disk_size_gb for the ensrainbow render service.
Terraform Sample
terraform/.env.sample
Added TF_VAR_next_public_server_connection_library= entry to the sample environment file.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I nibbled through configs, neat and spry,
A variable hopped from cloud to sky,
Modules now whisper the URLs they need,
Disks made flexible for every seed,
Hooray — a small hop connects the tree! 🌈

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Infrastructure updates for Yellow env' is partially related but overly broad and vague, not clearly highlighting the main changes. Use a more specific title that highlights key changes, such as 'Increase ENSRainbow disk space and configure ENSAdmin connections for Yellow env'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description is comprehensive and well-structured, covering all required sections of the template with sufficient detail and specificity.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/yellow-env-infra-config

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tk-o tk-o marked this pull request as ready for review February 6, 2026 08:01
@tk-o tk-o requested a review from a team as a code owner February 6, 2026 08:01
Copy link
Member

@lightwalker-eth lightwalker-eth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tk-o Looks good, thanks 👍

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates infrastructure configuration for the Yellow environment to address two operational needs: increasing ENSRainbow disk space from 50GB to 100GB to accommodate label set data loading requirements, and making ENSAdmin's ENSNode connection endpoints configurable via environment variables instead of using hardcoded production URLs.

Changes:

  • Increased ENSRainbow disk allocation from 50GB to 100GB to support Searchlight label set operations
  • Added next_public_server_connection_library variable to configure ENSAdmin's ENSNode API endpoint connections
  • Updated GitHub Actions workflows and environment sample to include the new configuration variable

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
terraform/variables.tf Added root-level variable definition for next_public_server_connection_library
terraform/modules/ensrainbow/main.tf Increased disk size from 50GB to 100GB for data storage
terraform/modules/ensadmin/variables.tf Added module-level variable definition for server connection library
terraform/modules/ensadmin/main.tf Added environment variable NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY to ENSAdmin service
terraform/main.tf Passed next_public_server_connection_library variable to ENSAdmin module
terraform/.env.sample Added sample environment variable for local development
.github/workflows/plan_terraform_ensnode_yellow.yml Added workflow environment variable for Terraform planning
.github/workflows/deploy_ensnode_yellow.yml Added workflow environment variable for deployment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 6, 2026

Greptile Overview

Greptile Summary

This PR updates Yellow environment infrastructure configuration with two key changes: increasing ENSRainbow disk capacity and configuring ENSAdmin connection endpoints.

Key Changes:

  • ENSRainbow disk expansion: Increased from 50GB to 100GB to accommodate Searchlight label set data loading and validation requirements
  • ENSAdmin connection configuration: Added NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY environment variable throughout the deployment pipeline to allow Yellow environment to use non-production ENSNode API endpoints
  • Complete variable propagation: The new variable flows properly from GitHub Actions workflows → Terraform root variables → ENSAdmin module → Render service environment

Implementation Quality:

  • Changes are well-documented with inline comments explaining purpose
  • Variable descriptions include examples and clear explanations
  • The ENSAdmin application has a fallback to production URLs if the variable is empty, ensuring no breaking changes
  • Consistent implementation across both deployment and planning workflows

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The changes are straightforward infrastructure updates with proper implementation: (1) disk size increase is a simple resource scaling change with no code impact, (2) the new environment variable is properly threaded through all layers with fallback to defaults, (3) all changes are specific to the Yellow test environment, (4) the variable is documented with examples, and (5) the author has already tested the ENSAdmin configuration on the Render platform successfully
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/deploy_ensnode_yellow.yml Added NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY environment variable to the deployment workflow to configure ENSAdmin connection endpoints
terraform/modules/ensadmin/main.tf Added NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY as an environment variable for the ENSAdmin web service deployment
terraform/modules/ensrainbow/main.tf Increased disk size from 50GB to 100GB to accommodate ENSRainbow Searchlight label set data requirements
terraform/variables.tf Added root-level variable definition with descriptive documentation and example value for ENSAdmin connection configuration

Sequence Diagram

sequenceDiagram
    participant GH as GitHub Actions
    participant TF as Terraform
    participant Render as Render Platform
    participant ENSAdmin as ENSAdmin Service
    participant ENSRainbow as ENSRainbow Service
    
    Note over GH,TF: Deployment Workflow Triggered
    
    GH->>GH: Read NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY from GitHub Vars
    GH->>GH: Set TF_VAR_next_public_server_connection_library
    
    GH->>TF: terraform init
    GH->>TF: terraform plan
    GH->>TF: terraform apply
    
    Note over TF,Render: Infrastructure Changes
    
    TF->>Render: Update ENSRainbow disk size (50GB → 100GB)
    Render->>ENSRainbow: Provision 100GB disk
    ENSRainbow-->>Render: Disk ready
    
    TF->>Render: Deploy ENSAdmin with NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY
    Render->>ENSAdmin: Set environment variable
    ENSAdmin-->>Render: Service configured
    
    Note over ENSAdmin: ENSAdmin uses connection library<br/>to connect to Yellow env endpoints<br/>(instead of production defaults)
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

default = null
}

variable "next_public_server_connection_library" {
Copy link
Contributor

@vercel vercel bot Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing validation allows empty string for required Terraform variable next_public_server_connection_library, causing silent failure when GitHub organization variable is not set

Fix on Vercel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will apply default value set to an empty string.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
terraform/main.tf (1)

146-154: 🧹 Nitpick | 🔵 Trivial

Clarify the relationship between Line 150 and the comment on Lines 152–154.

Line 150 passes next_public_server_connection_library into the module, but the comment immediately below states the variable "is not currently configurable through Docker" due to a known issue (#1037). This juxtaposition is confusing — a reader might wonder whether the variable actually takes effect. Consider rewording the comment to explain how it's currently applied (e.g., build-time injection) and why the Docker limitation exists, so future maintainers don't mistakenly remove the line thinking it's dead config.

🤖 Fix all issues with AI agents
In `@terraform/modules/ensrainbow/variables.tf`:
- Around line 12-14: The variable "disk_size_gb" is missing a description and
validation; add a descriptive "description" attribute explaining it's the disk
size in gigabytes for the resource and add a "validation" block on variable
"disk_size_gb" to ensure it's a sensible positive integer (e.g., greater than
zero, or a minimum threshold like >= 10) with a clear error_message; update the
variable block for disk_size_gb accordingly so the module is self-documenting
and guards against invalid values.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tk-o tk-o merged commit a83bc8a into main Feb 6, 2026
23 checks passed
@tk-o tk-o deleted the fix/yellow-env-infra-config branch February 6, 2026 10:48
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