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

restinio: fix build #375955

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

restinio: fix build #375955

wants to merge 1 commit into from

Conversation

xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Jan 22, 2025

Test builds fail with cmake configuration error:

string sub-command JSON failed parsing json string: * Line 1, Column 1

This is a silly regression from catch2_3 3.7.1 -> 3.8.0 bump 1.
Looks like the upstream doesn't hold catch2 correctly and overrides main
for this test so catch2 test discovery machinery can't work.

Upstream issue 2.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@tobim
Copy link
Contributor

tobim commented Jan 23, 2025

Could you open an issue for the catch2 regression and point to that?

Test builds fail with cmake configuration error:
> string sub-command JSON failed parsing json string: * Line 1, Column 1

This is a silly regression from catch2_3 3.7.1 -> 3.8.0 bump [1].
Looks like the upstream doesn't hold catch2 correctly and overrides `main`
for this test so catch2 test discovery machinery can't work.

Upstream issue [2].

[1]: https://www.github.com/NixOS/nixpkgs/pull/371311
[2]: https://www.github.com/Stiffstream/restinio/issues/230
@xokdvium
Copy link
Contributor Author

xokdvium commented Feb 2, 2025

On second thought, this isn't a catch2 problem at all, but rather a restinio tests bug. Since test.metaprogramming defines a custom main there's no way it can output the necessary info for the automatic test discovery. Previously it just happened to work because empty output was treated as an empty list of tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants