Skip to content

Add plugin-name input and generalized E2E scripts to plugin-e2e.yaml#148

Open
privilegedescalation-engineer[bot] wants to merge 2 commits intomainfrom
hugh/fix-e2e-plugin-name-input
Open

Add plugin-name input and generalized E2E scripts to plugin-e2e.yaml#148
privilegedescalation-engineer[bot] wants to merge 2 commits intomainfrom
hugh/fix-e2e-plugin-name-input

Conversation

@privilegedescalation-engineer
Copy link
Copy Markdown
Contributor

@privilegedescalation-engineer privilegedescalation-engineer Bot commented May 5, 2026

Summary

Fixes E2E startup_failure by adding a required plugin-name input to plugin-e2e.yaml and adding generalized deploy-e2e-headlamp.sh and teardown-e2e-headlamp.sh scripts to the shared workflow location.

Changes

  • .github/workflows/plugin-e2e.yaml — added plugin-name (required) and e2e-namespace (optional, default headlamp-dev) inputs; set PLUGIN_NAME env var from inputs.plugin-name
  • Scripts addedscripts/deploy-e2e-headlamp.sh and scripts/teardown-e2e-headlamp.sh in the .github repo; scripts derive ConfigMap name and mount path from PLUGIN_NAME env var
  • pnpm support — added Detect package manager step, pnpm corepack + caching, and 3-retry Playwright install with backoff
  • Playwright cache — added Restore Playwright browser cache step to speed up repeated runs

Root cause

The previous plugin-e2e.yaml had no plugin-name input, so callers that needed a non-default namespace (e.g. privilegedescalation-dev) or a specific plugin ConfigMap could not pass those through. The workflow referenced scripts/deploy-e2e-headlamp.sh that only existed in some plugin repos, not in the shared workflow location.

Testing

PR workflow: https://github.com/privilegedescalation/.github/pull/compare/main...hugh/fix-e2e-plugin-name-input

cpfarhood and others added 2 commits May 5, 2026 19:28
- Add required plugin-name input to plugin-e2e.yaml workflow_call
- Set PLUGIN_NAME env var from inputs.plugin-name in the e2e job
- Add e2e-namespace input (default headlamp-dev) for namespace flexibility
- Add pnpm support with packageManager field detection (corepack + caching)
- Add Playwright browser cache/restore step for faster test runs
- Add 3-retry Playwright install with exponential backoff
- Add scripts/deploy-e2e-headlamp.sh and scripts/teardown-e2e-headlamp.sh
  with PLUGIN_NAME-based ConfigMap naming and mount path derivation

Co-Authored-By: Paperclip <noreply@paperclip.ing>
- Add ::add-mask:: to prevent token exposure in logs
- Replace silent warning with exit 1 on token generation failure
- Issue 2 & 3 from QA findings on PR #148

Co-Authored-By: Paperclip <noreply@paperclip.ing>
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