Local OCI Testing
This page explains how to run overlay tests locally using OCI images built from a PR.
When to Use This
Use local OCI testing when you want your local tests to use the same OCI images that CI uses for a PR build.
Requirements
- You have a PR number with OCI images already built via
/publish - You have access to the workspace root files:
source.jsonplugins-list.yaml
Steps
- Go to the workspace root (not the
e2e-testsdirectory). - Ensure
source.jsonandplugins-list.yamlexist. - Set
GIT_PR_NUMBERand run tests.
bash
export GIT_PR_NUMBER=1845
yarn test1
2
2
What Happens
When GIT_PR_NUMBER is set, the framework:
- Reads
source.jsonandplugins-list.yaml - Fetches plugin versions from the source repository
- Replaces local plugin paths with OCI references for that PR
Troubleshooting
- Missing
source.jsonorplugins-list.yamlwill fail the deployment. - If OCI URLs cannot be generated, check the PR build logs and ensure
/publishcompleted successfully.