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

Alan-Jowett / sonde / 23688592383
80%

Build:
DEFAULT BRANCH: main
Ran 28 Mar 2026 03:47PM UTC
Jobs 1
Files 77
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

28 Mar 2026 03:44PM UTC coverage: 85.738% (+0.02%) from 85.714%
23688592383

push

github

web-flow
node: accept map_type 0 (global variable maps) in validate_map_defs (#547)

* node: accept map_type 0 (global variable maps) in alidate_map_defs

alidate_map_defs() rejected programs containing .rodata/.data global
variable maps (map_type 0) because it only accepted BPF_MAP_TYPE_ARRAY (1).
After PR #539 fixed the gateway to include these maps in program images, the
node started receiving them but rejecting them on install.

Global variable maps are functionally identical to single-entry arrays — they
carry initial data from ELF sections.  Accept map_type 0 alongside type 1.

Changes:
- Add BPF_MAP_TYPE_GLOBAL_VARIABLE constant (0) in map_storage.rs
- Update alidate_map_defs to accept both map_type 0 and 1
- Add tests: 	est_validate_accepts_global_variable_map_type_0 (T-N617),
  	est_validate_rejects_unsupported_map_type (T-N618)
- Update
ode-requirements.md (ND-0606): document accepted map types
- Update
ode-design.md (§9.2, §9.3): document map_type 0 handling
- Update
ode-validation.md: add T-N617, T-N618 and traceability entries

Fixes #544

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* address review: fix test ID collision, wording, and update coverage

- Renumber new test IDs to T-N619/T-N620 to avoid collision with
  existing T-N617/T-N618 labels on `apply_initial_data` tests
- Reword ND-0606 description: 'stored identically as array maps'
  instead of 'single-entry arrays' since BPF_MAP_TYPE_ARRAY supports
  multi-entry maps
- Add `update()` call to `test_validate_accepts_global_variable_map_type_0`
  so it covers both lookup and write paths per T-N619 procedure
- Update traceability tables in node-validation.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* address review: log map_type in error path, use constant in test

- Log unsupported map_type value and index via log::warn! before
  returning the static error, aiding field debugging without
  heap-allocating in the error path (embedded... (continued)

38 of 40 new or added lines in 1 file covered. (95.0%)

23084 of 26924 relevant lines covered (85.74%)

157.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.07
0.96% crates/sonde-node/src/map_storage.rs
Jobs
ID Job ID Ran Files Coverage
1 23688592383.1 28 Mar 2026 03:47PM UTC 77
85.74
GitHub Action Run
Source Files on build 23688592383
  • Tree
  • List 77
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23688592383
  • c9653f28 on github
  • Prev Build on main (#23688588343)
  • Next Build on main (#23688694961)
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

© 2026 Coveralls, Inc