-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MAINTAINER] Add devcontainer (#3123)
- Loading branch information
Showing
6 changed files
with
149 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM otel/cpp_format_tools | ||
|
||
ARG GRPC_VERSION=v1.55.0 | ||
ARG PROTOBUF_VERSION=23.4 | ||
ARG ABSEIL_CPP_VERSION=20240116.1 | ||
|
||
ENV PROTOBUF_VERSION=${PROTOBUF_VERSION} | ||
ENV ABSEIL_CPP_VERSION=${ABSEIL_CPP_VERSION} | ||
|
||
COPY ci /opt/ci | ||
|
||
RUN apt update && apt install -y wget \ | ||
ninja-build \ | ||
libcurl4-openssl-dev \ | ||
markdownlint | ||
|
||
RUN cd /opt/ci && bash setup_cmake.sh | ||
RUN cd /opt/ci && bash setup_ci_environment.sh | ||
RUN cd /opt && bash ci/setup_googletest.sh \ | ||
&& bash ci/setup_grpc.sh -r ${GRPC_VERSION} | ||
|
||
ADD https://github.com/bazelbuild/bazelisk/releases/download/v1.22.1/bazelisk-linux-amd64 /usr/local/bin | ||
|
||
RUN git config --global core.autocrlf input \ | ||
&& chmod +x /usr/local/bin/bazelisk-linux-amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.162.0/containers/javascript-node | ||
{ | ||
"name": "opentelemetry-cpp", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "Dockerfile.dev", | ||
"args": { | ||
"GRPC_VERSION": "v1.55.0", | ||
"PROTOBUF_VERSION": "23.4", | ||
"ABSEIL_CPP_VERSION":"20240116.1" | ||
} | ||
}, | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/sh" | ||
}, | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-azuretools.vscode-docker", | ||
"ms-vscode.cpptools-extension-pack" | ||
], | ||
|
||
"remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
465cb4a
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.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp api Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_SpinLockThrashing/1/process_time/real_time
0.19755893949440334
ms/iter0.09870270024175229
ms/iter2.00
BM_NaiveSpinLockThrashing/2/process_time/real_time
1.393269651975387
ms/iter0.20091704243233122
ms/iter6.93
BM_NaiveSpinLockThrashing/4/process_time/real_time
2.581954002380371
ms/iter0.7088751001742923
ms/iter3.64
BM_ThreadYieldSpinLockThrashing/1/process_time/real_time
16.385998044695175
ms/iter7.966167786542107
ms/iter2.06
This comment was automatically generated by workflow using github-action-benchmark.