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

openconfig / ygnmi / 40356999370
4%

Build:
DEFAULT BRANCH: main
Ran 26 Oct 2026 04:15PM UTC
Jobs 1
Files 63
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

26 Oct 2026 04:13PM UTC coverage: 4.477% (+0.008%) from 4.469%
40356999370

push

github

web-flow
Ignore ySchema byte changes in go generate workflow check (#199)

**TLDR**: Normalise `ySchema` byte slices during `Go/generate` so compressed
schema byte changes do not fail CI.

### Problem Statement

The `Go/generate` workflow runs `go generate ./...` and checks `git diff
--exit-code` for changes. Generated `schema.go` files store a compressed schema
in `ySchema`. That byte slice is not stable across Go versions and runs. As a
result, `Go/generate` fails even when no other generated Go code changes.

### Proposed Solution

The `Generate and Check Diff` step configures a Git `textconv` filter for `*.go`
files. During `git diff`, this filter replaces the hex bytes inside `ySchema`
with a fixed placeholder. This approach matches `normaliseSchemaVar` in `ygot`.
All other changes in `schema.go` or other generated files still fail `git diff
--exit-code`.

### Implementation Details

- **`.github/workflows/go.yml`**: Add a `diff.yschema.textconv` filter with
  `sed -Ez` on `*.go` before `git diff --exit-code`.
- **`.github/workflows/go.yml`**: Pin `actions/checkout` and `actions/setup-go`
  to commit hashes in the `generate` job for `zizmor`.

2026 of 45249 relevant lines covered (4.48%)

0.04 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
60.51
1.91% pathgen/gnmigen.go
1
87.72
-1.63% pathgen/pathgen.go
1
68.51
0.34% ygnmi/unmarshal.go
Jobs
ID Job ID Ran Files Coverage
1 40356999370.1 26 Oct 2026 04:15PM UTC 63
4.48
GitHub Action Run
Source Files on build 40356999370
  • Tree
  • List 63
  • Changed 63
  • Source Changed 0
  • Coverage Changed 63
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fa39153b on github
  • Prev Build on main (#26469214455)
  • Next Build on main (#40357820016)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc