Skip to content

[Feature/CI-CD]: Add core API tests #198

Description

@LorenzoTettamanti

Is your feature request related to a problem?

  • Yes

    Problem Description:

    The entire projects needs tests to ensure stability and compatibility accross different kernels

    Solution:

    Add tests in core crates covering:

    • Core tests (load buffer_types, load bpf programs,OTEL tests)
    • Identity service tests (networking,blocklist)
    • Metrics service tests (memory metrics tests,cpu_tests,network metrics tests)
    • Agent/CLI tests
    • Stability tests: ensures that the programs are compatible accross different kernels

Activity

  1. Daniele-Cangi commented on Sep 2, 2026

    @Daniele-Cangi
    Contributor

    Hi Lorenzo,

    I reviewed #198 together with the current cortexbrain-common feature layout and
    would like to contribute a small, hermetic first slice.

    Proposed scope:

    The PR would reference #198 and #158 without attempting to close either umbrella
    issue.

    Please confirm that this focused scope is aligned with the current direction.

  2. LorenzoTettamanti commented on Sep 2, 2026

    @LorenzoTettamanti
    MemberAuthor

    Hi @Daniele-Cangi, tests are absolutely welcomed! The first three points are great to implement. I'm finishing the service cache feature in #216 so it would be great not to touch the metadata and service-cache/service-discovery files. Please make sure to send the PR to the 0.1.5 branch. In case you have any question you can ping me here or you can send me an email!

  3. Daniele-Cangi commented on Sep 2, 2026

    @Daniele-Cangi
    Contributor

    perfect I'll start working on it right away!

  4. added a commit that references this issue on Sep 2, 2026
  5. added a commit that references this issue on Sep 10, 2026
  6. LorenzoTettamanti commented on Sep 10, 2026

    @LorenzoTettamanti
    MemberAuthor

    Hi @Daniele-Cangi , I've merged PR #216 in case you want to continue working on this issue! Right now I'm pushing the cortexbrain-common@0.1.4 to the crates.io registries

  7. siddh34 commented on Sep 14, 2026

    @siddh34
    Collaborator

    Hey guys picking up with CLI tests. I will submit my PR next week!

  8. 18 remaining items

  9. added 12 commits that reference this issue on Sep 28, 2026
  10. Daniele-Cangi commented on Oct 2, 2026

    @Daniele-Cangi
    Contributor

    Hi Lorenzo, following #217 and your invitation to continue on #198, I'm taking a second small test-only slice against 0.1.5: hermetic contract tests for cortexbrain-common OpenTelemetry metric recording using synthetic events and an in-memory reader. I'll keep Docker, Kubernetes, root, loaded eBPF programs, and metadata/service-discovery changes out of scope. I also noticed the record_enter_mem_alloc documentation disagrees with its events_total increment; I'll surface that in the PR rather than silently changing behavior. Please let me know if you prefer a different boundary.

  11. added a commit that references this issue on Oct 3, 2026
  12. LorenzoTettamanti commented on Oct 3, 2026

    @LorenzoTettamanti
    MemberAuthor

    @Daniele-Cangi everything is working fine! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CI/CDci/cd workflowsenhancementNew feature or requesthelp wantedExtra attention is neededrustPull requests that update Rust codev0.1.5Version 0.1.5 issues tracker

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions