Repository navigation
fix(ci): CCP-6557 - deploy PR Redis with the DEV values, not the base ones - #356
Closed
NikhilMM89 wants to merge 1 commit into
Closed
NikhilMM89 wants to merge 1 commit into
NikhilMM89 wants to merge 1 commit into
Conversation
… ones
The Redis release name is ${repo}-redis for every caller, so a PR that
touches charts/redis/ upgrades the one shared DEV release. PRs pass no
environment, so that upgrade was falling through to the base values.yml -
the TEST profile - and overwriting DEV's own overrides.
Invert the branch: PROD and TEST are named explicitly, everything else
(DEV and PRs, which share the namespace and the release) takes
values-dev.yml.
Today this silently scales DEV's Redis from 1 replica to 2, against the
storage-quota reason values-dev.yml gives for pinning it at 1. It gets
worse with two PRs in flight: #353 adds a master PDB to the base values
that DEV deliberately disables, and #354 enables Sentinel for DEV only,
which a PR deploy would then fail to enable while the app expects it.
|
Collaborator
Author
|
Folded into #354 to keep the review queue short — same commit, cherry-picked as 80c8d67. Closing this. The change matters for #354 specifically: without it a PR environment deploys Redis with the base values, so Sentinel would never be enabled while the app chart's DEV/PR profile expects it on 26379. Reviewing it alongside the Sentinel change is the more useful read anyway. |
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.



PR environments deploy Redis with the base values, not DEV's, even though they run in the DEV namespace and share DEV's Redis release.
The mechanism
RELEASE_NAME="${{ github.event.repository.name }}-redis"—common-notify-redisfor every caller, with no PR number in it. So a PR that touchescharts/redis/does ahelm upgradeon the one shared DEV release.Which values it uses came from this branch:
pr-open.ymlnever passesenvironment— the input is documented as "Environment name; omit for PRs". So PRs fell to theelseand applied the base profile, which is TEST's, to the DEV release.What diverges today
values.ymlvalues-dev.ymlreplica.replicaCountvalues-dev.ymlpins DEV to 1 replica and says why: "Reduced replicas due to storage constraints (40Gi quota)". A PR deploy quietly scales it to 2 and takes another PVC against that quota.Why it matters more with two PRs in flight
master.pdb.create: true / minAvailable: 1to the base values. DEV disables PDBs deliberately. After that merges, any PR touchingcharts/redis/gives DEV a PDB that blocks node drains — the exact thing the dev override exists to prevent.REDIS_SENTINELS=common-notify-redis:26379, but a PR Redis deploy would leavesentinel.enabled: false, so there'd be nothing on 26379 and the backend could not connect. PR envs could never exercise Sentinel at all.The result either way is that DEV's Redis config oscillates with whichever pipeline ran last.
The change
PROD and TEST are now named explicitly; everything else — DEV and PRs, which share both the namespace and the release — takes
values-dev.yml.environmentPRODvalues-prod.ymlvalues-prod.ymlTESTDEVvalues-dev.ymlvalues-dev.ymlvalues-dev.ymlOnly the PR row changes. Verified by running the branch under bash for all four inputs, and the workflow YAML still parses.
How this surfaced
I pushed to #354 and it started run
46564487326, which would have applied the base profile to DEV's shared Redis. I cancelled it duringDeploy Crunchy;Deploy RedisandHelm Deployboth showskipped, so nothing was applied.Not fixed here
The Crunchy selection a few lines up has the same shape:
A PR gets
charts/crunchy/values.ymlthere for the same reason. I have not touched it — that is the database, and it deserves its own change with someone who knows the intended PR topology. Worth a ticket.Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: