[SERVER-40922] Add npm install command to "run jstestfuzz" Evergreen function Created: 30/Apr/19  Updated: 29/Oct/23  Resolved: 03/May/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.4.21, 3.6.13, 4.0.10, 4.1.11

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: tig-evgconfig
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0, v3.6, v3.4
Sprint: STM 2019-05-20
Participants:
Story Points: 1

 Description   

The "run jstestfuzz" function lives here in the etc/evergreen.yml project configuration file. We'd like to remove the vendored copy of the fuzzer's dependencies from the 10gen/jstestfuzz repository. Note that removing the node_modules/ directory is a "break the world" kind of change where older mongodb/mongo commits will fail because the dependencies are no longer present. Until we remove the node_modules/ directory, running npm install should have no effect because the versions of all the fuzzer's transitive dependencies are pinned by the package-lock.json file. We can therefore add the npm install command now in preparation for removing the node_modules/ directory and break fewer older commits.

This should happen in a type=system task so that if Artifactory is down, then the Evergreen task turns purple. Note that this means it should happen before the shell.exec command to call npm test and npm run.



 Comments   
Comment by Githook User [ 07/May/19 ]

Author:

{'name': 'Robert Guo', 'username': 'guoyr', 'email': 'robertguo@me.com'}

Message: SERVER-40922 npm install before running the fuzzer

(cherry picked from commit 1a91e889478eacc7f5c63d93a0c68242719aca08)
Branch: v3.4
https://github.com/mongodb/mongo/commit/a7b02ee0055beb9d848c0c15cae19a7149f1767a

Comment by Githook User [ 07/May/19 ]

Author:

{'email': 'robertguo@me.com', 'name': 'Robert Guo', 'username': 'guoyr'}

Message: SERVER-40922 npm install before running the fuzzer
Branch: v3.6
https://github.com/mongodb/mongo/commit/1a91e889478eacc7f5c63d93a0c68242719aca08

Comment by Githook User [ 07/May/19 ]

Author:

{'name': 'Robert Guo', 'username': 'guoyr', 'email': 'robert.guo@10gen.com'}

Message: SERVER-40922 npm install before running the fuzzer

(cherry picked from commit 8bc6a62611724c9a9530c460034e47ed483c33f3)
Branch: v4.0
https://github.com/mongodb/mongo/commit/9cc66cf86b7d6a2e60e0045b047e3dbd6d53d493

Comment by Githook User [ 03/May/19 ]

Author:

{'name': 'Robert Guo', 'username': 'guoyr', 'email': 'robert.guo@10gen.com'}

Message: SERVER-40922 npm install before running the fuzzer
Branch: master
https://github.com/mongodb/mongo/commit/8bc6a62611724c9a9530c460034e47ed483c33f3

Generated at Thu Feb 08 04:56:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.