-
Notifications
You must be signed in to change notification settings - Fork 423
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
base: main
Are you sure you want to change the base?
Add devcontainer #3123
Conversation
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3123 +/- ##
==========================================
+ Coverage 87.12% 87.85% +0.73%
==========================================
Files 200 195 -5
Lines 6109 6138 +29
==========================================
+ Hits 5322 5392 +70
+ Misses 787 746 -41 |
Before getting started, ensure you have the following installed: | ||
|
||
* **Docker**: DevContainers require Docker for containerization. | ||
* **Visual Studio Code (VSCode)** with the **Remote - Containers** 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.
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 |
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.
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 ?
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