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

CI tests failing #134

Closed
arthurbuhl opened this issue Oct 7, 2018 · 9 comments
Closed

CI tests failing #134

arthurbuhl opened this issue Oct 7, 2018 · 9 comments

Comments

@arthurbuhl
Copy link

arthurbuhl commented Oct 7, 2018

Issue

Description

Tests are failing on travis CI
Link - https://travis-ci.org/Coding-Coach/coding-coach/builds/438155969
Script - npm run test

Failed Files

  • src/components/contact/__ tests __/SocialMedia.test.js
    • expect(value).toMatchSnapshot() - Received value does not match stored snapshot 1.
  • src/components/contact/__ tests __/Contact.test.js
    • Unable to find an element with the alt text: people search logo
  • src/containers/App/__ tests __/App.test.js
@emmabostian
Copy link
Collaborator

I've restarted the build... hopefully it passes now.

@arthurbuhl
Copy link
Author

The build was actually terminated this time at it was running for more than 10 mins and a normal CI build usually takes about 2-3 mins:

Webpack Bundle Analyzer is started at http://127.0.0.1:8888
Use Ctrl+C to close it

No output has been received in the last 10m0s, this potentially indicates a stalled build 
or something wrong with the build itself.
Check the details on how to adjust your build configuration on: 
https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

I think Webpack Bundle Analyzer script should not be present in Travis CI build. That might be the issue for the stalled build.

@linux-nerd
Copy link

@arthurbuhl, @emmawedekind The test for Contact.test.js failed because the alt text of logo was changed to 'Person using a magnifying glass to see the details of another guy. ' and the one used in the test file is 'people search logo'

@arthurbuhl
Copy link
Author

Ok, also I found that translation is not used in Contact.test.js and text there is hard-coded in English there. Will that cause an issue failing the test in any scenario?

@arthurbuhl
Copy link
Author

Also, it would be great if we add test script to lint-staged so that before any commit we always make sure tests are running fine, something like

facebook/create-react-app#2336

@linux-nerd linux-nerd mentioned this issue Oct 7, 2018
5 tasks
@linux-nerd
Copy link

@crysfel

After fixing the unit test cases all the test cases passed in Travis CI, but CI build terminated after 10 minutes with the following message -

Webpack Bundle Analyzer is started at http://127.0.0.1:8888
Use Ctrl+C to close it
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

I think it has to do something with BundleAnalyzerPlugin used inside scrits/config-overrides.prod.js. Do we need that analyser in the build part? We can have script defined in package.json.

@emmabostian
Copy link
Collaborator

I think the build is passing now... can someone verify this?

@arthurbuhl
Copy link
Author

@emmawedekind yes, CI is passing now. @crysfel just needs to approve the PR #136 and then you should be able to merge it.

@crysfel
Copy link
Member

crysfel commented Oct 8, 2018

#136 has been merged! Thanks guys!

@crysfel crysfel closed this as completed Oct 8, 2018
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

No branches or pull requests

4 participants