Skip to content

fix(deployment): block nvidia rtx5090m for trial deployments - #3346

Merged
baktun14 merged 2 commits into
mainfrom
fix/deployment-block-rtx5090m-trial-gpu
Jun 23, 2026
Merged

fix(deployment): block nvidia rtx5090m for trial deployments#3346
baktun14 merged 2 commits into
mainfrom
fix/deployment-block-rtx5090m-trial-gpu

Conversation

@baktun14

@baktun14 baktun14 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

nvidia/rtx5090m (mobile RTX 5090) was missing from the deploy-web trial blocked-GPU list. The frontend value is build-time only, so this sets it via the production env file to match the API policy (already updated via Doppler).

What

Set NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS in apps/deploy-web/env/.env.production so the trial GPU blocklist (now including nvidia/rtx5090m) is inlined at next build. Takes effect on the next deploy-web build/redeploy. The schema default in env-config.schema.ts is left unchanged; the env var is the source of truth, mirroring how the API leans on Doppler. Backend enforcement is unchanged and remains authoritative.

Summary by CodeRabbit

Release Notes

  • Chores
    • Added a new public configuration to block selected GPU models for trial accounts using managed wallets.
    • Included the corresponding environment variable placeholder in the sample environment file.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS environment variable to both production config and sample template with a comma-separated list of GPU model identifiers to block during managed wallet trials.

Changes

Blocked GPU Models Environment Config

Layer / File(s) Summary
Environment configuration for blocked GPU models
apps/deploy-web/env/.env.production, apps/deploy-web/env/.env.sample
Adds NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS with a comma-separated list of blocked GPU model identifiers to production config and includes the placeholder in the sample template.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • akash-network/console#3198: Introduced the trial GPU-blocking logic (bid filtering, SDL/lease validations) that reads NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS, which this PR now populates for production.

Suggested reviewers

  • stalniy
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/deployment-block-rtx5090m-trial-gpu

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

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.63%. Comparing base (7f7ec7d) to head (4a81f3f).
⚠️ Report is 6 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3346      +/-   ##
==========================================
- Coverage   69.63%   69.63%   -0.01%     
==========================================
  Files        1087     1088       +1     
  Lines       26672    26689      +17     
  Branches     6415     6420       +5     
==========================================
+ Hits        18574    18585      +11     
  Misses       7111     7111              
- Partials      987      993       +6     
Flag Coverage Δ *Carryforward flag
api 84.98% <ø> (ø)
deploy-web 55.25% <ø> (ø) Carriedforward from b32bded
log-collector 85.85% <ø> (ø)
notifications 91.44% <ø> (ø)
provider-console 81.38% <ø> (ø)
provider-inventory 85.08% <ø> (-0.27%) ⬇️
provider-proxy 86.26% <ø> (ø)
tx-signer 78.37% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.
see 13 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@baktun14
baktun14 force-pushed the fix/deployment-block-rtx5090m-trial-gpu branch from bdaad73 to b32bded Compare June 23, 2026 00:49

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/deploy-web/env/.env.production`:
- Around line 38-39: The environment variable
NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS is defined in
.env.production but missing from the environment template files. Add this
variable to .env.sample and other environment template files (.env.staging,
.env.staging-testnet) using the same value that is defined in .env.production
(the comma-separated list of blocked GPU models:
nvidia/b300,nvidia/b200,nvidia/h200,nvidia/h100,nvidia/pro6000se,nvidia/pro6000we,nvidia/a100,nvidia/rtx5090,nvidia/rtx5090m,nvidia/rtx4090,nvidia/rtx3090)
to ensure developers have proper documentation of this configuration when
setting up their environments.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 80bde89d-2ff6-4ef6-995d-fcb9c5fd5408

📥 Commits

Reviewing files that changed from the base of the PR and between bdaad73 and b32bded.

📒 Files selected for processing (1)
  • apps/deploy-web/env/.env.production

Comment thread apps/deploy-web/env/.env.production
@baktun14
baktun14 enabled auto-merge June 23, 2026 14:34

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
apps/deploy-web/env/.env.sample (2)

53-53: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Minor: Key ordering differs from static analysis baseline.

The static analysis tool (dotenv-linter) flags this entry as out of lexicographic order—it should appear before NEXT_PUBLIC_TURNSTILE_ENABLED. While not a functional issue, reordering would align with the tool's baseline and improve consistency.

📋 Suggested reordering

Move the NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS entry to appear before any keys starting with "NEXT_PUBLIC_T" to restore alphabetical order.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/deploy-web/env/.env.sample` at line 53, The environment variable
NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS is positioned out of
lexicographic order according to dotenv-linter's baseline. Move this key entry
to appear before any keys starting with NEXT_PUBLIC_T (such as
NEXT_PUBLIC_TURNSTILE_ENABLED) to restore proper alphabetical ordering and align
with the static analysis tool's expectations for the .env.sample file.

Source: Linters/SAST tools


53-53: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Sample entry is minimal but lacks guidance on format.

The blank value matches the pattern used for other environment-specific variables, satisfying the path instruction requirement for example-file entries. However, since the schema enforces a strict comma-separated vendor/model format (per env-config.schema.ts), developers setting this variable in production may benefit from a comment or inline example showing valid entries.

Consider adding a comment above or inline documenting the expected format, or including a reference example such as the schema default list.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/deploy-web/env/.env.sample` at line 53, The
NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS environment variable in the
.env.sample file is blank without format guidance. Add a comment above this
variable entry that documents the expected format as comma-separated
vendor/model pairs (e.g., "nvidia/a100,amd/mi250"). Reference the schema
validation rules from env-config.schema.ts to ensure the comment accurately
reflects the required format, helping developers understand what valid entries
should look like when configuring this variable in production.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@apps/deploy-web/env/.env.sample`:
- Line 53: The environment variable
NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS is positioned out of
lexicographic order according to dotenv-linter's baseline. Move this key entry
to appear before any keys starting with NEXT_PUBLIC_T (such as
NEXT_PUBLIC_TURNSTILE_ENABLED) to restore proper alphabetical ordering and align
with the static analysis tool's expectations for the .env.sample file.
- Line 53: The NEXT_PUBLIC_MANAGED_WALLET_TRIAL_BLOCKED_GPU_MODELS environment
variable in the .env.sample file is blank without format guidance. Add a comment
above this variable entry that documents the expected format as comma-separated
vendor/model pairs (e.g., "nvidia/a100,amd/mi250"). Reference the schema
validation rules from env-config.schema.ts to ensure the comment accurately
reflects the required format, helping developers understand what valid entries
should look like when configuring this variable in production.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6968a00d-f602-4b62-b005-9037206aaadc

📥 Commits

Reviewing files that changed from the base of the PR and between b32bded and 4a81f3f.

📒 Files selected for processing (1)
  • apps/deploy-web/env/.env.sample

@baktun14
baktun14 added this pull request to the merge queue Jun 23, 2026
Merged via the queue into main with commit 8a11df8 Jun 23, 2026
57 checks passed
@baktun14
baktun14 deleted the fix/deployment-block-rtx5090m-trial-gpu branch June 23, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants