• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cross-browser-tests-runner / cross-browser-tests-runner / 166
93%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2017 04:06PM UTC
Jobs 5
Files 69
Run time 99min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
166

push

travis-ci

reeteshranjan
Build Errors Fixes

- SauceLabs browser.js hook hangs
  - Various cans were opened. One significant and seemingly related
    one was that stdout I/O is asynchronous and calling process.exit
    after this can mean the I/O never happened. This seems to also
    explain what is happening with testem where it never reads the
    output of open.js.
  - However; with eliminating things one by one the above is not
    actually the case here. It was the case of Job getting created
    for bad input. When local runs of the integration tests were fine,
    they consistently hang in builds. This matches what goes on with
    such tests. Sometimes, the 1st call to JS status can get the 'test
    error' and sometimes it does not. Now, locally we see the former
    because of network delays being more, and on builds we see the latter
    with faster network. The fix is to adapt the test to expect not only
    a failure but also the success case.
  - All the research led to some changes in browser.js where we moved
    away from process.exit to process.exitCode = 0, and ensuring there
    is nothing on the event queue (cleaned up the timer that gets set)
    and yes, node does exit on its own. So this clean-up paves way for
    other places where we have used process.exit and possibly we can
    clean all of them up.

- JSON parsing failure on Linux node 8.5 build
  - It seems something is wrong with copyFileSync on Linux. The Mac node
    8.5 build worked fine, as also seen locally. This makes sense even
    more as copyFile and copyFileSync has been introduced in 8.5 itself.
  - Added our own simpler implementation of copyFileAsync and used it in
    both places where we use this API. This is a 'watch what happens' change.

- BrowserStackLocal was not found for chmod tests
  - Yep, the test sequence does not guarantee its availability. But why
    do we not see this failure on all integration tests builds? Mystery?
    Or something to do with Travis caching faults?
  - So changed the test sequence where a successful platform open test
    comes before the chmod one and that would ensure the tunnel gets
    fetched and exists locally

- Sleep tests fail
  - May be it's the VMs. Sleep tests that force the extra delay to be not
    more than 100ms fail (earlier it was at 40ms and failed pretty often).
  - Safer thing to remove the checks that force such expectations, as they
    are not coming true on VMs. On local Mac system never saw the delays
    being even more than 10ms.

SIGINT or SIGTERM to istanbul processes?
- It was seen that the browser.js SIG* handler was not getting called,
  even though changes were made to send SIGINT to all the istanbul cover
  processes used in tests. It was seen that browser.js does not get this
  signal at all.
- It was seen that SIGTERM does the job, and the fear that istanbul coverage
  won't be collected is wrong. It fixes the above issue as well as gives us
  coverage.
- So except one place, all the changes to send SIGINT while calling 'stop'
  method on the processe were reverted to go with the default (SIGTERM).
  These places are all related to browser.js invocation alone. So all of
  these reverts are actually required.

Conf updates
- Browser configs got updated with changes reported from the platforms

441 of 606 branches covered (72.77%)

Branch coverage included in aggregate %.

1538 of 1880 relevant lines covered (81.81%)

560871.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 166.1 (CBTR_TEST="eslint-unit-tests-1" IS_UNIT_TEST=1) 06 Oct 2017 04:50PM UTC 0
59.96
Travis Job 166.1
2 166.2 (CBTR_TEST="unit-tests-2" IS_UNIT_TEST=1) 06 Oct 2017 04:25PM UTC 0
76.65
Travis Job 166.2
3 166.3 (CBTR_TEST="unit-tests-3a" IS_UNIT_TEST=1) 06 Oct 2017 05:11PM UTC 0
80.98
Travis Job 166.3
4 166.4 (CBTR_TEST="unit-tests-3b" IS_UNIT_TEST=1) 06 Oct 2017 05:38PM UTC 0
81.46
Travis Job 166.4
5 166.5 (CBTR_TEST="integration-tests" IS_UNIT_TEST=0) 06 Oct 2017 05:45PM UTC 0
54.83
Travis Job 166.5
Source Files on build 166
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #166
  • a70d0096 on github
  • Prev Build on master (#163)
  • Next Build on master (#167)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc