-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[fix] Propagate environment variables to binary from integration tests #7112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7112 +/- ##
==========================================
- Coverage 96.13% 96.09% -0.04%
==========================================
Files 358 358
Lines 21585 21585
==========================================
- Hits 20750 20742 -8
- Misses 629 635 +6
- Partials 206 208 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -89,7 +89,7 @@ func (s *E2EStorageIntegration) e2eInitialize(t *testing.T, storage string) { | |||
// since the binary config file jaeger_query's ui.config_file points to | |||
// "./cmd/jaeger/config-ui.json" | |||
Dir: "../../../..", | |||
Env: envVars, | |||
Env: append(os.Environ(), envVars...), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure we want such a blanket copy, I would rather use some kind of whitelist of env vars that should be propagated, and have that list controlled by the individual tests (i.e. empty by default)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yurishkuro Addressed. Let me know what you think
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
PropagateEnvVars: []string{ | ||
"REMOTE_STORAGE_ENDPOINT", | ||
"ARCHIVE_REMOTE_STORAGE_ENDPOINT", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add a var for writer endpoint
endpoint: "${env:REMOTE_STORAGE_ENDPOINT:-localhost:17271}"
tls:
insecure: true
writer:
endpoint: 0.0.0.0:4316
tls:
insecure: true
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Which problem is this PR solving?
Description of the changes
How was this change tested?
go test
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test