-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PhantomJS test problems #3142
Conversation
Ensures we use the same Node version as our docker test image.
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Test results 9 files 9 suites 8m 14s ⏱️ Results for commit 2ef65c3. ♻️ This comment has been updated with latest results. |
PhantomJS is outdated and tries to use parts of OpenSSL that are no longer there. We shouldn't need SSL for the JS tests, so this attempts to disable it temporarily during the test run.
e8443cc
to
2ef65c3
Compare
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3142 +/- ##
=======================================
Coverage 60.44% 60.44%
=======================================
Files 605 605
Lines 43749 43749
Branches 48 48
=======================================
Hits 26443 26443
Misses 17294 17294
Partials 12 12 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Have also created an issue regarding removing PhantomJS: #3143
PhantomJS development has ceased. Our CI test suite currently fails because the outdated version of PhantomJS we're using for the JS tests is trying to use OpenSSL features that are no longer present in more recent versions of OpenSSL:
This PR fixes the problem by temporarily disabling OpenSSL during the running of the test suite on GitHub actions (specifically). The test suite still runs fine on the Docker test image supplied with NAV, since it is based on a slightly older Ubuntu.
For good measure, the PR also updates the workflow to use Node 18, just as the Docker image does.
The future of PhantomJS
We should consider removing PhantomJS from our test suite entirely. It is debatable whether is serves any purpose, since we also test on real JS engines like Firefox and Chrome.