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

m-lab / mlab-ns
64%
master: 64%

Build:
Build:
LAST BUILD BRANCH: sandbox-soltesz-map
DEFAULT BRANCH: master
Repo Added 01 Apr 2016 06:40PM UTC
Files 24
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

LAST BUILD ON BRANCH v2021.10.19
branch: v2021.10.19
CHANGE BRANCH
x
Reset
  • v2021.10.19
  • development
  • kill-switch-dummy-mode
  • main
  • master
  • ns-sandbox
  • remove-api
  • revert-226-sandbox-soltesz-ratio
  • round-rb
  • rschulman-cc
  • sandbox-add-experiment-label
  • sandbox-add-ndt7-query
  • sandbox-cb2
  • sandbox-clean
  • sandbox-cristinaleon-build
  • sandbox-cristinaleon-remove-dispatch-platform
  • sandbox-cristinaleon-v2beta2
  • sandbox-debug
  • sandbox-deploy
  • sandbox-firec
  • sandbox-kinkade
  • sandbox-mem
  • sandbox-merge
  • sandbox-migrate
  • sandbox-migrate-fix
  • sandbox-mu
  • sandbox-rb
  • sandbox-rb2
  • sandbox-rb3
  • sandbox-roberto
  • sandbox-roberto-business-hours
  • sandbox-roberto-fix-client-signature
  • sandbox-roberto-fix-ndt7-fqdn
  • sandbox-roberto-log-experiment-redirection
  • sandbox-roberto-remove-7123
  • sandbox-roberto-remove-business-hours-check
  • sandbox-roberto-remove-warmup-handler
  • sandbox-soltesz
  • sandbox-soltesz-bom02-probability
  • sandbox-soltesz-cb
  • sandbox-soltesz-default
  • sandbox-soltesz-dispatch
  • sandbox-soltesz-dispatch-platform
  • sandbox-soltesz-fede2e
  • sandbox-soltesz-geo
  • sandbox-soltesz-higher-ratios-cloud
  • sandbox-soltesz-map
  • sandbox-soltesz-no-content
  • sandbox-soltesz-ratio
  • sandbox-soltesz-test-network
  • sandbox-soltesz-v2
  • sandbox-soltesz-yvr
  • sandbox-travis
  • sandbox_rb4
  • sandbox_rr4
  • soltesz-notes
  • staging-soltesz
  • v2017.07.31
  • v2017.09.13
  • v2018.01.30
  • v2018.01.30-1
  • v2018.04.18
  • v2018.04.30
  • v2018.05.14
  • v2018.06.11
  • v2018.06.13
  • v2018.06.20
  • v2018.06.25
  • v2018.07.23
  • v2019.01.29
  • v2019.02.06
  • v2019.04.01
  • v2019.04.08
  • v2019.04.18
  • v2019.04.22
  • v2019.05.20
  • v2019.06.17
  • v2019.06.19
  • v2019.06.25
  • v2019.07.24
  • v2019.08.28
  • v2019.09.11
  • v2019.10.29-1
  • v2019.12.02
  • v2020.01.15
  • v2020.03.20
  • v2020.04.22
  • v2020.04.30
  • v2020.04.31
  • v2020.05.04
  • v2020.05.07
  • v2020.05.08
  • v2020.05.11
  • v2020.05.18
  • v2020.05.26
  • v2020.07.06
  • v2020.09.30
  • v2020.11.16
  • v2020.12.08-1
  • v2021.04.26
  • v2021.05.03
  • v2021.05.24
  • v2021.08.13
  • v2022.03.08
  • v2022.03.28
  • v2022.05.24
  • v2022.07.28
  • v2022.09.12
  • v2022.10.19
  • v2022.11.02
  • v2022.11.09
  • v2023.01.17
  • v2023.02.13

pending completion
1531

push

travis-ci-com

web-flow
Removes calls to reverse_proxy + other tuning (#256)

* Removes calls to reverse_proxy module

We don't use the reverse proxy any longer, so there is no need to check
if we wanted to even try to reverse proxy the request to another mlab-ns
instance.

* Removes loading of reverse_proxy module + removes unit tests

* Removes more reverse proxy testing code.

* Removes imports of urllib2, which were unused.

* Disables AppEngine "AppStats" collection

As far as I know we have never used the data collected by AppStats, and
AppStats adds some overhead to every request:

https://cloud.google.com/appengine/docs/standard/python/tools/appstats

We can reenable this later, if we find some need for it.

* Moves warmup handler before wildcard catch-all

If probably doesn't matter, because they both call the same main.app
script, but for correctness, if nothing else, moves the warmup handler
definition _before_ the wildcard handler.

* Comments main() in main.py

AppEngine apps look for the global "app" variable to figure out which
handler to run, and don't need a main() function. Addtionally, removes
the "if __name__ == "__main__"" conditional block to prevent unwanted
execution of main().

* Removes unqualified call to GCD to fetch tool

Before this commit, _every single_ call to mlab-ns was generating at
least one call to Cloud Datastore for the purpose of fetch a "Tool"
entry. The _only_ thing this record was being used for was to add an
extra field to the JSON output named "tool_extra", but only if the field
tool.show_tool_extra was set to true. In our case, all tools have this
field set to false, so the conditinoal would never evaluate to true,
meaning that the costly call to Datastore on every request was
completely unnecessary. This commit removes the call to the Datastore,
and just never includes the "tool_extra" field in the output JSON.

* Fixes value of script field in warmup handlers

* Adds main() back to main.py

* Removes unused builtins "deferred"... (continued)

1042 of 1624 relevant lines covered (64.16%)

0.64 hits per line

Relevant lines Covered
Build:
Build:
1624 RELEVANT LINES 1042 COVERED LINES
0.64 HITS PER LINE
Source Files on v2021.10.19
  • Tree
  • List 24
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1531 v2021.10.19 Removes calls to reverse_proxy + other tuning (#256) * Removes calls to reverse_proxy module We don't use the reverse proxy any longer, so there is no need to check if we wanted to even try to reverse proxy the request to another mlab-ns instanc... push 19 Oct 2021 05:33PM UTC web-flow travis-ci-com pending completion  
See All Builds (975)
  • Repo on GitHub
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