You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@zeppelin.apache.org by "miinhho (via GitHub)" <gi...@apache.org> on 2026/07/13 12:45:24 UTC
[PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
miinhho opened a new pull request, #5295:
URL: https://github.com/apache/zeppelin/pull/5295
### What is this PR for?
This PR removes the flaky classic `zeppelin-web` Protractor e2e job by moving its remaining active coverage to the existing Playwright e2e workflow.
The old `run-e2e-tests-in-zeppelin-web` job depended on Protractor, webdriver-manager, and a pinned ChromeDriver 2.35, and had been failing intermittently in the classic search/replace tests due to AngularJS/Ace synchronization timing.
Since that stack is end-of-life and cannot be reasonably modernized in place, this PR ports the 10 active checks from `home.spec.js` and `searchBlock.spec.js` to Playwright, pointed at the classic `/classic` UI.
The migrated tests keep the existing classic UI coverage for the home page, interpreter permission save flow, search shortcut, match counters, replace, and replace-all behavior. After that coverage is available in Playwright, the obsolete Protractor config, scripts, dependencies, and CI job are removed.
### What type of PR is it?
Improvement
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-6527
### How should this be tested?
```bash
cd zeppelin-web-angular
npx playwright test e2e/tests/classic --project=classic --reporter=line
```
For the Maven/CI path:
```bash
./mvnw clean install -DskipTests -am -pl python,zeppelin-jupyter-interpreter,zeppelin-web,zeppelin-web-angular -Pweb-classic
xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" ./mvnw verify -pl zeppelin-web-angular -Pweb-e2e
```
### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? Edit `zeppelin-web/README.md` to reflect migrated classic web e2e test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "voidmatcha (via GitHub)" <gi...@apache.org>.
voidmatcha commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-5005295598
Merged into master (9245bbb6).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "miinhho (via GitHub)" <gi...@apache.org>.
miinhho commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-4988096658
Thanks for catching this. I applied both suggested changes.
The `zeppelin-web` Karma unit coverage is now restored through a separate `web-unit-test` profile, and the frontend workflow runs it in the anonymous Playwright CI leg.
I also applied the classic spec convention cleanup by moving the interpreter permission case into `classic-interpreter.spec.ts`, switching the collaborative follow-up placeholder to `test.fixme`, and updating the classic locator guidance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "miinhho (via GitHub)" <gi...@apache.org>.
miinhho commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-4982325982
I resolved the conflict via GitHub, which updated the branch with master and made it mergeable. I realized afterward that this produced a merge commit rather than a rebase.
Happy to redo it as a local rebase and force-push if you prefer the linear history.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "voidmatcha (via GitHub)" <gi...@apache.org>.
voidmatcha merged PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "miinhho (via GitHub)" <gi...@apache.org>.
miinhho commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-4966958038
Thanks for the detailed review and for splitting the suggested fixes into separate commits. :smile: :bowing_man:
I applied the changes for the Playwright base URL override, the explicit classic e2e script, the classic test conventions docs, and the auth-matrix classic skip.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "voidmatcha (via GitHub)" <gi...@apache.org>.
voidmatcha commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-4982242066
Could you rebase this onto master?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "voidmatcha (via GitHub)" <gi...@apache.org>.
voidmatcha commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-5004869954
@miinhho About the dedicated classic config path we deferred earlier — are you planning to pick it up after this PR lands? Happy to take it as a follow-up otherwise; either way I'll file a JIRA so it doesn't get lost.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "voidmatcha (via GitHub)" <gi...@apache.org>.
voidmatcha commented on code in PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#discussion_r3588246930
##########
zeppelin-web-angular/e2e/tests/classic/classic-search-block.spec.ts:
##########
@@ -0,0 +1,164 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { expect, Page, test } from '@playwright/test';
+import { createTestNotebookWithName } from '../../utils';
+
+const testData = {
+ textInFirstP: 'text word text',
+ textInSecondP: 'text tete tt'
+};
+
+const countSubstringOccurrence = (text: string, substring: string): number =>
+ (text.match(new RegExp(substring, 'g')) || []).length;
Review Comment:
`countSubstringOccurrence()` uses `new RegExp(substring, 'g')`. Current terms are plain (`t`, `te`), but literal counting would be safer for future regex metacharacter cases.
```suggestion
const countSubstringOccurrence = (text: string, substring: string): number =>
substring ? text.split(substring).length - 1 : 0;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "miinhho (via GitHub)" <gi...@apache.org>.
miinhho commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-4998853948
Thanks for the stability check and for sketching the dedicated classic config path.
Since it’s optional and a bit more than a small cleanup, I’d prefer to leave it for a follow-up PR so this migration can stay focused.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZEPPELIN-6527] Fix flaky run-e2e-tests-in-zeppelin-web CI job (searchBlock Protractor timing) [zeppelin]
Posted by "voidmatcha (via GitHub)" <gi...@apache.org>.
voidmatcha commented on PR #5295:
URL: https://github.com/apache/zeppelin/pull/5295#issuecomment-5005269633
Filed https://issues.apache.org/jira/browse/ZEPPELIN-6545 for the dedicated classic config follow-up so it doesn't get lost. @miinhho feel free to take it if you'd like — otherwise I'll pick it up after this lands.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org