Skip to content

Conversation

@vanshuhassija
Copy link
Contributor

PhantomJS is a headless web browser scriptable with JavaScript. The package is no longer maintained and does not even support ES6 features of Javascript. Chrome launched ChromeHeadless which works very similar to PhantomJs. The fix will require Karma to use ChromeHeadless as the web browser instead of PhantomJs

How was this patch tested?
Ran test cases for ambari-web and it gives the desired reports.

Please review Ambari Contributing Guide before opening a pull request.

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

Please review Ambari Contributing Guide before opening a pull request.

@vanshuhassija vanshuhassija force-pushed the AMBARI-25985-remove-phantomjs-as-headless-browser branch 2 times, most recently from 951b5c9 to 82f87cf Compare October 17, 2023 06:56
@vanshuhassija vanshuhassija changed the title What changes were proposed in this pull request? AMBARI-25985 Remove phantomjs headless browser Oct 17, 2023
@vanshuhassija vanshuhassija force-pushed the AMBARI-25985-remove-phantomjs-as-headless-browser branch from 82f87cf to ecb74f9 Compare October 17, 2023 06:59
What changes were proposed in this pull request?
PhantomJS is a headless web browser scriptable with JavaScript. The package is no longer maintained and does not even support ES6 features of Javascript.
Chrome launched ChromeHeadless which works very similar to PhantomJs. The fix will require Karma to use ChromeHeadless as the web browser instead of PhantomJs

How was this patch tested?
Ran test cases for ambari-web and it gives the desired reports.

Please review Ambari Contributing Guide before opening a pull request.

Karma Amabri web admin chrome headless

Remve phantom js package
@vanshuhassija vanshuhassija force-pushed the AMBARI-25985-remove-phantomjs-as-headless-browser branch from e78706b to f024a78 Compare October 31, 2023 06:44
Copy link
Contributor

@arshadmohammad arshadmohammad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

@JiaLiangC
Copy link
Contributor

@arshadmohammad I remember you previously handled a PR related to PhantomJS. Have you already installed PhantomJS in the Ambari Jenkins environment? Can you explain the PhantomJS environment configuration work you did before? The frontend team needs to move forward, and we need to install PhantomJS in the Jenkins environment."

@arshadmohammad
Copy link
Contributor

This PR had removed the PhantomJS. No CI change was done for this PR.
As far as I know, PhantomJS is automatically downloaded while building the ambari. No sure if there is specific setting required for PhantomJS.

@JiaLiangC
Copy link
Contributor

@arshadmohammad I apologize for the slip of the tongue earlier, I meant Chromium browser, not PhantomJS.

@arshadmohammad
Copy link
Contributor

No CI change was done for Chromium browser.
@vanshuhassija do you have anything to share on what packages need to be installed on CI environment for Chromium browser.

@vanshuhassija
Copy link
Contributor Author

@arshadmohammad @JiaLiangC No CI changes were done for ChromeHeadless. The CI ran as expected without defining custom ChromeHeadless sandbox behaviour. Simply specifying ChromeHeadless as the browser worked for me.

@JiaLiangC
Copy link
Contributor

@arshadmohammad @vanshuhassija Thank you for the information you provided. I wrote a Jenkins script to test whether the Jenkins environment has Chromium, and the conclusion is that it doesn't. You can find the script at #3810. I have already submitted an issue to the ASF infra team, and we're now waiting for them to process it and install Chromium in the Jenkins environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants