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

m-lab / locate / 1583
92%

Build:
DEFAULT BRANCH: main
Ran 12 Jun 2025 03:50PM UTC
Jobs 1
Files 33
Run time 202min
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

12 Jun 2025 03:42PM UTC coverage: 96.229% (-0.1%) from 96.362%
1583

push

travis-pro

web-flow
Factor filtering hosts into its own function for the registrations endpoint (#226)

* Considers only NDT registrations for siteinfo GeoJSON format

We don't want a separate GeoJSON feature for every experiment on every machine.
Instead, we only want a single feature for each machine. NDT runs on every
machine, so this should accurately represent the entire fleet. This is overly
NDT-centric, unfortunately, but is a reasonable start, I think.

* Factors filtering hosts into a separate function

Both the Hosts() and Geo() function use the filtering. I also renamed
Machines() to Hosts(), since this is more accurate as the returned values
experiment hostnames, not machine names.

* Sets appropriate headers for the registrations endpoint

Namely, we want a permissive CORS policy to allow any origin to make use of the
data provided by this endpoint.

* Refactors the filterHosts() function

The previous logic was not scalable and was difficult to read.

* Adds a machine property to the GeoJSON for registrations geo format

The machine format will be slightly different than the standart M-Lab machine
naming. Standard formatting is like <machine>-<site>, but this is going to be
<site>-<machine>, since that is the order that BYOS now uses.

38 of 39 new or added lines in 2 files covered. (97.44%)

3 existing lines in 1 file now uncovered.

2016 of 2095 relevant lines covered (96.23%)

1.07 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.06
0.02% handler/handler.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
94.74
-5.26% siteinfo/siteinfo.go
Jobs
ID Job ID Ran Files Coverage
1 1583.1 12 Jun 2025 03:50PM UTC 33
96.23
Travis Job 1583.1
Source Files on build 1583
  • Tree
  • List 33
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1583
  • 63bc2bfa on github
  • Prev Build on main (#1575)
  • Next Build on main (#1588)
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