Skip to content

Release#131

Merged
jajeffries merged 47 commits intoreleasefrom
develop
Jun 20, 2025
Merged

Release#131
jajeffries merged 47 commits intoreleasefrom
develop

Conversation

@jajeffries
Copy link
Contributor

This pull request introduces several updates to improve backend functionality, streamline workflows, and enhance OpenTelemetry (OTLP) integration. Key changes include the addition of support for the SNMP discovery backend, updates to Go versions and dependencies, and refinements to OTLP endpoint configurations across multiple backends.

Backend Enhancements:

  • Added support for the snmp_discovery backend in the README.md and updated related documentation links. (README.md: [1] [2]
  • Integrated OTLP metrics endpoint configuration for deviceDiscoveryBackend and networkDiscoveryBackend, enabling dynamic setup based on the common.Otel.Grpc value. (agent/backend/devicediscovery/device_discovery.go: [1] [2] [3]; agent/backend/networkdiscovery/network_discovery.go: [4] [5] [6]
  • Refined OTLP receiver configuration for pktvisorBackend, parsing host and port from a unified HTTP URL. (agent/backend/pktvisor/pktvisor.go: agent/backend/pktvisor/pktvisor.goL305-R316)

Workflow and Configuration Updates:

  • Updated Go version to 1.24 across all workflows (develop.yaml, lint.yaml, release.yaml, tests.yaml) for compatibility and performance improvements. (develop.yaml: [1]; lint.yaml: [2]; release.yaml: [3]; tests.yaml: [4]
  • Upgraded golangci-lint-action to version v8.0.0 and adjusted linting configurations in .github/golangci.yaml for better code quality checks. (lint.yaml: [1]; .github/golangci.yaml: [2]

Codebase Simplification:

  • Removed redundant Cmd.Stdout and Cmd.Stderr references in CmdWrapper, replacing them with direct access to Stdout and Stderr. (agent/backend/cmd.go: agent/backend/cmd.goL84-R89)
  • Added a deps target in Makefile to ensure dependencies are tidied during builds. (Makefile: MakefileR40-R42)

Test Improvements:

  • Replaced if-else blocks with switch statements in backend tests for cleaner handling of HTTP methods. (agent/backend/devicediscovery/device_discovery_test.go: [1] [2]; agent/backend/networkdiscovery/network_discovery_test.go: [3] [4]; agent/backend/pktvisor/pktvisor_test.go: [5] [6]; agent/backend/otel/otel_test.go: [7] [8]

jajeffries and others added 30 commits April 8, 2025 16:07
feat: add openteletry metrics support for each backend
…refixes

fix: device-discovery remove scope site from prefix
…rtificate

feat: add skip tls to git config manager
fix: apply skipTLS to every git remote call
…dules group across 1 directory (#95)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

Go test coverage

STATUS ELAPSED PACKAGE COVER PASS FAIL SKIP
🟢 PASS 0.24s github.com/netboxlabs/orb-agent/agent 0.0% 0 0 0
🟢 PASS 0.24s github.com/netboxlabs/orb-agent/agent/backend 0.0% 0 0 0
🟢 PASS 4.03s github.com/netboxlabs/orb-agent/agent/backend/devicediscovery 76.5% 2 0 0
🟢 PASS 0.01s github.com/netboxlabs/orb-agent/agent/backend/mocks 0.0% 0 0 0
🟢 PASS 4.03s github.com/netboxlabs/orb-agent/agent/backend/networkdiscovery 76.3% 2 0 0
🟢 PASS 4.02s github.com/netboxlabs/orb-agent/agent/backend/otel 76.4% 2 0 0
🟢 PASS 3.02s github.com/netboxlabs/orb-agent/agent/backend/pktvisor 65.6% 2 0 0
🟢 PASS 4.03s github.com/netboxlabs/orb-agent/agent/backend/snmpdiscovery 77.7% 2 0 0
🟢 PASS 4.03s github.com/netboxlabs/orb-agent/agent/backend/worker 75.7% 2 0 0
🟢 PASS 1.02s github.com/netboxlabs/orb-agent/agent/config 100.0% 6 0 0
🟢 PASS 1.06s github.com/netboxlabs/orb-agent/agent/configmgr 49.2% 9 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/policies 100.0% 15 0 0
🟢 PASS 1.02s github.com/netboxlabs/orb-agent/agent/policymgr 70.3% 10 0 0
🟢 PASS 2.54s github.com/netboxlabs/orb-agent/agent/secretsmgr 45.7% 45 0 0
🟢 PASS 1.01s github.com/netboxlabs/orb-agent/agent/version 100.0% 1 0 0

Total coverage: 57.5%

@leoparente leoparente self-requested a review June 20, 2025 15:13
@jajeffries jajeffries marked this pull request as ready for review June 20, 2025 15:28
@jajeffries jajeffries merged commit 5317145 into release Jun 20, 2025
8 checks passed
@github-actions
Copy link

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@leoparente leoparente mentioned this pull request Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants