mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-11-01 04:09:39 +00:00
1.4 KiB
1.4 KiB
Fork PR Testing Guide
This document explains how testing works for external pull requests from forks.
Overview
The testing system consists of two main workflows:
- E2E Tests (
test-e2e.yml) - Runs automatically for internal PRs, need manual trigger on external PRs. - Ok To Test (
ok-to-test.yml) - Dispatchesrepository_dispatchevent when maintainer put's/ok-to-test sha=<commit hash>comment in the forked PR thread.
How It Works
1. PR is created by maintainer:
For the PR created by maintainer E2E Test workflow starts automatically. The PR check will reflect the status of the job.
2. PR is created by external contributor:
For the PR created by external contributor E2E Test workflow won't start automatically.
Maintainer should make a sanity check of the changes and run it manually by:
- Putting a comment
/ok-to-test sha=<latest commit hash>in the PR thread. E2E Testworkflow starts.- After
E2E Testworkflow finishes, the commit with a link and workflow status will appear in the thread. - Maintainer can merge PR or request the changes based on the
E2E Testresults.
Notes
- Only users with write permissions can trigger the
/ok-to-testcommand. - External PRs are automatically detected and prevented from running e2e tests automatically.
- Running e2e test on the external PR is optional. Maintainer can merge PR without running it. Maintainer decides whether it's needed to run an E2E test.