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 failing circle-ci build job. #4840

Merged
merged 21 commits into from
Mar 17, 2020
Merged

Fix failing circle-ci build job. #4840

merged 21 commits into from
Mar 17, 2020

Conversation

Fawke
Copy link
Contributor

@Fawke Fawke commented Feb 11, 2020

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

Circle CI has been failing lately more often than not. This PR attempts to fix that. Please note it only fixes circle-ci - build job and not the circle-ci - e2e job.

Related to: #4348

This PR fixes the following major issues:

  • Downgrade karma-browserstack-laucher package to version 1.4.0 since there's an open issue in version 1.5.0 in which the tests time out. Click here for more details about the issue.
  • Upgrade karma version to the latest.
  • Change karma configuration
    • Increase browserDisconnectTimeout, browserNoActivityTimeout, captureTimeout in karma.conf.maker.js to values recommended by Browserstack, which is 3e5.
    • Increase browserDisconnectTolerance to 3 from 1. (Again recommended by Browserstack in case of weak connections.)
    • Add concurrency 5. (This means only 5 parallel sessions will run at a time in Browserstack. It's added because we don't want to put too many jobs on the queue which may result in timeouts.)
  • Fixes potential errors in adagioBidAdapter.js file by adding some error handling which has reduced the frequency of the following error, “Can't execute code from a freed script”. Also, fixes an error in adagio's test file which has reduced error in their file.
  • Fixes potential error in realvuAnalyticsAdapter_spec.js file. The error originating from this file has gone down by quite a big margin.
  • Potential fix for sortableAnalyticsAdapter_spec.js. Haven't tested this much.
  • Potential fix for userId_spec.js. Raised a separate PR to fix since the bug was in the index.js file. User ID auctionDelay timeout bugfix #4982
  • Add a testing guideline to CONTRIBUTING.md.

This PR also fixes the following minor issues:

  • Update browser versions in browsers.json file
  • Fix lint errors in gulpfile.js

NOTE: This PR is not a complete solution to fix ALL unit test failures but it does fix ~ 90% of current failure scenarios. I'll keep the jobs under watch after this PR is merged and submit fixes for exceptional cases in a separate PR.

@jaiminpanchal27
Copy link
Collaborator

@Fawke I see you deleted bunch of spec files. Is that intentional or by mistake ? We can't comment user id and prebid server adapter. Can you also add description related to the changes you are making

@Fawke
Copy link
Contributor Author

Fawke commented Feb 17, 2020

Hi @jaiminpanchal27,

It's intentional, but I don't want this PR to be merged, that's why I created a draft PR. I'm just testing the CI run by removing files which are throwing error. Later, I plan to analyse those files and see what's wrong.

In the end, I won't delete any actual spec file if I do find an error, that'll be bad for our code coverage. I may report to the author of the spec file if I'm positive something needs to be changed in the file.

@Fawke Fawke marked this pull request as ready for review March 13, 2020 14:09
@Fawke Fawke mentioned this pull request Mar 13, 2020
@Fawke Fawke added needs review pinned won't be closed by stalebot and removed in progress labels Mar 13, 2020
@Fawke Fawke changed the title Fix failing circle ci job. Fix failing circle-ci build job. Mar 15, 2020
@jsnellbaker jsnellbaker added needs 2nd review Core module updates require two approvals from the core team and removed needs review labels Mar 16, 2020
Copy link
Collaborator

@robertrmartinez robertrmartinez 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! Thanks, much needed

@jsnellbaker jsnellbaker merged commit d1f0ea1 into master Mar 17, 2020
bmwcmw pushed a commit to criteo-forks/Prebid.js that referenced this pull request Mar 31, 2020
* fix lint errors

* update browser versions

* remove problematic test cases

* remove addtional files

* fix errors in adagioBidAdapter.js and adagioBidAdapter_spec.js file

* change karma config

* change config

* update timeout values

* resolve merge conflict

* -update karma\n-fix userIdSpec unit tests\n-update version of karma-browserstack-launcher to 1.4.0

* fix issue with userId_spec.js file

* fix for realvu and sortable, potential fix for userId

* resolve faulty merge

* add a guideline to CONTRIBUGING.md and revert auction time back in userId_spec.js file
@bjorn-lw
Copy link
Contributor

bjorn-lw commented Apr 7, 2020

rjvelicaria pushed a commit to openx/Prebid.js that referenced this pull request Apr 9, 2020
* fix lint errors

* update browser versions

* remove problematic test cases

* remove addtional files

* fix errors in adagioBidAdapter.js and adagioBidAdapter_spec.js file

* change karma config

* change config

* update timeout values

* resolve merge conflict

* -update karma\n-fix userIdSpec unit tests\n-update version of karma-browserstack-launcher to 1.4.0

* fix issue with userId_spec.js file

* fix for realvu and sortable, potential fix for userId

* resolve faulty merge

* add a guideline to CONTRIBUGING.md and revert auction time back in userId_spec.js file
@Fawke Fawke mentioned this pull request Apr 10, 2020
1 task
@Fawke Fawke mentioned this pull request May 8, 2020
2 tasks
iggyfisk pushed a commit to happypancake/Prebid.js that referenced this pull request Jun 22, 2020
* fix lint errors

* update browser versions

* remove problematic test cases

* remove addtional files

* fix errors in adagioBidAdapter.js and adagioBidAdapter_spec.js file

* change karma config

* change config

* update timeout values

* resolve merge conflict

* -update karma\n-fix userIdSpec unit tests\n-update version of karma-browserstack-launcher to 1.4.0

* fix issue with userId_spec.js file

* fix for realvu and sortable, potential fix for userId

* resolve faulty merge

* add a guideline to CONTRIBUGING.md and revert auction time back in userId_spec.js file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team pinned won't be closed by stalebot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants