-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
ci: Test jaeger-v2 as all-in-one in CI #4890
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 2 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
Marked this WIP because it fails to start jaeger-v2 due to what looks like the random ordering of extensions startup sequence, whereas jaegerquery extension can only run after jaegerstorage |
@@ -51,6 +51,10 @@ jobs: | |||
if: github.ref_name != 'main' | |||
run: bash scripts/build-all-in-one-image.sh pr-only | |||
|
|||
- name: Build and test jaeger-v2 as all-in-one | |||
if: github.ref_name != 'main' | |||
run: BINARY=jaeger-v2 bash scripts/build-all-in-one-image.sh pr-only |
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.
this only added 39s to the total run, I think it's worth keeping in this workflow for now
scripts/build-all-in-one-image.sh
Outdated
@@ -35,35 +43,40 @@ run_integration_test() { | |||
docker kill "$CID" | |||
} | |||
|
|||
if [ "$mode" = "pr-only" ]; then | |||
if [ -n "$pull_request" ]; then |
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 suggest something like the following to help with readability:
is_pull_request=true
if [ "$is_pull_request" = true ]; then
if [ "$is_pull_request" = false ]; then
@@ -35,6 +38,11 @@ func newServer(config *Config, otel component.TelemetrySettings) *server { | |||
} | |||
} | |||
|
|||
// Dependencies implements extension.Dependent to ensure this always starts after jaegerstorage extension. |
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.
👍🏼
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@@ -61,7 +61,7 @@ require ( | |||
go.opentelemetry.io/collector/exporter/loggingexporter v0.88.0 | |||
go.opentelemetry.io/collector/exporter/otlpexporter v0.88.0 | |||
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.88.0 | |||
go.opentelemetry.io/collector/extension v0.88.0 | |||
go.opentelemetry.io/collector/extension v0.88.1-0.20231102040825-2e44da36e2c6 |
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.
pinned to main branch for now, it will get updates once OTEL does a new release, which should happen before our next release in Dec
Which problem is this PR solving?
Description of the changes
cmd/jaeger-v2/Dockerfile
scripts/build-all-in-one-image.sh
to allow runningjaeger-v2
instead ofall-in-one
jaeger-v2
from .github/workflows/ci-all-in-one-build.ymlHow was this change tested?