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

[email protected] #3513

Merged
merged 6 commits into from
Jan 2, 2025
Merged

[email protected] #3513

merged 6 commits into from
Jan 2, 2025

Conversation

c8ef
Copy link
Contributor

@c8ef c8ef commented Jan 1, 2025

@bazel-io skip_check unstable_url

@bazel-io
Copy link
Member

bazel-io commented Jan 1, 2025

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (jsoncons) have been updated in this PR. Please review the changes.

@c8ef

This comment was marked as duplicate.

1 similar comment
@c8ef
Copy link
Contributor Author

c8ef commented Jan 1, 2025

@bazel-io skip_check unstable_url

@bazel-io bazel-io added the skip-url-stability-check Skip the URL stability check for the PR label Jan 1, 2025
fmeum
fmeum previously approved these changes Jan 1, 2025
modules/jsoncons/1.0.0/presubmit.yml Outdated Show resolved Hide resolved
@bazel-io bazel-io dismissed fmeum’s stale review January 2, 2025 01:23

Require module maintainers' approval for newly pushed changes.

@c8ef c8ef requested a review from fmeum January 2, 2025 01:25
@fmeum fmeum added the presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval label Jan 2, 2025
fmeum
fmeum previously approved these changes Jan 2, 2025
modules/jsoncons/1.0.0/presubmit.yml Show resolved Hide resolved
@bazel-io bazel-io dismissed fmeum’s stale review January 2, 2025 08:34

Require module maintainers' approval for newly pushed changes.

@fmeum
Copy link
Contributor

fmeum commented Jan 2, 2025

Enabling header processing uncovered some issues. Does this need a newer C++ standard? You can add --cxxopt=-std=c++14 to the build_flags.

@c8ef
Copy link
Contributor Author

c8ef commented Jan 2, 2025

I don't think enabling header processing for jsoncons is appropriate. It requires each header to be self-contained (ref: https://github.com/google/re2/blob/6dcd83d60f7944926bfd308cc13979fc53dd69ca/.bazelrc#L7). However, using size_t for jsoncons header is not.

@c8ef c8ef requested a review from fmeum January 2, 2025 13:07
@fmeum
Copy link
Contributor

fmeum commented Jan 2, 2025

I don't think enabling header processing for jsoncons is appropriate. It requires each header to be self-contained (ref: https://github.com/google/re2/blob/6dcd83d60f7944926bfd308cc13979fc53dd69ca/.bazelrc#L7). However, using size_t for jsoncons header is not.

Does jsoncons require the use to manually include the extension header? What's the significance of size_t?

But yes, if the module has headers that intentionally aren't self-contained, we can revert the commit that enabled header processing. This is just pretty unusual, which is why I didn't expect it to result in false positives.

@c8ef
Copy link
Contributor Author

c8ef commented Jan 2, 2025

Most CI failures stem from this: https://github.com/danielaparker/jsoncons/blob/master/include/jsoncons/ser_context.hpp. It uses size_t without including any other headers. It appears that it should not be included directly.

@fmeum
Copy link
Contributor

fmeum commented Jan 2, 2025

To be honest, that does sound like a real bug in jsoncons, it should just include cstddef.h for this. We can merge this as is, but could you file a bug with upstream?

@fmeum fmeum enabled auto-merge (squash) January 2, 2025 16:08
@fmeum fmeum merged commit fe04071 into bazelbuild:main Jan 2, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval skip-url-stability-check Skip the URL stability check for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants