Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test orchestrator script to trigger remote cypress test workflow GitHub runners #972

Closed
manasvinibs opened this issue Dec 5, 2023 · 0 comments · Fixed by #971
Closed

Comments

@manasvinibs
Copy link
Member

Add a script that builds the payload required to trigger remote workflows, executing Cypress tests in plugin repositories. Script takes following input params and trigger the github workflow in plugins repository. Using Github action API, constant polling of the workflow will be done to know if the execution successfully completed or not.

"-r REMOTE_REPO\t, Name of the repository in {owner}/{repository} format"
"-w GITHUB_WORKFLOW_NAME\t, Name of the GitHub workflow file name with .yml extension that contain jobs that run Cypress tests in the component repository. For example, main.yaml"
"-o OS_URL\t, Release artifact of the OpenSearch"
"-d OSD_URL\t, Release artifact of the OpenSearch Dashboards"
"-b BRANCH_REF\t Test Branch name or commit reference id"
"-i BUILD_ID\t Release-specific build id for reference"

This script returns either 0 (success) or 1 (failure) based on the status of the remote runner execution completion status by constantly polling the remote workflow for a set period of time. This can be used during release testing by build/Infra to know if the component(plugin) tests part of the release branch has succeeded or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants