Repository navigation
fix(infra): smoke.sh checks the node count from run.tfvars (DRF-72) - #86
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.shhardcoded 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()readssystem_node_desired_sizeandsystem_node_max_sizefromrun.tfvars. If a value is unset or commented out, it falls back to thedefaultinvariables.tf, which keeps the P2 behaviour. Only these two numbers are read fromrun.tfvars.NODES=<n>overrides the desired count.node group capacity,running node instancesandReady nodeschecks use these values.Checked locally (no AWS):
run.tfvarsgives2/2.run.tfvars, an unset value or a commented-out line gives1/2.2/2.desired=2 max=1anddesired=3both giveFAIL node count …, rc 1.bash -nOK.Not run against a cluster: the next window's smoke is the first real run. No CI workflow covers
infra/terraform/scripts/.