Skip to content
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

Add devcontainer #3123

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Add devcontainer #3123

wants to merge 12 commits into from

Conversation

esigo
Copy link
Member

@esigo esigo commented Nov 5, 2024

Fixes #3118 (issue)

Changes

bazelisk-linux-amd64 test --copt=-DENABLE_LOGS_PREVIEW --test_output=errors --cache_test_results=no --copt=-DENABLE_TEST //exporters/otlp/...

bash ci/do_ci.sh cmake.exporter.otprotocol.test

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@esigo esigo requested a review from a team as a code owner November 5, 2024 18:43
Copy link

netlify bot commented Nov 5, 2024

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit a842a0b
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/6763582affb92900089960c0

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.13%. Comparing base (92bf8da) to head (a842a0b).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3123      +/-   ##
==========================================
- Coverage   88.16%   88.13%   -0.03%     
==========================================
  Files         198      198              
  Lines        6224     6224              
==========================================
- Hits         5487     5485       -2     
- Misses        737      739       +2     

see 1 file with indirect coverage changes

Before getting started, ensure you have the following installed:

* **Docker**: DevContainers require Docker for containerization.
* **Visual Studio Code (VSCode)** with the **Remote - Containers** extension.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't used DevContainers before, but I imagine it would be possible to do this without relying on VS Code ?

Please correct me if I'm wrong, but I imagine we could simply exec into a running docker container as well and run CI tests from there ?

I would prefer if we not put in instructions that are IDE specific.

./ci/do_ci.sh {TARGET}` where the targets are:
CI tests can be run inside
[devcontainer](../CONTRIBUTING.md#devcontainer-setup-for-project)
by invoking the script
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also add a Dockerfile that creates a container with the current codebase and required dependencies to run the CI tests within that container ?


FROM otel/cpp_format_tools

ARG GRPC_VERSION=v1.55.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use the same versions in third_party_release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instructions for running CI tests locally via Docker do not work
5 participants