chore: trigger Enterprise e2e tests on open PRs#11567
chore: trigger Enterprise e2e tests on open PRs#11567dharmadeveloper108 wants to merge 1 commit intomainfrom
Conversation
Dependency ReviewThe following issues were found:
License Issues.github/workflows/trigger-enterprise-e2e.yaml
OpenSSF Scorecard
Scanned Files
|
| I don’t think this is quite safe to merge yet, mainly because the current workflow seems to dispatch enterprise cicd.yaml more like the normal OSS sync flow than a dry-run validation flow. A few things I noticed while comparing it with notify_enterprise.yaml and enterprise cicd.yaml:
I think the next step should be to introduce an explicit mode on the enterprise side so OSS can trigger a safe validation-only run, while keeping the existing notify flow working as-is. |
| Something like this: https://github.com/bricks-software/unleash-enterprise/pull/878 I tried making it backward compatible. You can have a look at it from https://github.com/bricks-software/unleash-enterprise/actions/workflows/cicd.yaml switching the branch: If this is inline with what you want, we should test a bit on this branch before deciding to merge. |

Adds workflow to validate OSS changes against enterprise e2e tests before merging. When a PR is labeled with
test-enterprise, the workflow builds the OSS changes and triggers enterprise's CI to run its e2e test suite against the exact commit, catching integration issues early.TLDR: When you add the
test-enterpriselabel, it validates that your OSS changes don't break enterprise before you merge.TODO:
ENTERPRISE_REPO_TOKENsecretAbout the changes
Trigger: Fires whenever a label is added to a PR on this repo.
Job 1:
check-labeltest-enterpriselabelshould-test=trueif it doesJob 2:
test-enterprise-e2e(only runs if label is present)Checkout OSS: Clones your OSS repository at the PR branch
Set up Node.js: Installs Node 22.x
Enable corepack: Activates yarn (Yarn uses corepack for version management)
Install and build OSS:
yarn install --immutable- installs deps exactly as lockfile specifiesyarn build:backend- builds your TypeScript backendYARN_ENABLE_SCRIPTS: false- skips postinstall scripts (performance)Trigger Enterprise E2E Tests:
gh workflow run cicd.ymlon the enterprise repocommitinput