-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): Add frontend integration test manual run (#8767)
* Fix bug in the front-end test * Add local debugging to the FE test * Save testing artifacts to GCS * Address comments
- Loading branch information
Showing
3 changed files
with
71 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Frontend integration test | ||
|
||
This test gets triggered by the end-to-end testing workflows. | ||
|
||
## Local run | ||
|
||
1. Deploy KFP on a k8s cluster and enable port forwarding. Replace the default namespace `kubeflow` below if needed. | ||
|
||
```bash | ||
POD=`kubectl get pods -n kubeflow -l app=ml-pipeline-ui -o jsonpath='{.items[0].metadata.name}'` | ||
kubectl port-forward -n kubeflow ${POD} 3000:3000 & | ||
``` | ||
|
||
1. Build the container with the tests: | ||
|
||
```bash | ||
docker build . -t kfp-frontend-integration-test:local | ||
``` | ||
|
||
1. Run the test with enabled networking (**this exposes your local networking stack to the testing container**): | ||
|
||
```bash | ||
docker run --net=host kfp-frontend-integration-test:local --remote-run true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters