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

Port and AllocatedPortMapping msgpack omitempty #23980

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

gulducat
Copy link
Member

to optimize log entries with empty fields, which TestPlanNormalize checks.

split out from #23956 so this can be backported.

@gulducat gulducat added theme/networking backport/ent/1.6.x+ent Changes are backported to 1.6.x+ent backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent backport/1.8.x backport to 1.8.x release line labels Sep 17, 2024
"boom": &Port{
Label: "boom_port",
},
"boom": []string{"boom_port"},
Copy link
Member Author

@gulducat gulducat Sep 17, 2024

Choose a reason for hiding this comment

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

these diff tests are for task.config, which doesn't actually know what a Port is. for the docker driver, for example, ports is a list of strings (which arguably is already tested with bam above here), or a MapStrInt port_map (baz).

maybe Port here made sense at some point in the past, but doesn't seem right to me now.

to optimize log entries with empty fields,
which TestPlanNormalize checks
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

@gulducat gulducat merged commit 603a747 into main Sep 17, 2024
19 checks passed
@gulducat gulducat deleted the port_struct_omitempty branch September 17, 2024 19:21
@gulducat gulducat added backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent and removed backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/ent/1.6.x+ent Changes are backported to 1.6.x+ent backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent backport/1.8.x backport to 1.8.x release line theme/networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants