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

FAForever / server / 3401 / 1
96%
develop: 96%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/aiohttp-3.7.4
DEFAULT BRANCH: develop
Ran 16 Mar 2020 07:38PM UTC
Files 50
Run time 1min
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

04 Mar 2020 11:14PM UTC coverage: 94.856% (+0.3%) from 94.528%
3401.1

push

travis-ci

web-flow
Asyncio drain fix 2 (#532)

* Add `connected` field to QDataStreamProtocol to make cleanup easier

This makes it so that cleanup still happens only in one place in 
ServerContext, but other callers of `send_message` will also get an 
error if the protocol has disconnected. So for instance if the ladder 
service tries to send a message start a game but one client disconnects, 
`DisconnectedError` will be raised so that ladder service can 
approprately cancel the game setup, and the ServerContext will clean up 
the connection as soon as the disconnect is detected.

* Add a `broadcast` function for when we want to send normal json data

* Add send_mesage method to player

* Refactor GameConnection send method

* Add error handling to places where `send` was called other than from self

* Log sent messages after they've succesfully been sent.

* Use QDatastreamProtocol.close method

* Only call ladder_service on_connection_lost if player is not None

* Save connection before yielding

* Log suppressed exceptions at the debug level

* Set connected attribute when drain fails

* Suppress DisconnectedError as drain does not reliably raise exceptions

* await `_handle_lobby_state` properly

* Make sure `close` marks the protocol as disconnected

* Only broadcast to connected protocols

* Use transport is_closing property directly

* Clean up some exception logging

* Don't yield between checking weak reference existence

* Explicitly check host player state instead of asserting as precondition

* Handle GameError explicitly

* Ignore DisconnectedError when we know the host has already timed out

* More weak reference checking

* Adjusting tests for travis

* Refactor tests

* Remove dead code

* Add more tests for QDatastreamProtocol

* Ignore peer disconnects when joining a game

* Ignore disconnects when trying to kick someone

* Add some fast forwards to speed up tests

* Move tests to their... (continued)

3172 of 3344 relevant lines covered (94.86%)

0.95 hits per line

Source Files on job 3401.1
  • Tree
  • List 0
  • Changed 16
  • Source Changed 16
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3265
  • Travis Job 3401.1
  • 276168dc on github
  • Prev Job for on master (#3250.1)
  • Next Job for on master (#3533.1)
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