-
Notifications
You must be signed in to change notification settings - Fork 206
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
Improving test env and travis workflow #605
Conversation
Code Climate has analyzed commit d30e2f48 and detected 0 issues on this pull request. View more on Code Climate. |
I could take advantage of this and dockerize the development environment and work on #604, also I'd like to use Travis' build matrix to parallel our test scripts instead of runnig all tests in a single directive. Something like this: In this case the unit tests have passed but acceptance tests didn't. It makes debugging pretty easy. What do you think?? @jywarren @icarito @cesswairimu |
d30e2f4
to
a18a17f
Compare
a18a17f
to
ce879a2
Compare
Codecov Report
@@ Coverage Diff @@
## main #605 +/- ##
===========================================
- Coverage 71.27% 41.62% -29.66%
===========================================
Files 32 33 +1
Lines 1288 1295 +7
===========================================
- Hits 918 539 -379
- Misses 370 756 +386
|
@publiclab/reviewers when I run tests with the Build: https://travis-ci.org/alaxalves/mapknitter/jobs/534312520 |
Hey @alaxalves, I just looked at your build the tests seems to be running differently and smoothly. I don't know much about travis setup to leave an informative review but will rebase this with my branch see if my build finishes. Thanks |
14f8b71
to
9c6fbbf
Compare
9c6fbbf
to
965ae9f
Compare
@alaxalves I created these rake tasks a while back in order to hide all the warnings. If you go to |
Don't you think it's better keeping the default task provided by Rake gem? It would be less code to maintain. I don't like the idea of omitting the warnings generated by the test, with that we could debug easier when running a test and we could also keep easier tracking of the outdated rake version and such. |
@jywarren Could you also take a look at this and give us directions on how to proceed with this problematic test |
…ssue958-travis-workflow
2d225ab
to
92aa6dd
Compare
Sure, this sounds reasonable to me - what do other people think?
On Tue, May 28, 2019 at 4:15 PM Álax de Carvalho Alves <
notifications@github.com> wrote:
… I'm curious - how bad are the warnings now that we've done a lot of
upgrading already? Is now the right moment to make this change, or should
we wait until after Rails 4.x is merged?
… <#m_5092285205458500581_>
On Tue, May 28, 2019 at 8:41 AM Álax de Carvalho Alves < *@*.***> wrote:
I think we can transition back to the standard test runner as we address
the warnings by doing our Rails and dependency upgrades! But glad to
discuss and plan out the transition. Thanks! @jywarren
<https://github.com/jywarren> https://github.com/jywarren So, in the
.travis.yml script stage I replace script: - docker-compose -f
docker-compose.test.yml exec web bash -lc "$TASK" with: script:
docker-compose exec web bash -l -c "CI=true TRAVIS=true rake test:all" And
we go back with the old setup? Or do you want me to close #605
<#605> <#605
<#605>> ? — You are receiving
this because you were mentioned. Reply to this email directly, view it on
GitHub <#605 <#605>?email_source=notifications&email_token=AAAF6J2Y2IXKFAVPIRWDY5TPXUR43A5CNFSM4HM5S6Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWL7WPY#issuecomment-496499519>,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAF6JYMBOQRUJU4TXUBKPLPXUR43ANCNFSM4HM5S6YQ
.
This PR is about splitting our environments, since we're running the
Production environment on Travis, I have described this issue a little more
here <#599>.
I don't think it's a good idea if we keep hiding our warnings, because
that would compromise our code base, and would make easier for us to
identify a need to change/upgrade some portion of code. Also, it's a good
idea for us to use the default tasks provided by Rake - less code to
maintain.
Outputting the warnings would totally contribute to our Rails upgrades,
since one of our goals is to fix all of the outdated warnings, deprecation
warnings and such. Maybe @cesswairimu <https://github.com/cesswairimu>
@kaustubh-nair <https://github.com/kaustubh-nair> @sashadev-sky
<https://github.com/sashadev-sky> @IgorWilbert
<https://github.com/IgorWilbert> @icarito <https://github.com/icarito>
could endorse me on this one :laugh:
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#605?email_source=notifications&email_token=AAAF6J7O2MOQH4OB4UMVBE3PXWHD3A5CNFSM4HM5S6Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNJYOY#issuecomment-496671803>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J7VG2MB2AJ4Z2OJN2LPXWHD3ANCNFSM4HM5S6YQ>
.
|
3681af3
to
e0d357d
Compare
e0d357d
to
654361e
Compare
BTW I got to fix our problematic test 🎉 🎉 🎉 🎉 🎉 |
@alaxalves @jywarren My thought process was for contributors not working on that it's just a lot of code to have to scroll through each time thats not relevant to their work. For ex, this entire block appears 4 separate times: The current state of the warnings is the same and they can't be fixed without the major rails upgrades you guys are doing because they come from dependencies, not our code directly. But theres a reason rails doesn't give us the option to ignore warnings built in and thats because your points are right. The intent behind them, though, was that they were a barrier to entry for newcomers rather than being a great practice. Anyway, i'm all for actually removing them and if this helps with collaboration I say go for it. Hopefully in a few weeks we wont need them anyway 👍Maybe we can switch the default for now to running with warnings and leave /explain the option to run locally without in the README |
Thnx @sashadev-sky. I totally agree with you and I also think that's a great idea to put in our README how to run tests without the warnings, in fact I could do this in this PR you you'd like. What do you think @jywarren @sashadev-sky ?? Maybe we could merge this after. |
Just a note here, all these warnings go away after the upgrade. Also @alaxalves is the PR ready? I am really looking forward to having it in main 😄 🎉 Thanks all |
@cesswairimu It's completely ready, I'm just waiting for someone to merge it. 😄 |
Awesome @gauravano and @jywarren please review this when you get a minute. Thanks |
@cesswairimu @alaxalves 🙌🏻🙌🏻 @alaxalves You can add it here or just submit a patch in a new PR! |
It's done! Could you check this out too @sashadev-sky ? |
Great work, great teamwork and great discussion folks. Really tremendous! 🙌 This makes me so happy!!!! |
Thanks Jeff. Rebasing my branch to see if travis will finish in a few |
* Creating test env * Improving travis setup * Implementing parallel jobs for CI and using db in docker yml * Fixing Warpable test * Adding test running related info in README
Fixes #598 and part of #599
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!