-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FEAT] - Updates and Refactoring for Node 20 #34
Comments
2 things I'd add...
|
also bumps minor backstopjs version Closes: #34
@garris great progress! Please see below failing functional (manual), unit, and integration tests. Here's a comparison between the feature branch and upstream Functional Tests Performed
Unit Tests PerformedAll passing, except compare
- should resolve if compare-hashes succeed
- should resolve if compare-hashes fail, but compare-resemble succeeds
- should reject if compare-hashes and compare-resemble fail Docker Validations PerformedNote: a
|
@dgrebb Great! Did you want to book a time to review the different fail cases? Or are you still running these down? |
@garris sounds good. I'm digging into Ember next. After that, we can review everything in one go. I'll reach out to coordinate a time when everything is ready. Thank you! |
@garris Ember.js checks out! This is all running with Node 20. Here are:
EmberJS Test DashboardIn Ember's test runner dashboard, before and after accepting the first backstop run, the report image displays, then disappears. Is this expected? Backstop Remote running via
|
Wow Amazing work!! This is ridiculous -- there will be a lot of backstop users who are super thankful for this! |
And yeah -- I'm not sure about the QuickStart tests disappearing behavior -- but I am not that concerned about it as long as the tests give consistent results. |
I'll get a list of items for review and get back to you with some times this week. Thank you! |
Node Testing@garris one more update, regarding Node version testing: Node 18Works! Node 16Works! Node 14It appears later versions of added 1022 packages from 768 contributors and audited 1024 packages in 23.222s
209 packages are looking for funding
run `npm fund` for details
found 4 vulnerabilities (1 low, 2 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
❯ npm run sanity-test
> [email protected] sanity-test ~/Projects/BackstopJS
> cd test/configs/ && node ../../cli/index.js test
~/Projects/BackstopJS/node_modules/puppeteer-core/lib/cjs/puppeteer/util/disposable.js:19
Symbol.dispose ??= Symbol('dispose');
^^^
SyntaxError: Unexpected token '??='
at wrapSafe (internal/modules/cjs/loader.js:1029:16)
at Module._compile (internal/modules/cjs/loader.js:1078:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18)
at Object.<anonymous> (~/Projects/BackstopJS/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js:23:25)
at Module._compile (internal/modules/cjs/loader.js:1114:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] sanity-test: `cd test/configs/ && node ../../cli/index.js test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] sanity-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! ~/.npm/_logs/2023-11-07T02_17_49_762Z-debug.log
❯ node -v
v14.21.3 |
Agree, let's drop support for 14. Let's please add at the top of the docs requirements section. |
…` script for local image testing (#34)
this loads the custom docker image, built with buildx, into local system container namespace. necessary when updating dockerfile without the option to publish to docker registry.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
this loads the custom docker image, built with buildx, into local system container namespace. necessary when updating dockerfile without the option to publish to docker registry.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
`genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing.
…, and general bugfixes and enhancements for developer experience. (garris#1523) * style(remote): adjusts spacing/quotes for eslint rules (#34) * feat(backstopjs): updates dev/dependencies to latest possible versions (#34) * build(backstopjs): adds engines, type (commonjs), and bump package.json version (#34) * build: adds 'docker-load' script for local testing (#34) this loads the custom docker image, built with buildx, into local system container namespace. necessary when updating dockerfile without the option to publish to docker registry. * fix: removes obsolete `genConfig` npm script (#34) `genConfig` is now `makeConfig` and is ultimately used in `backstop init`. There is no need to test this separately, as it's part of the overall flow of `init`, which is now used in npm's `integration-test` script, and passing. * fix: removes obsolete 'echo' npm script This was originally part of the `gulp` workflow, back in the `slimer` and `casper` days. https://github.com/garris/BackstopJS/blob/b00ab5bf358fcb3b77724ac4ef10b30e86b5188d/core/command/echo.js * test: adds success, caution, and failure messaging to unit, integration, smoke, and sanity tests This provides a final outcome message for all npm scripts for internal project testing. With tests that `exit 1`, a caution message is used, as opposed to a full-blown "FAIL". * build: specifies npm@>=8 in package engines also renames "docker-load" script "load-docker" to align with other script naming conventions * build: updates and refactors README.md * build(docker): updates Dockerfile with node:20-bullseye * test: adds playwright smoke tests * test: echo fail message if smoke tests succeed * feat(docker): includes playwright and deps installation in Dockerfile * test(backstop): updates caution message with advice to check logs
Requirements
The project should be installed and run with Node 20. As gaps are identified, create issues for larger lifts, or add tasks below to upgrade specific dependencies one at a time.
Tasks
master
using Node 20ncu
Dockerfile
to Node 20 ([CHORE]: Update Dockerfile and test with Node 20 (#34) #40)santiy-test-docker
sanity-test
remote
test
reference
approve
Compatibility Tests
The text was updated successfully, but these errors were encountered: