Skip to content

fix(infra): smoke.sh checks the node count from run.tfvars (DRF-72) - #86

Merged
EurusDevSec merged 1 commit into
mainfrom
hoang/drf-72-smoke-nodes
Nov 25, 2026
Merged

EurusDevSec merged 1 commit into
mainfrom
hoang/drf-72-smoke-nodes

Conversation

@EurusDevSec

Copy link
Copy Markdown
Owner

Follow-up F8 from window P5-L3-20261125-01 (docs/evidence/p5/P5-T4.2_L3_WINDOW_20261125.md §10).

Problem: infra/terraform/scripts/smoke.sh hardcoded the P2 shape of one node. The P5 window ran two nodes (system_node_desired_size = 2), so smoke gave 31 PASS and 3 FAIL, all three about the node count.

Change:

  • size() reads system_node_desired_size and system_node_max_size from run.tfvars. If a value is unset or commented out, it falls back to the default in variables.tf, which keeps the P2 behaviour. Only these two numbers are read from run.tfvars.
  • NODES=<n> overrides the desired count.
  • The node group capacity, running node instances and Ready nodes checks use these values.
  • Desired or max outside 1–2, or desired > max, stops smoke with FAIL before any AWS call.

Checked locally (no AWS):

  • Real run.tfvars gives 2/2.
  • No run.tfvars, an unset value or a commented-out line gives 1/2.
  • CRLF line endings and an inline comment give 2/2.
  • desired=2 max=1 and desired=3 both give FAIL node count …, rc 1.
  • bash -n OK.

Not run against a cluster: the next window's smoke is the first real run. No CI workflow covers infra/terraform/scripts/.

smoke.sh expected one node (desired=1, 1 running instance, 1 Ready node), so
window P5-L3-20261125-01 with two nodes showed 3 false FAILs. The expected
desired and max sizes now come from run.tfvars, else the variables.tf
defaults; NODES=<n> overrides desired. A count outside 1-2 or desired > max
stops before any AWS call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings November 25, 2026 07:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@EurusDevSec
EurusDevSec merged commit aca41d5 into main Nov 25, 2026
3 checks passed
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