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

openconfig / featureprofiles / 8618721492
10%

Build:
DEFAULT BRANCH: main
Ran 09 Apr 2024 03:59PM UTC
Jobs 1
Files 37
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

09 Apr 2024 03:57PM UTC coverage: 55.448% (+0.3%) from 55.169%
8618721492

push

github

web-flow
Validate first README.md for OC path and RPC (#2881)

* Add yaml spec for oc path/rpc to test-requirements-template

* revise yaml

* revise yaml

* Validation Script for OC Path and RPC Coverage in READMEs

* `mdocspec` package parses ocpath.proto and ocrpcs.proto from yaml
  according to the format shown below by mdocspec.Parse's documentation.
* `tools/validate_readme_spec/validate_readme_spec.go` script is added
  that can parse and then validate OC Paths and RPCs according to
  existing repo states in github.com/openconfig.

```go
// Parse extracts sorted OpenConfig Path and RPC Coverage from an FNT
README.
//
// The first yaml code block after a heading line named exactly as
// "OpenConfig Path and RPC Coverage" will be used. Any other code
blocks are
// ignored.
//
// Expected markdown format:
//
//      ## OpenConfig Path and RPC Coverage
//
//      ```yaml
//      paths:
//        /interfaces/interface/config/description:
//        /interfaces/interface/config/enabled:
//        /components/component/state/name:
//          platform_type: "CHASSIS"
//
//      rpcs:
//        gnmi:
//          gNMI.Set:
//            union_replace: true
//          gNMI.Subscribe:
//            on_change: true
//      ```
//
// Note: For `rpcs`, only the RPC name and methods are validated. Any
// attributes defined below RPC methods (e.g. union_replace) are not validated.
```

* Add invalid README example

* Fix style

* Make YAMLRenderer unexported

* Improve comments

* Update tools/internal/mdocspec/ocspec.go

Co-authored-by: Darren Loher <dloher@google.com>

* Minor improvements for OC coverage validation

* Skip repo-cloning during validation if repo already cloned.
* Validate that at least one RPC method is specified for any coverage spec.
* Add additional validation for script in bash file.
* Style Improvements.

* Improve logic by searching from header rather than YAML block

* add anot... (continued)

3 of 6 new or added lines in 3 files covered. (50.0%)

1949 of 3515 relevant lines covered (55.45%)

0.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% tools/addrundata/main.go
2
89.36
-3.82% tools/internal/mdocspec/md.go
Jobs
ID Job ID Ran Files Coverage
1 8618721492.1 09 Apr 2024 03:59PM UTC 37
55.45
GitHub Action Run
Source Files on build 8618721492
  • Tree
  • List 37
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a23545aa on github
  • Prev Build on main (#8608217701)
  • Next Build on main (#8621107120)
  • Delete
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