Skip to content

Backport: Fix Vault e2e test startup race to V6.2#4200

Merged
reinkrul merged 1 commit into
V6.2from
backport-4198-v6.2
Apr 16, 2026
Merged

Backport: Fix Vault e2e test startup race to V6.2#4200
reinkrul merged 1 commit into
V6.2from
backport-4198-v6.2

Conversation

@reinkrul

Copy link
Copy Markdown
Member

Summary

Backport of #4198 to V6.2.

The vault e2e test was failing because vault's entrypoint tries to call setcap on the binary, which CI runners don't allow (CAP_SETFCAP not granted). The fix:

  • Sets SKIP_SETCAP=true on the vault container (mlock isn't required for dev mode anyway).
  • Adds healthchecks to vault and vault-adapter, plus proper depends_on: service_healthy chains so the node waits for the adapter (which transitively waits for vault).
  • Replaces the --wait vault && sleep 2 race with --wait vault-adapter.

No release notes change needed.

Test plan

  • vault e2e test passes in CI

🤖 Generated with Claude Code

Probably due to a new version of vault, the e2e test failed. Vault tried to set setcap in vault container for CI compatibility which is not allowed by the CI runner.

Created the correct container dependencies and skip the setcap for vault fixed the problem.
@reinkrul
reinkrul merged commit 63831c8 into V6.2 Apr 16, 2026
6 checks passed
@reinkrul
reinkrul deleted the backport-4198-v6.2 branch April 16, 2026 11:27
@qltysh

qltysh Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Qlty


Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

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