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

Added Dangerfile to root directory of mapknitter #306

Closed
wants to merge 9 commits into from

Conversation

satyajeetmaharana
Copy link

@satyajeetmaharana satyajeetmaharana commented Jan 26, 2019

Fixes #303

Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!

  • tests pass -- rake test
  • code has been rebased on top of latest master (check if another pull request was added recently, and please rebase)
  • pull request is descriptively named and, if possible, multiple commits squashed if they're smaller changes

Thanks!

@welcome
Copy link

welcome bot commented Jan 26, 2019

Thanks for opening this pull request! Dangerbot will test out your code and reply in a bit with some pointers and requests.
There may be some errors, but don't worry! We're here to help! 👍🎉😄

Copy link
Member

@grvsachdeva grvsachdeva left a comment

Choose a reason for hiding this comment

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

Hi @satyajeetmaharana, could you please make these little changes. They are required because we are using Dangerfile in mapknitter. Thanks!

@grvsachdeva
Copy link
Member

Please check appropriate boxes in the checklist - #306 (comment) . Thanks!

@grvsachdeva
Copy link
Member

There's one more suggestion left. And, just a suggestion: Using Fixes #[issue-number] in the PR comment closes the tagged issue when PR gets merged so it's nice practice. Thanks!

@satyajeetmaharana satyajeetmaharana changed the title Issue # 303 - Added Dangerfile to root directory of mapknitter Fixes #[303] - Added Dangerfile to root directory of mapknitter Jan 26, 2019
@satyajeetmaharana
Copy link
Author

Hi @gauravano , Thank for the suggestion. I will keep it as a standard practice in my future PRs. For this issue, I have updated the PR comment. Hope it looks good now.
Thank you again for your help.

@grvsachdeva grvsachdeva changed the title Fixes #[303] - Added Dangerfile to root directory of mapknitter Added Dangerfile to root directory of mapknitter Jan 27, 2019
@grvsachdeva
Copy link
Member

Edited - #306 (comment)

Copy link
Member

@grvsachdeva grvsachdeva left a comment

Choose a reason for hiding this comment

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

There's still a suggestion pending!

Co-Authored-By: satyajeetmaharana <[email protected]>
grvsachdeva
grvsachdeva previously approved these changes Jan 28, 2019
Copy link
Member

@grvsachdeva grvsachdeva left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks @satyajeetmaharana for working on this.

@grvsachdeva
Copy link
Member

Hey @jywarren, @satyajeetmaharana has added Dangerfile to the repo, could you please complete the installation of dangerbot. Thanks!

@jywarren
Copy link
Member

Awesome. I think the remaining step is adjusting the .travis.yml file and configuring in Travis:

https://danger.systems/guides/getting_started.html#setting-up-danger-to-run-on-your-ci

@jywarren
Copy link
Member

See for example: https://github.com/publiclab/plots2/blob/master/.travis.yml -- i'll try this.

@jywarren
Copy link
Member

OK, just noting that plots2 project has a pretty customized setup. I'll try to get it running in the default mode as in the Danger docs, but if that doesn't work we can copy these lines:

https://github.com/publiclab/plots2/blob/9a2596886e2da54e797905d124d68fac7cddcf58/.travis.yml#L27-L34

@jywarren
Copy link
Member

I see command not found: danger -- so trying the plots2 way!

.travis.yml Outdated

script:
- docker-compose run web bash -c "rake test"
- docker-compose run web bash -c "CI=TRUE GENERATE_REPORT=true rake test"
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, oddly plots2 uses exec instead of run here. But that didn't work. So trying run as it was originally here.

Copy link
Member

Choose a reason for hiding this comment

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

ERROR: No container found for web_1 was the error...

@jywarren
Copy link
Member

Also adding the correct token to Travis for Danger posting!

@jywarren
Copy link
Member

Sorry just going to start it again to have it see the token!

@plotsbot
Copy link
Contributor

plotsbot commented Jan 29, 2019

1 Error
🚫 There was an error with Danger bot’s Junit parsing: undefined method `value’ for nil:NilClass
2 Messages
📖 @satyajeetmaharana Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution! And don’t be discouraged if you see errors – we’re here to help.
📖 #<NoMethodError: undefined method `value’ for nil:NilClass>

Generated by 🚫 Danger

@jywarren
Copy link
Member

Hooray! Looks like it's running, but just not properly parsing the errors produced in JUnit format.

@jywarren
Copy link
Member

K interesting, it's saying:


Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/..Retrying dependency api due to error (2/3): Bundler::HTTPError Net::HTTPBadGateway: 
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>502 Bad Gateway</title>
  </head>

@jywarren
Copy link
Member

I dunno, i don't see anything obvious so i'm going to restart it again to see if it was some kind of connectivity issue or an upstream server not responding properly?

@jywarren
Copy link
Member

Aha!

tail -n +2 -q ./test/reports/TEST*.xml >> output.xml
tail: cannot open ‘./test/reports/TEST*.xml’ for reading: No such file or directory
The command "tail -n +2 -q ./test/reports/TEST*.xml >> output.xml" exited with 1.

Ok, looking...

@jywarren
Copy link
Member

Looked carefully through plots2 and found we needed additions to test/test_helper.rb!

@jywarren
Copy link
Member

jywarren commented Feb 1, 2019

Trying exec again...

@alaxalves
Copy link
Member

@jywarren Everytime you use 'run' either with docker or docker-compose it creates a new container, so anything you have done previously won't have desired behavior since you've done it in another container. I suggest changing everywhere that has 'run' to 'exec'.

@@ -42,6 +42,9 @@ group :test do
end

group :development do
Copy link
Member

Choose a reason for hiding this comment

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

This should be in a group :test doesn't it? 🤔

@jywarren
Copy link
Member

jywarren commented Mar 1, 2019

hi @alaxalves - thank you! Would you like to try opening a PR based on this? You know a lot about Docker and we'd LOVE your help!

@jywarren
Copy link
Member

jywarren commented Mar 1, 2019

Or merging this with your PR at #363 ?

@alaxalves
Copy link
Member

Hey @jywarren I feel like it would be less painful if we get #363 before this. When its done I could open a PR regarding this. What do you think? 😄

@plotsbot
Copy link
Contributor

plotsbot commented Mar 1, 2019 via email

@jywarren
Copy link
Member

jywarren commented Mar 1, 2019

Hahaha, i got the notification from the plotsbot account and responded there, sorry, it thought i was plotsbot! 😂

@alaxalves
Copy link
Member

@jywarren 😆 😆 😆 😆 Okay then!!

@grvsachdeva
Copy link
Member

Hi @alaxalves, as #363 is done. Can we push it to completion? Thank you!

@grvsachdeva grvsachdeva dismissed their stale review July 28, 2019 08:19

Changes required in setup

@kaustubh-nair kaustubh-nair reopened this Aug 11, 2019
@codeclimate
Copy link

codeclimate bot commented Aug 11, 2019

Code Climate has analyzed commit ca178b5 and detected 0 issues on this pull request.

View more on Code Climate.

@kaustubh-nair
Copy link
Member

Reopened in #926

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

Successfully merging this pull request may close these issues.

Add dangerfile to the project
6 participants