Skip to content
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

bump to 3.7.1 w /dist/ files compiled, yarn.lock removed, updated release workflow issue template #2036

Merged
merged 6 commits into from
Jan 15, 2022

Conversation

jywarren
Copy link
Member

@jywarren jywarren commented Jan 15, 2022

Fixes #1751, fixes #2035


  • open an issue using the "release" template with this checklist with title Checklist and coordination for v0.0.0 major/minor/patch release (see semantic versioning)
  • create a release project from this template. You can copy a project from its menu.
  • compile release notes below from corresponding release project.
  • open a pull request with updated version numbers
  • finalize and merge to main branch (freeze merges to main branch until next step)

Now, move to stable branch:

  • force push from main to stable
  • then in stable branch, compile /dist/ files with grunt build
  • add /dist/ files with git add -f /dist/* and commit them to stable branch
  • run npm publish

Draft a release:

Noting we're now in this process in #1751 for v3.7.0.


Release notes

Added

Fixed

Changed

@jywarren jywarren requested a review from a team as a code owner January 15, 2022 17:38
@gitpod-io
Copy link

gitpod-io bot commented Jan 15, 2022

@jywarren jywarren requested a review from a team as a code owner January 15, 2022 17:39
@jywarren
Copy link
Member Author

Tests failing with:

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

Ah, interesting:

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/jywarren/imgareaselect.git
npm ERR! 
npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

@jywarren
Copy link
Member Author

Ah, it's wrong in the package-lock.json file. I'm removing and reinstalling it to get the correct URL format.

@jywarren
Copy link
Member Author

Hmm, this:

"imgareaselect": "https://github.com/jywarren/imgareaselect.git#v1.0.0-rc.2",

Generates this:

    "node_modules/imgareaselect": {
      "version": "0.9.11-rc.1",
      "resolved": "git+ssh://git@github.com/jywarren/imgareaselect.git#db8ae869ca0fcb289252678cebd17d6f40711f61"
    },

and

    "imgareaselect": {
      "version": "git+ssh://git@github.com/jywarren/imgareaselect.git#db8ae869ca0fcb289252678cebd17d6f40711f61",
      "from": "imgareaselect@https://github.com/jywarren/imgareaselect.git#v1.0.0-rc.2"
    },

I guess I'm surprised that although I specify https:// it seems to still by trying to use ssh? git+ssh://git@github.com/jywarren/imgareaselect.git

@jywarren
Copy link
Member Author

OK noting an old convo at npm repo about defaulting to git+ssh:// if ambiguity, so will try specifying more narrowly git+https:// npm/npm#7302 (comment) as well as searching for more recent docs on this in NPM...

@jywarren
Copy link
Member Author

This seems still open - npm uses ssh, even when dependency is specified with https

@jywarren
Copy link
Member Author

Aha - it's this: npm/cli#2610

Some are saying it's still not fixed in npm v8.1, so i'm reading the comments for a workaround.

@jywarren
Copy link
Member Author

Huh, ok, so got past the ssh/https issue and now:

Expand logs
Running "browserify:tests" (browserify) task
>> Error: Parsing file /home/runner/work/image-sequencer/image-sequencer/node_modules/fast-glob/out/readers/stream.js: Unexpected token (16:10)
Warning: Error running grunt-browserify.� Use --force to continue.
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! image-sequencer@3.7.1 test-ui-2: `node ./node_modules/.bin/jest`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the image-sequencer@3.7.1 test-ui-2 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!     /home/runner/.npm/_logs/2022-01-15T18_20_05_943Z-debug.log
Error: Process completed with exit code 6.
Running "browserify:core" (browserify) task
>> Error: Parsing file /home/runner/work/image-sequencer/image-sequencer/node_modules/fast-glob/out/readers/stream.js: Unexpected token (16:10)
Warning: Error running grunt-browserify.� Use --force to continue.

Aborted due to warnings.
Error: Process completed with exit code 6.

Looks like an issue with browserify?

@jywarren
Copy link
Member Author

Noting same error in Gitpod when running grunt build:

>> Error: Parsing file /workspace/image-sequencer/node_modules/fast-glob/out/readers/sync.js: Unexpected token (15:10)
Warning: Error running grunt-browserify. Use --force to continue.

@jywarren
Copy link
Member Author

jywarren commented Jan 15, 2022

Odd, could we have changed browsify version while updating package-lock.json? Esp odd as we have updated package-lock.json regularly:

https://github.com/publiclab/image-sequencer/commits/main/package-lock.json

However we did regenerate it from scratch this time. Let's try reverting and updating just the relevant lines for the https/ssh issue.

@jywarren
Copy link
Member Author

        "imgareaselect": "git+https://git@github.com/jywarren/imgareaselect.git#v1.0.0-rc.2",

    "node_modules/imgareaselect": {
      "version": "0.9.11-rc.1",
      "resolved": "git+https://git@github.com/jywarren/imgareaselect.git#db8ae869ca0fcb289252678cebd17d6f40711f61"
    },

    "imgareaselect": {
      "version": "git+https://git@github.com/jywarren/imgareaselect.git#db8ae869ca0fcb289252678cebd17d6f40711f61",
      "from": "imgareaselect@git+https://git@github.com/jywarren/imgareaselect.git#v1.0.0-rc.2"
    },

@jywarren jywarren merged commit 79c948d into main Jan 15, 2022
@jywarren
Copy link
Member Author

@jywarren
Copy link
Member Author

Screen Shot 2022-01-15 at 2 25 29 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yarn.lock vs. package-lock.json Checklist and coordination for v3.7.0 minor release
1 participant