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

RELEASE.md documentation and small fixes #220

Merged

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Nov 12, 2019

PR Summary

  • Added a dockerhub badge to the readme
  • Started testing Node version 12 in travis
  • Exposed port 8000 and 8001 in the Dockerfile, which doesn't mean you automatically have them exposed if you run docker run but indicates two ports in use by the software within the Dockerfile that could very well want to be published by the -P flag or -p 8000:8000 flag for example.
  • Added my best attempted documentation on how to make a release in a RELEASE.md file. This comes to a large extent from a Chartpress PR (Adopt bump2version for automating version bumps chartpress#74) by @minrk. I adopted bump2version as I saw a .bumpversion.cfg file in this repo.
    • Changelog
    • Version bumping and git commit tagging
    • Pushing to NPM
    • Resetting the version to -dev

Help requested (RESOLVED)

I note that the build is failing on Node 12, yet I know that we bumped the Dockerfile to start with a FROM node:12.13-alpine statement recently in #213. Solving this is very relevant I figure.

UPDATE: I fixed this issue in 7238f2b by relaxing the test a bit... It may be caused by an upstream bug in node or jasmine but I'm not in ready to search and fix that at the moment. The test failure said that it expected "asdf" but got "asdf" more or less, which is very weird to me. I assumed there could be some type difference etc so I started looking for if the error message contained the relevant string instead of explicitly testing for a matching error object.

Review suggestions (RESOLVED)

I stopped testing of node 6 on a gut feeling when adding node 12, should I keep support for node 6 perhaps? Should we drop testing of node 6 and also adjust package.json's constraint on the node version to be node >= 8?

RESOLVED: We continue to test and allow for node 6 to be used.

@consideRatio consideRatio changed the title Release doc and small fixes RELEASE.md documentation and small fixes Nov 12, 2019
@minrk
Copy link
Member

minrk commented Nov 13, 2019

This is fine. There's no real need for us to drop node 6 support, though nodejs itself has dropped it. If you wanted to revert that change, this is fine with me. We can save that for a major release.

@consideRatio consideRatio force-pushed the release-doc-and-small-fixes branch 2 times, most recently from 77bd229 to 1d2f24e Compare November 13, 2019 16:28
@consideRatio
Copy link
Member Author

consideRatio commented Nov 13, 2019

Nice okay @minrk!

  • I removed the steps about building and pushing the Docker image and instead added a note about this and linked to the dockerhub build status.
  • I reverted all changes relating to dropping node 6 support, both testing and requiring node 8 or above.
  • I added a travis/docker/npm logo for the badges in the readme
  • I updated the readme to match current command line arguments

I read in [this blog
post](https://nickjanetakis.com/blog/docker-tip-59-difference-between-exposing-and-publishing-ports) about EXPOSE. Having EXPOSE in the Dockerfile doesn't automatically mean it will utilize a port on your localhost if you use `docker run` for example so it felt like a safe sane thing to do.
Before this, this test seem to be failing very weirdly as it claim there
is an error but still it sais expected "asdf" but got "asdf" - something
exactly identical.
@consideRatio consideRatio merged commit 2b88756 into jupyterhub:master Nov 13, 2019
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.

2 participants