Skip to content

Run staging's e2e as its own Kustomization, on the version it was built for - #31

Merged
bulbashenko merged 1 commit into
mainfrom
e2e-own-kustomization
Oct 27, 2026
Merged

bulbashenko merged 1 commit into
mainfrom
e2e-own-kustomization

Conversation

@bulbashenko

Copy link
Copy Markdown
Collaborator

Найдено на прогоне d9d24d4: e2e тестировал новый образ против манифестов старой версии (Kratos остался на 256Mi) и к тому же держал эту старую версию. Job входил в Kustomization стека. Смена пинов меняет её spec.images, Flux сразу переcобирал её со старым артефактом исходников и новыми тегами образов, а 30-минутное ожидание здоровья Job не давало применить новую ревизию.

  • deploy/staging-e2e: Job и SA, которому можно только читать Flux Kustomization. Это отдельная Kustomization в infra с dependsOn на стек, поэтому здоровье стека больше не ждёт тесты.
  • Образ знает свой коммит (E2E_REVISION). Init Job'а ждёт, пока Kustomization стека применит именно этот коммит и станет Ready, и только потом ждёт сервисы.

infra нужно перевести на две Kustomization (следующий PR в infra), до этого e2e в staging не запускается.

🤖 Generated with Claude Code

…lt for

Staging's run of d9d24d4 tested the new e2e image against the previous
version's manifests (Kratos still at 256Mi), and held that version in
place. The Job was part of the stack's Kustomization: changing pins
changes its spec images, Flux reconciled at once with the old source
artifact and new image tags, and its 30-minute health wait on the Job
kept the new revision from being applied.

- deploy/staging-e2e: the Job (and a ServiceAccount allowed to read
  Flux Kustomizations) for a Kustomization of its own in infra,
  depending on the stack's, so the stack's health no longer waits for
  the tests.
- The image carries its commit (E2E_REVISION); the Job's wait first
  holds until the stack's Kustomization has applied that commit and is
  ready, which closes the remaining window, then waits for the services.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bulbashenko
bulbashenko merged commit d6004ef into main Oct 27, 2026
2 checks passed
@bulbashenko
bulbashenko deleted the e2e-own-kustomization branch October 27, 2026 14:06
bulbashenko-com-deploy Bot added a commit to bulbashenko-com/infra that referenced this pull request Oct 27, 2026
…he version it was built for (bulbashenko-com/auth#31)

2 commit(s), 6 file(s) since d9d24d4:
- d6004ef Merge pull request #31 from bulbashenko-com/e2e-own-kustomization
- ab0881c Run staging's e2e as its own Kustomization, on the version it was built for

Source: bulbashenko-com/auth@d9d24d4...d6004ef
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.

1 participant