-
Notifications
You must be signed in to change notification settings - Fork 27
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
sim deployment instructions are broken. #39
Comments
A summary of what the automated maintenance releases process does:
|
Here's what I'm seeing when trying to build from the 1.2 branch of ph-scale:
|
Instructions were updated in the preceding commit. I also tested that I received the same errors as @pixelzoom before |
I realize that the instructions say nothing about how to get back to master following a release. But post-release, do we now need to run 3 commands? i.e.:
|
Yes, and I believe you also need to run npm update in chipper as well. I'll update the docs. |
Make that 5 manual commands:
|
The instructions now say:
... but that's really only necessary if you're on a non-master branch, non? |
The RC and Production instructions assume that you are working from a set of SHAs, not from master. |
Ah, right. |
I added the steps to restore working copy above. @pixelzoom anything else to do for this issue? |
The 5 lines added below are now duplicated in 8 files. Doesn't this defeat the reason for the current "build instructions" system? We haven't decided to retire that system (#40 is still open), so it seems like these "restore" instructions should appear once in a new file, and be added to the 8 docs as part of building the instructions. +Restore your working copy (optional)
+- [ ] Check out master for dependencies: `grunt checkout-master`
+- [ ] Check out master for the sim repo: `git checkout master`
+- [ ] Update node_modules for the sim: `npm update`
+- [ ] Navigate to chipper: `cd ../chipper`
+- [ ] Update node_modules for chipper: `npm update` |
Attempting to deploy ph-scale from 1.2 branch with revised instructions. Are these 2 steps in the wrong order?
I see: % grunt checkout-shas
>> Local Npm module "grunt-requirejs" not found. Is it installed? |
The steps should probably be:
|
That should work, but should only be necessary if |
I don't think that's correct. The sim branch (e.g. pheh-scale 1.2) has requirejs in its package.json. The master branch does not. So when I checkout a branch and run |
The "restore" instructions also seem to have problems. Here's what I see for ph-scale, note the multiple npm errors:
In #39 (comment), I said:
@samreid It sure looks like you skipped the "test" step. |
Perhaps the "restore" instructions should involve |
This is potentially a sign of a greater problem. I've been under the assumption that you can change the package.json dependencies arbitrarily and still have 'npm update' successfully install the needed dependencies. |
I have a vague recollection about |
Indeed perennial shows how the updates must be done: exec( 'git checkout ' + repos[ simName ].sha, simDir, function() { // checkout the sha for the current sim
exec( 'npm prune', '../chipper', function() {
exec( 'npm update', '../chipper', function() { // npm update in chipper in case there are new dependencies there
exec( 'npm prune', simDir, function() {
exec( 'npm update', simDir, function() { I have no doubt that |
Since we decided to proceed with #40, this issue is moot. |
phetsims/chipper#542 may also help. |
@samreid and @pixelzoom it sounds like all issues revolving around npm prune are created and being taken care of. Since phetsims/chipper#542 is solving this for the main deployment, I think we are clear to transfer these lines: #39 (comment) to the combined and new sim deployment docs in #40. I think we are ready to close this. |
Until phetsims/chipper#542 is complete, we should add |
Yes, how about I just work on phetsims/chipper#542 instead of the temporary fix. |
phetsims/chipper#542 will only help on master sims released after phetsims/chipper#542 is published. Sims using older shas will need the manual instructions. |
Ah yes that makes sense,
This is what it looks like now. I am tempted to change it to:
It would always use master's grunt checkout-master so it will always prune and update. Perhaps that would be easier? Not sure what people will think. |
I think in phetsims/chipper#542 you recommended running |
Yeah I actually like that most. Closing. |
After updating requirejs (phetsims/chipper#538) the sim deployment instructions are broken (as I discovered in phetsims/ph-scale#69 (comment)). There is apparently one or more "npm update" steps that now need to be manually done (when switching branches?)
All of the instructions in https://github.com/phetsims/phet-info/tree/master/deployment-info should be revised and tested.
High priority because we can't currently deploy maintenance releases and phetsims/ph-scale#69 is blocked.
The text was updated successfully, but these errors were encountered: