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

REFACTOR: post_test.rb [Travis optimization] #7275

Merged
merged 1 commit into from
Jan 17, 2020
Merged

REFACTOR: post_test.rb [Travis optimization] #7275

merged 1 commit into from
Jan 17, 2020

Conversation

VladimirMikulic
Copy link
Contributor

@VladimirMikulic VladimirMikulic commented Jan 17, 2020

The most important improvement is the removal of assert_page_reloads
statement. This block of code never executed and just delayed Travis
for ~1min(Capybara timeout rule) every build.

The second improvement is the addition of the "setup" function.
Instead of writing login logic in every test, now before every test the
"setup" function will run and log in the user.

Part of #7272

The most important improvement is the removal of assert_page_reloads statement.
This block of code never executed and just delayed Travis for ~1min every build.

The second improvement is the addition of the "setup" function.
Instead of writing login logic in every test, now before every test the
"setup" function will run and log in the user.

Part of #7272
@codecov
Copy link

codecov bot commented Jan 17, 2020

Codecov Report

Merging #7275 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7275      +/-   ##
==========================================
- Coverage   81.59%   81.56%   -0.04%     
==========================================
  Files          97       97              
  Lines        5602     5602              
==========================================
- Hits         4571     4569       -2     
- Misses       1031     1033       +2
Impacted Files Coverage Δ
app/controllers/user_sessions_controller.rb 66.45% <0%> (-1.25%) ⬇️

@plotsbot
Copy link
Collaborator

1 Warning
⚠️ There was an error with Danger bot’s Junit parsing: No JUnit file was found at output.xml
2 Messages
📖 @VladimirMikulic 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.
📖 #
Screenshots 📸 (click to expand)

7275-test_questions.png

7275-test_embeddable_grids.png

7275-test_signup.png

7275-test_viewing_the_settings_page.png

7275-test_tag_by_author_page.png

7275-test_wiki_page_with_inline_grids.png

7275-test_stats.png

7275-test_viewing_the_dashboard.png

7275-test_searching_an_item_from_the_homepage.png

7275-test_signup_modal_form_validation.png

7275-test_tag_stats.png

7275-test_login_modal_form_validation.png

7275-test_questions_shadow.png

7275-test_login_modal.png

7275-test_profile_page.png

7275-test_comments.png

7275-test_tags.png

7275-test_signup_modal.png

7275-test_wiki.png

7275-test_methods.png

7275-test_tag_page.png

7275-test_blog_page_with_location_modal.png

7275-test_tag_wildcard.png

7275-test_signup_modal_disabled_submit_button_on_empty_username.png

7275-test_embeddable_thumbnail_grids.png

7275-test_front_page_with_navbar_search_autocomplete.png

7275-test_spam_moderation_page.png

7275-test_login.png

7275-test_viewing_the_dropdown_menu.png

7275-test_viewing_question_post.png

7275-test_mobile_displays.png

7275-test_simple-data-grapher_powertag.png

7275-test_front.png

7275-test_question_page.png

7275-test_tag_contributors_page.png

7275-test_blog.png

7275-test_people.png

7275-test_wiki_revisions.png

Learn about automated screenshots

Generated by 🚫 Danger

@VladimirMikulic
Copy link
Contributor Author

VladimirMikulic commented Jan 17, 2020

I was right! The new build time now is 9min 20secs compared to 10min 48sec. 🚀

@jywarren
Copy link
Member

Great! Is this ready for a merge, then? Great work! 🚀

@jywarren
Copy link
Member

I am going to bed though... i'll check in the morning!! Thank you!!

@VladimirMikulic
Copy link
Contributor Author

Yes it is :)

@SidharthBansal
Copy link
Member

Jeff I think you should sleep unless you are on a workshop outside US. It must be 12:30 approxs midnight there

@SidharthBansal
Copy link
Member

This pr will be merged by @jywarren. LGTM from my side. I think I am missing something here. @jywarren kindly review it carefully

@SidharthBansal
Copy link
Member

thanks all

@jywarren jywarren merged commit 1bd9aac into publiclab:master Jan 17, 2020
@jywarren
Copy link
Member

Fantastic. Thank you!!!

@SidharthBansal
Copy link
Member

SidharthBansal commented Jan 17, 2020 via email

@VladimirMikulic
Copy link
Contributor Author

@jywarren thank you for your time, not me.

@SidharthBansal
Copy link
Member

SidharthBansal commented Jan 17, 2020 via email

@SidharthBansal
Copy link
Member

SidharthBansal commented Jan 17, 2020 via email

@VladimirMikulic
Copy link
Contributor Author

It's fine by me, thank you for acknowledging my work 👍

vinitshahdeo pushed a commit to vinitshahdeo/plots2 that referenced this pull request Feb 1, 2020
The most important improvement is the removal of assert_page_reloads statement.
This block of code never executed and just delayed Travis for ~1min every build.

The second improvement is the addition of the "setup" function.
Instead of writing login logic in every test, now before every test the
"setup" function will run and log in the user.

Part of publiclab#7272
NitinBhasneria pushed a commit to NitinBhasneria/plots2 that referenced this pull request Feb 5, 2020
The most important improvement is the removal of assert_page_reloads statement.
This block of code never executed and just delayed Travis for ~1min every build.

The second improvement is the addition of the "setup" function.
Instead of writing login logic in every test, now before every test the
"setup" function will run and log in the user.

Part of publiclab#7272
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.

4 participants