Skip to content

Bump fmtlib and spdlog#20066

Merged
mattklein123 merged 15 commits intoenvoyproxy:mainfrom
kinvolk:krnowak/fmtlib-bump
Mar 14, 2022
Merged

Bump fmtlib and spdlog#20066
mattklein123 merged 15 commits intoenvoyproxy:mainfrom
kinvolk:krnowak/fmtlib-bump

Conversation

@krnowak
Copy link
Copy Markdown
Contributor

@krnowak krnowak commented Feb 21, 2022

Commit Message:
This updates fmtlib to 8.1.1 and spdlog to 1.9.2.

Additional Description:
Looks like fmtlib isn't formatting enumeration types as ints any more, so I'm explicitly casting them to ints. Without that, the build fails.

Risk Level:
Medium, logging library update.

Testing:
In CI only - I couldn't build the whole project as it takes too much space…

Docs Changes:
No.

Release Notes:
Not sure if dependency update is release-notes-worthy.

Platform Specific Features:
None.

Fix #18322 Fix #19439

Signed-off-by: Krzesimir Nowak <[email protected]>
Signed-off-by: Krzesimir Nowak <[email protected]>
@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label Feb 21, 2022
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @mattklein123

🐱

Caused by: #20066 was opened by krnowak.

see: more, trace.

Signed-off-by: Krzesimir Nowak <[email protected]>
Signed-off-by: Krzesimir Nowak <[email protected]>
The connection parameter was actually needed here.

Signed-off-by: Krzesimir Nowak <[email protected]>
Signed-off-by: Krzesimir Nowak <[email protected]>
Signed-off-by: Krzesimir Nowak <[email protected]>
It looks like that after the update, non-fractional doubles are
printed like integers (so they won't have trailing ".0" printed),
which broke a test. Not sure if this trailing dot-zero is important,
but try to keep it.

Signed-off-by: Krzesimir Nowak <[email protected]>
The updated fmtlib doesn't print them anymore.

Signed-off-by: Krzesimir Nowak <[email protected]>
This reverts commit 28ffc37.

Signed-off-by: Krzesimir Nowak <[email protected]>
@krnowak krnowak force-pushed the krnowak/fmtlib-bump branch from 80102b1 to fd3429a Compare February 22, 2022 10:49
Signed-off-by: Krzesimir Nowak <[email protected]>
Signed-off-by: Krzesimir Nowak <[email protected]>
@krnowak
Copy link
Copy Markdown
Contributor Author

krnowak commented Feb 24, 2022

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #20066 (comment) was created by @krnowak.

see: more, trace.

@krnowak
Copy link
Copy Markdown
Contributor Author

krnowak commented Feb 24, 2022

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #20066 (comment) was created by @krnowak.

see: more, trace.

@krnowak
Copy link
Copy Markdown
Contributor Author

krnowak commented Feb 25, 2022

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #20066 (comment) was created by @krnowak.

see: more, trace.

@krnowak
Copy link
Copy Markdown
Contributor Author

krnowak commented Feb 25, 2022

Looks like it's ready for review. Question though: static_cast<int> or enumToInt? The latter will turn an enumeration value to unsigned integer, so for cases where enumeration has negative values, the logs will show numbers around UINT32_MAX. That's why I went with static_cast<int>.

@moderation
Copy link
Copy Markdown
Contributor

moderation commented Mar 1, 2022

Thanks for updating these! LGTM for deps.
@envoyproxy/senior-maintainers for @krnowak code question

/lgtm deps

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label Mar 1, 2022
@krnowak
Copy link
Copy Markdown
Contributor Author

krnowak commented Mar 1, 2022

Just remembered - another thing I updated was a test for text formatting of stats - the updated fmtlib does not print the .0 any more. Not sure if there's a way of telling fmtlib to use precision 1 or more, so it always would be showing at least one digit after the decimal point.

@moderation
Copy link
Copy Markdown
Contributor

Just remembered - another thing I updated was a test for text formatting of stats - the updated fmtlib does not print the .0 any more. Not sure if there's a way of telling fmtlib to use precision 1 or more, so it always would be showing at least one digit after the decimal point.

Does this change make it a breaking change and require a changelog entry? /cc @htuch, @phlax . Would be good to land this from a dependency point of view

@htuch
Copy link
Copy Markdown
Member

htuch commented Mar 14, 2022

My $0.02 is that this isn't a breaking change, since any parsing code should be robust to this difference when interpreting a float. I can imagine contrived corner cases when not, but the likelihood of breakage seems low.

@phlax
Copy link
Copy Markdown
Member

phlax commented Mar 14, 2022

+1 re parsing this value as float/int

@repokitteh-read-only repokitteh-read-only bot added deps Approval required for changes to Envoy's external dependencies and removed waiting labels Mar 14, 2022
@krnowak
Copy link
Copy Markdown
Contributor Author

krnowak commented Mar 14, 2022

Merged the main branch to see if it still builds. But I see that the bot reverted some decisions (removed waiting and readded deps), sorry about that.

Copy link
Copy Markdown
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

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

/lgtm deps pending CI

@repokitteh-read-only
Copy link
Copy Markdown

please specify a single label can be specified

🐱

Caused by: a #20066 (review) was submitted by @phlax.

see: more, trace.

@phlax
Copy link
Copy Markdown
Member

phlax commented Mar 14, 2022

/lgtm deps

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label Mar 14, 2022
@phlax
Copy link
Copy Markdown
Member

phlax commented Mar 14, 2022

@krnowak you can add the waiting label at any time with /wait

Signed-off-by: Krzesimir Nowak <[email protected]>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 enabled auto-merge (squash) March 14, 2022 18:04
@mattklein123
Copy link
Copy Markdown
Member

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #20066 (comment) was created by @mattklein123.

see: more, trace.

@mattklein123 mattklein123 merged commit 5c4d4bd into envoyproxy:main Mar 14, 2022
@krnowak krnowak deleted the krnowak/fmtlib-bump branch March 14, 2022 21:56
ravenblackx pushed a commit to ravenblackx/envoy that referenced this pull request Jun 8, 2022
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.

Newer release available com_github_fmtlib_fmt: 8.1.1 (current: 7.0.3) Newer release available com_github_gabime_spdlog: v1.9.2

5 participants