Skip to content

add pullpreview workflow#12

Merged
Ihor-Khomenko merged 1 commit intomainfrom
pull-review-workflow
Mar 27, 2026
Merged

add pullpreview workflow#12
Ihor-Khomenko merged 1 commit intomainfrom
pull-review-workflow

Conversation

@Ihor-Khomenko
Copy link
Copy Markdown
Collaborator

Ticket

OP#73491

Added a workflow to trigger an integration-qa-helmfile repo to build a pullpreview and run test on the pullpreview environment.

Current logic
Trigger: Manually run openproject-e2e workflow .github/workflows/e2e-pullpreview.yml via workflow_dispatch.

Inputs let you choose suite (all|smoke|regression|integration|custom), setupMethod, whether to keep env on failure, plus optional version/branch overrides.
integration_ref selects which branch in integration-qa-helmfile to run the deploy workflow from (default main).
Deploy: The workflow uses the secret INTEGRATION_REPO_PAT as GH_TOKEN to call GitHub API and dispatch integration-qa-helmfile workflow pullpreview-dispatch.yml with:

action=up
preview_name (auto-generated if not provided)
integrationSetupMethod + version/branch overrides.
Wait + resolve endpoints:

Polls runs of that workflow (on the chosen integration_ref) until it finds the run whose title contains the preview_name and completes successfully.
Downloads the pullpreview-info artifact from that run (with retry because artifacts can appear late).
Reads preview-info.json and exports:
OPENPROJECT_HOST=
NEXTCLOUD_HOST=nextcloud.
KEYCLOAK_HOST=keycloak.
Writes the endpoints into the GitHub job summary for easy clicking.
Run tests:

Runs npx playwright test (full suite) or adds --grep based on suite mapping:
smoke → @smoke
regression → @regression
integration → @integration
custom → custom_grep

@Ihor-Khomenko Ihor-Khomenko merged commit 10d2af1 into main Mar 27, 2026
3 checks passed
@Ihor-Khomenko Ihor-Khomenko deleted the pull-review-workflow branch April 6, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant