Repository navigation
Added Tests for default values being null - #5767
Merged
Merged
Conversation
|
|
Pull request dashboard statusMerged · refreshed 2026-10-26 21:01 UTC Status above doesn't look right?
|
herin049
reviewed
Oct 14, 2026
herin049
approved these changes
Oct 16, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The test-only changes match existing behavior, and static review identified no blocking issues.
0 open findings
What changed in this PR
Adds regression coverage for default-value handling in the JSON code generator without changing production behavior.
Changes:
- Covers additional scalar defaults and
"None"fallbacks for unmapped and out-of-range types. - Checks mapping consistency and validates generated default literals against their Python types.
| File | Description |
|---|---|
codegen/opentelemetry-codegen-json/tests/test_types.py |
Expands default-value tests and simplifies descriptor references. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
herin049
enabled auto-merge
October 26, 2026 20:36
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 26, 2026
Merged
via the queue into
open-telemetry:main
with commit Oct 26, 2026
087ab86
580 of 581 checks passed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a test for default values being out of range and being null as a regression test
Type of change
How Has This Been Tested?
Issue and Doubt
Is the get_default_value intentionally defaulted to None, if that's not the case we can raise a Index or a ValueError and change the test
I wanted to raise a issue but i just asked it here
Does This PR Require a Contrib Repo Change?
Checklist: