-
Notifications
You must be signed in to change notification settings - Fork 830
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
Refactor jasmine-test.sh #1491
Refactor jasmine-test.sh #1491
Conversation
The test run showed, the the needed docker image is used, but the ./scripts/jasmine-test.sh script is executed locally in the worker. The worker has installed locally node 8.x with npm 5.x. The errors shows this. The docker image cfidentity/uaa-singular has node 12.x with npm 6.4. Finally: error occurs now, because new jasmine depends on newer node, e.g. node 10 or high. Before the local test was working also with a node 8.x Ensure that jasmine-test.sh check if it runs in docker and if not, start itself in cfidentity/uaa-singular npm ci should be used instead npm install therefore update package-lock.json
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/176477849 The labels on this github issue will be updated when the story is started. |
Hi @strehle, thanks for looking out for the test failure caused by the jasmine bump. Instead, I think we can simply update the docker image where this jasmine test is run to have the correct versions of node & npm. For now, we are going to revert the PR that bumped jasmine (#1435) & and fix the test failure on that dependabot-initiated PR branch first. |
@peterhaochen47 thank you for reverting the node update, so that pipeline is green again. However the node update for jasmine is something I would do , but the pipeline shows, that it needs an update of used node/npm, see https://hush-house.pivotal.io/teams/cf-uaa/pipelines/uaa-acceptance-gcp/jobs/unit-tests-javascript/builds/390 This version means outdated node, with node 12.x a npm version 6.x would be part, so either you update the local node version in the workers or you ensure that the used docker image cfidentity/uaa-singular is really used. |
Hi @strehle, thanks for identifying the source of the problem as the node/npm versions not matching what the new jasmine wants.
Now the test is passing on #1493, which can now be merged. |
Ok thanks for the info |
Refactor jasmine-test.sh after PR #1435
The test run showed, the the needed docker image is used, but
the ./scripts/jasmine-test.sh script is executed locally in the worker.
The worker has installed locally node 8.x with npm 5.x. The errors shows this.
The docker image cfidentity/uaa-singular has node 12.x with npm 6.4.
Finally: error occurs now, because new jasmine depends on newer node, e.g. node 10 or high.
Before the local test was working also with a node 8.x
Ensure that jasmine-test.sh check if it runs in docker and if not, start itself in cfidentity/uaa-singular
npm ci should be used instead npm install therefore update package-lock.json