Skip to content

Fix FB tests for PMM-15194 encryption v2 rotation#1046

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/pmm-fb-test-repair-ea1a
Draft

Fix FB tests for PMM-15194 encryption v2 rotation#1046
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/pmm-fb-test-repair-ea1a

Conversation

@cursor

@cursor cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Why

FB run 28705517533 on PR-4456 (PMM-15194 migrate encryption to v2) failed three suites:

  • @fb-encryption — tests still assert v1 rotation log lines (DB pmm-managed is successfully decrypted, etc.) removed in PMM-15194 Rewrite field-level encryption on tink-go/v2 pmm#5595
  • CLI Remove — test expects old error text (We could not find... Please) but pmm-admin now prints could not find...; please
  • @user-password (podman) — workflow installed libncurses5 before apt-get update, hitting a 404 on jammy mirrors; also had a broken empty apt-get install line

How

  • Update verifyEncryptionRotation() in encryption_test.js to assert v2 rotation output: primary key added, PMM Server restarted, secrets re-encrypted
  • Align remove.spec.ts expected CLI error message with admin/commands/management/remove.go
  • Fix runner-e2e-tests-podman.yml: run apt-get update first, replace libncurses5 with libncurses6, remove broken empty install step
Open in Web View Automation 

@travagliad
travagliad marked this pull request as ready for review July 4, 2026 12:46
@travagliad
travagliad marked this pull request as draft July 8, 2026 03:35
@travagliad

Copy link
Copy Markdown
Contributor

@cursoragent separate these 2 fixes into 2 different PRs, leave the one for the encryption as draft, and the other as open.

@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Split complete. The combined PR is now two focused PRs:

Draft — encryption only

#1046 — Fix FB tests for PMM-15194 encryption v2 rotation (draft)

  • Branch: cursor/pmm-fb-test-repair-ea1a
  • Change: codeceptjs-e2e/tests/encryption/encryption_test.js only
  • Asserts v2 rotation output (primary key added, server restarted, secrets re-encrypted)

Open — podman workflow only

#1058 — Fix podman e2e workflow apt setup on Ubuntu jammy (ready for review)

  • Branch: cursor/fix-podman-e2e-workflow-4051
  • Change: .github/workflows/runner-e2e-tests-podman.yml only
  • Runs apt-get update first, uses libncurses6, removes the broken empty install step

The CLI remove error message fix was already merged separately in #1045, so it isn’t part of either PR. Both branches are rebased on current main.

Open in Web Open in Cursor 

Update verifyEncryptionRotation() assertions to match the new keyset-based
rotation output: primary key added, PMM Server restarted, and secrets
re-encrypted with the new key.

Co-authored-by: travagliad <travagliad@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/pmm-fb-test-repair-ea1a branch from ce5b797 to a63c6b9 Compare July 9, 2026 12:00
@travagliad

Copy link
Copy Markdown
Contributor

Warning

This is dependent on percona/pmm#5595

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