Commit 12d05ee
authored
Cypress e2e - Github Actions - Autotrigger after successful test.yml execution (non-gating) (opendatahub-io#5518)
* Update testUserLogin.cy.ts
* Update pipelines.cy.ts
* Update testClusterStorageCreation.cy.ts
* Update testConnectionCreation.cy.ts
* Update testModelStopStart.cy.ts
* Update workbenches.cy.ts
* Update testProjectCreation.cy.ts
* Update testAdminClusterSettings.cy.ts
* Update cypress-e2e-test.yml
* Update package.json
* Update package.json
* Update package.json
* Update cypress-e2e-test.yml
* Update cypress-e2e-test.yml
* Update package.json
* Update package.json
* Removing Electron from package.json
* Update workbenches.cy.ts
* Update testModelStopStart.cy.ts
* Dynamic Port Logic Added
* Additional Debugging for Cypress failing to connect to Chrome
* Additional debugging for chrome browser
* Fixed --browser-args
* Further additional debugging
* Revert to use 4010
* Reverted to working version with dynamic port
* Pass baseUrl via --config
* Setting ODH_DASHBOARD_URL to http://localhost:${CYPRESS_PORT}
* Added replacement of all occurences of dashboard_url
* Make ODH_DASHBOARD_URL Global
* Dynamic Port Change to Test Matrix
* Test Variables Update
* Reverting to Friday's version
* Reverting to Friday's version 2
* Nested ODH_Dashboard_URL update
* Root level ODH_Dashboard_URL change
* ODH_PORT change 2
* added chrome back
* additional cleanup added
* Additional debugging and xfvb checks
* Remved XFVB Calcs
* Switching back to electron
* Switching back to electron
* FD Limit Increase
* Reverting to working version
* Removing checkout of current branch
* Updated cypress execution command to use localhost
* Minimal test config update
* Added Cypress Debugging
* Running 1 tag with debugging
* Added WDS_SOCKET_PORT=${CYPRESS_PORT}
* Update webpack.dev.js to specify port
* Minor change to accomodate webpack changes
* Additional webpack.dev.js updates
* XFVB changes
* Remved xfvb
* Added additional logging to webpack
* Adding additional logging
* Webpack IPv4 changes
* Port cleanup change
* Adding export Base_URL
* Added Cypress and Base URLs
* Test-variables command update
* Updated base_url
* Cypress debug and Video Disable
* Addeed DEBUG=cypress:server
* Removed Cypress Debugging
* Reverting webpack.dev.js changes
* Renabling chrome
* Removed cluster detail
* Fix js-yaml import in testProjectCreation.cy.ts and update test tags
* Fix TypeScript path mapping for #~/ alias in Cypress tsconfig
* Revert TypeScript path mapping change - leave as is in main
* feat: override RHOAI namespaces with ODH values from GitHub secret
- Add step to override namespace values from ODH_NAMESPACES secret
- Parse comma-separated values: OPERATOR_NAMESPACE,APPLICATIONS_NAMESPACE,NOTEBOOKS_NAMESPACE,OPERATOR_NAME,ODH_DASHBOARD_PROJECT_NAME
- Mask secret values in logs for security
- Add description noting workflow only supports ODH dash-e2e pipeline currently
- Switch from Electron to Chrome browser for Cypress tests
* feat: improve E2E workflow for multi-user parallel execution
- Improve port allocation: use modulo 1000 with 5-port spacing (1000 possible ports)
- Add port ownership tracking with run_id files to prevent collisions
- Remove Cypress dependencies installation step (managed on runners)
- Add port ownership checking before killing processes (prevents killing other users' jobs)
- Enable video recording on test failure (videoUploadOnPasses: false)
- Improve cleanup job: only kill processes owned by current run_id
- Add Chrome process cleanup to prevent orphaned browser processes
- Add alternative port finding if primary port is owned by another run
These changes ensure the workflow can safely handle up to 5 users running
pipelines in parallel without port collisions or process interference.
* fix: remove invalid videoUploadOnPasses Cypress config option
Cypress automatically uploads videos on failure by default when video=true,
so the videoUploadOnPasses option is not needed and is invalid.
* fix: add timeouts to cache operations to prevent hanging
- Add timeout-minutes: 10 to npm dependencies cache (largest cache)
- Add timeout-minutes: 5 to turbo and oc cache steps
- Add continue-on-error: true to all cache steps to prevent job failure
- Add job-level timeout-minutes: 30 to prevent jobs from hanging indefinitely
This addresses jobs getting stuck during post-job cache cleanup,
particularly when multiple jobs run in parallel and try to save large caches.
* fix: use restore-only caching to eliminate save conflicts
- Convert all cache steps to actions/cache/restore@v4 (read-only)
- Remove cache save operations that were causing 3-5 minute post-job delays
- Jobs still benefit from cache when available, but won't update it
- Eliminates 'Unable to reserve cache' conflicts from parallel jobs
* chore: linting fixes
* feat: trigger E2E tests after test.yml with concurrency and label support
- Change trigger from push/PR to workflow_run after test.yml completes
- Add PR-aware concurrency control (e2e-pr-{number} for PRs, e2e-branch-{name} for branches)
- Only latest E2E run executes per PR/branch (cancels in-progress runs)
- Add label update job (e2e-Pass/e2e-Fail) based on test results
- Checkout PR code using refs/pull/{number}/head format
- E2E results do not gate code merging (non-blocking)
* feat: improve E2E workflow fork support and documentation
- Add test names in comments for @ci-dashboard-set-1 and @ci-dashboard-set-2
- Update checkout comment to clarify fork PR support
- Align secret handling with current implementation (graceful fallback)
- Add ODH_DASHBOARD_URL fallback to localhost for fork PRs1 parent 6e66218 commit 12d05ee
10 files changed
Lines changed: 381 additions & 356 deletions
File tree
- .github/workflows
- frontend
- src/__tests__/cypress/cypress/tests/e2e
- Pipelines
- dataScienceProjects
- clusterStorage
- connections
- models
- workbenches
- settings/clusterSettings
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
| |||
frontend/src/__tests__/cypress/cypress/tests/e2e/dataScienceProjects/workbenches/workbenches.cy.ts
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments