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

Fix Error reporting and parsing (fixes #1852) #1857

Merged
merged 3 commits into from
Dec 11, 2017

Conversation

ryzokuken
Copy link
Member

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

  • all tests pass -- rake test:all
  • code is in uniquely-named feature branch, and has been rebased on top of latest master (especially if you've been asked to make additional changes)
  • pull request is descriptively named with #number reference back to original issue

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software

We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays. Please alert developers on plots-dev@googlegroups.com when your request is ready or if you need assistance.

Thanks!

@ryzokuken ryzokuken self-assigned this Dec 10, 2017
@ryzokuken ryzokuken requested a review from jywarren December 10, 2017 07:50
@PublicLabBot
Copy link

PublicLabBot commented Dec 10, 2017

2 Messages
📖 @ryzokuken 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.
📖 It looks like you haven’t marked all the checkboxes. Help us review and accept your suggested changes by going through the steps one by one. If it is still a ‘Work in progresss’, please include ‘[WIP]’ in the title.

Generated by 🚫 Danger

@ryzokuken
Copy link
Member Author

@jywarren YAY! Let me know when you're okay with this one, and I'll remove the error.

@jywarren
Copy link
Member

jywarren commented Dec 10, 2017 via email

@ryzokuken
Copy link
Member Author

@jywarren so, here it is. Feel free to merge this.

@ryzokuken
Copy link
Member Author

@jywarren this happened:

$ touch ./test/reports/TEST_.xml

touch: cannot touch ‘./test/reports/TEST_.xml’: Permission denied

The command "touch ./test/reports/TEST_.xml" exited with 1.

strange. Why are there permission issues to begin with? There weren't any earlier and we didn't change anything related to the directory permissions, did we?

Also, generally, I had no idea why were doing all the stuff in

plots2/.travis.yml

Lines 21 to 26 in 16e7279

- docker-compose run -e CI=TRUE web bash -c "GENERATE_REPORT=true rake test:all"
- mkdir -p ./test/reports
- touch ./test/reports/TEST_.xml
- echo -e '<?xml version="1.0" encoding="UTF-8"?>' > output.xml
- tail -n +2 -q ./test/reports/TEST*.xml >> output.xml
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then danger --verbose; fi'
in the first place... Specifically the lines in

plots2/.travis.yml

Lines 22 to 24 in 16e7279

- mkdir -p ./test/reports
- touch ./test/reports/TEST_.xml
- echo -e '<?xml version="1.0" encoding="UTF-8"?>' > output.xml
. We run the tests, generating reports on the way, join together all the reports in a single output.xml file and then run danger on the output.xml, parsing it and making a comment.

But why do we make an empty file in there? Why make the directory? Doesn't the directory already exist? What purpose does the empty file serve?

@jywarren
Copy link
Member

Hi, @ryzokuken -- i inserted those lines because the Junit generation wasn't working and we saw a test error due to that directory not working. I think we can remove them and it should resolve now that you've gotten Junit working again.

@jywarren
Copy link
Member

I removed them -- let's see!

@ryzokuken
Copy link
Member Author

@jywarren sure, gimme a second.

@ryzokuken
Copy link
Member Author

ryzokuken commented Dec 11, 2017

Oh, wait. You already did. 😛

Thanks

@ryzokuken
Copy link
Member Author

@jywarren It worked! YAY!

@jywarren jywarren merged commit 9441570 into publiclab:master Dec 11, 2017
@ryzokuken ryzokuken deleted the fix-1852 branch December 11, 2017 20:39
@jywarren
Copy link
Member

🥂 👍 💯

@ryzokuken
Copy link
Member Author

@jywarren what next? Anything you specifically wanted me to work on?

SrinandanPai pushed a commit to SrinandanPai/plots2 that referenced this pull request May 5, 2019
* Fix Error reporting and parsing (fixes publiclab#1852)

* Remove fraudlent failure

* Update .travis.yml
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.

3 participants