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

nokia / featureprofiles / 8608173495
11%

Build:
DEFAULT BRANCH: main
Ran 09 Apr 2024 12:07AM 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

08 Apr 2024 09:58PM UTC coverage: 55.169% (+0.8%) from 54.382%
8608173495

push

github

web-flow
Validation Script for OC Path and RPC Coverage in READMEs (#2865)

* 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... (continued)

105 of 142 new or added lines in 3 files covered. (73.94%)

1948 of 3531 relevant lines covered (55.17%)

0.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
93.18
tools/internal/mdocspec/md.go
8
88.89
tools/internal/mdocspec/ocspec.go
26
0.0
tools/internal/ocpaths/clone_public.go
Jobs
ID Job ID Ran Files Coverage
1 8608173495.1 09 Apr 2024 12:07AM UTC 37
55.17
GitHub Action Run
Source Files on build 8608173495
  • Tree
  • List 37
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7d92195a on github
  • Prev Build on main (#8606545314)
  • Next Build on main (#8608762410)
  • 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