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

disable git shallow-clone #508

Merged
merged 5 commits into from
Apr 5, 2018
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 1, 2018

Same as jupyterhub/zero-to-jupyterhub-k8s#621

shallow-clone can result in incorrect image tagging if image directories go without updates for a bit.

Additionally:

  • show git diff after chartpress for easier debugging
  • add nice heading comments for multi-line travis commands (style copied from mybinder.org-deploy)
  • add a few travis files to .gitignore
  • pin chartpress version so that updates there will not be used here except via explicit update

minrk added 4 commits April 1, 2018 11:24
in deploy. This is already in test-helm, but that’s harder to find since it has lots of output.

and get nicer command headings for multi-line commands
so that updates must be made explicitly
can result in misidentified commits for images
Copy link
Member

@betatim betatim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

.travis.yml Outdated
if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TEST" == "helm" ]]; then
openssl aes-256-cbc -K $encrypted_d8355cc3d845_key -iv $encrypted_d8355cc3d845_iv -in travis.enc -out travis -d
chmod 0400 travis
export GIT_SSH_COMMAND="ssh -i ${PWD}/travis"
docker login -u ${DOCKER_USERNAME} -p "${DOCKER_PASSWORD}"
cd helm-chart
chartpress --commit-range "${TRAVIS_COMMIT_RANGE}" --push --publish-chart
git diff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add a comment saying what the expected output of git diff is when everything is fine?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Done.

@betatim
Copy link
Member

betatim commented Apr 3, 2018

(restarted travis as we had exceeded the GH API limit)

@minrk
Copy link
Member Author

minrk commented Apr 5, 2018

There is no solution to the GitHub API limit issue other than not testing GitHub repos, since we can't make credentials accessible to pull requests. It should pass once merged, since master has a GitHub token.

@betatim
Copy link
Member

betatim commented Apr 5, 2018

Merging this without waiting for travis.

@betatim betatim merged commit d89b28f into jupyterhub:master Apr 5, 2018
@minrk minrk deleted the debug-chartpress branch May 16, 2018 12:16
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