Skip to content

Conversation

@Akshay2191
Copy link
Contributor

@Akshay2191 Akshay2191 commented Jan 19, 2026

Currently, the Agent fails to start in AWS Fargate environments. This occurs because Fargate abstracts the host filesystem, causing traditional container ID retrieval methods—which rely on specific /proc/self/mountinfo formats or the presence of standard Docker files—to return empty values. Without a valid Container ID, the Agent cannot unique identify itself to the NGINX One console and terminates.

As a fix, the Agent now detects the Fargate runtime and utilizes the AWS Metadata Endpoint to reliably retrieve the container ID.

@Akshay2191 Akshay2191 requested a review from a team as a code owner January 19, 2026 14:57
@github-actions github-actions bot added bug Something isn't working chore Pull requests for routine tasks labels Jan 19, 2026
@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.06%. Comparing base (5df1f54) to head (d02a2ac).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
pkg/host/info.go 66.66% 11 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1493      +/-   ##
==========================================
- Coverage   85.10%   85.06%   -0.04%     
==========================================
  Files         102      102              
  Lines       12992    13255     +263     
==========================================
+ Hits        11057    11276     +219     
- Misses       1448     1485      +37     
- Partials      487      494       +7     
Files with missing lines Coverage Δ
pkg/host/info.go 76.11% <66.66%> (-3.03%) ⬇️

... and 20 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d95d70...d02a2ac. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

bug Something isn't working chore Pull requests for routine tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants