Add missing upstream string formatters
%UPSTREAM_{PEER,LOCAL}_{URI,DNS,IP}_SAN% were not implemented; add them. Given that we're not too far from when v1.30 was cut, would it be possible to backport this to 1.30?
Given that we're not too far from when v1.22 was cut, would it be possible to backport this to 1.30?
Do you want to backport to v1.30? If so, it is probably possible, and will require a subsequent PR to that release branch.
Do you want to backport to v1.30? If so, it is probably possible, and will require a subsequent PR to that release branch.
Sure, I'm happy to submit the 1.30 patch
Thank you for this contribution! The change in source/common/formatter/stream_info_formatter.cc seems pretty large compared to what this PR should achieve. It seems to be mainly due to a format related change. Can you make sure that the right formatting tools are used? /wait
@adisuissa I'm running ./tools/local_fix_format.sh; is there another tool I should be using?
Quick check why CI failed, and I see:
[ RUN ] SubstitutionFormatterTest.streamInfoFormatterWithSsl
test/common/formatter/substitution_formatter_test.cc:1861: Failure
Expected equality of these values:
"san"
Which is: 0x22d019
upstream_format.formatWithContext({}, stream_info)
Which is: (nullopt)
Can you locally run
bazel test //test/common/formatter:substitution_formatter_test
It should fail in your local env as well and should be straightforward to debug why it happens.
Looks like a flake in the udp tests?
/retest envoy-presubmit /retest envoy-presubmit (Checks (Linux x64) Linux x64 compile_time_options)
@cpakulski @adisuissa thanks for your patience on this review; still learning the ins and outs of the devtools. Formatting and tests should be good to go now!
/wait
@envoyproxy/senior-maintainers assignee is @zuercher
@keithmattix I think you should also update changelogs/current.yaml.
Does it need to be something different than what I have here?
Ah, sorry. I missed it. All good. Thanks!
Sorry this needs a merge. I'll try to keep a better eye on it and get it merged.
No worries @zuercher - it should be caught up now
/retest envoy-presubmit /retest envoy-presubmit (Linux arm64 Build and test)
FYI we found a way around this and don't need to backport