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

newrelic / infrastructure-agent / 30816131381
53%

Build:
DEFAULT BRANCH: master
Ran 03 Aug 2026 01:07PM UTC
Jobs 1
Files 341
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

03 Aug 2026 01:02PM UTC coverage: 53.364% (-0.3%) from 53.703%
30816131381

push

github

web-flow
feat(oci): add OCI tag support to match AWS tags (Phase 1 + Phase 2) (#2295)

* feat(oci): add OCI tag support to match AWS tags (Phase 1 + Phase 2)

Populates OCI cloud attributes as inventory, per the CDD "OCI Tag Support
to Match AWS Tags in New Relic Infrastructure" (Confluence 5846532426):

Phase 1 (IMDS + static values, no new dependencies):
- cloud.resource_id, oci.compute.instanceId, oci.compute.faultDomain,
  oci.network.privateIp, oci.network.privateDnsName, host.arch,
  cloud.provider, cloud.platform
- Freeform tags collected from IMDS, filtered via new oci_tags_exclude
  config option, flattened into label.* inventory attributes

Phase 2 (OCI SDK + instance principal auth, github.com/oracle/oci-go-sdk/v65):
- oci.network.vcnId, oci.network.subnetId, oci.compute.lifecycleState,
  oci.compute.virtualizationType, oci.compute.dedicatedVmHostId
- Best-effort only: failures (e.g. missing IAM policy) are logged and
  leave the attribute empty, never block agent startup

Extends the cloud.Harvester interface with the new getters (stubbed as
ErrMethodNotImplemented on AWS/Azure/GCP/Alibaba), and adds MarshalJSON
on the platform-specific HostInfo{Linux,Darwin,Windows} structs (not on
any embedded type, to avoid Go's method-promotion overriding marshaling
of the parent struct) to flatten freeform tags into label.* attributes.

Verified end-to-end against a real OCI compute instance, including both
the IAM-policy-missing (graceful degradation) and IAM-policy-present
(full Phase 2 population) paths.

vendor/ is intentionally not synced in this commit - go.mod/go.sum were
updated by `go build -mod=mod` with real checksums; vendor/modules.txt
needs `go mod vendor` from an environment with network+tooling access
before merge.

* fix: resolve golangci-lint findings from PR feedback

Addresses the linter-linux/macos/windows and licenses-check CI failures on
PR #2295:

- Regenerate THIRD_PARTY_NOTICES.md for the new oci-go-sdk/v65 dependency
- wrapcheck: wra... (continued)

190 of 539 new or added lines in 12 files covered. (35.25%)

2 existing lines in 1 file now uncovered.

14807 of 27747 relevant lines covered (53.36%)

18.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
90
42.76
-18.17% pkg/sysinfo/cloud/cloud.go
73
46.32
pkg/sysinfo/cloud/cloud_oci_api.go
44
32.61
0.98% pkg/sysinfo/cloud/cloud_oci.go
27
7.2
-1.98% pkg/sysinfo/cloud/cloud_alibaba.go
27
55.92
-8.21% pkg/sysinfo/cloud/cloud_aws.go
27
9.45
-2.55% pkg/sysinfo/cloud/cloud_azure.go
27
26.4
-7.27% pkg/sysinfo/cloud/cloud_gcp.go
18
77.25
11.46% internal/plugins/common/cloud.go
8
2.63
-0.15% internal/plugins/linux/hostinfo.go
6
72.73
internal/plugins/common/labels.go
2
0.0
0.0% pkg/plugins/plugins_linux.go

Coverage Regressions

Lines Coverage ∆ File
2
72.08
-0.21% pkg/config/config.go
Jobs
ID Job ID Ran Files Coverage
1 run-linux - 30816131381.1 03 Aug 2026 01:07PM UTC 341
53.36
GitHub Action Run
Source Files on build 30816131381
  • Tree
  • List 341
  • Changed 14
  • Source Changed 11
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30816131381
  • d959e971 on github
  • Prev Build on master (#30614640675)
  • Next Build on master (#31112303421)
  • 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