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

[do not land] update ada to v3.0-pre #56218

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

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Dec 10, 2024

DO NOT LAND.

Before releasing a new version (soon), let's see if we broke anything with the C++20 upgrade.

cc @lemire @nodejs/url

Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1655/

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/security-wg
  • @nodejs/url

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Dec 10, 2024
@nodejs-github-bot
Copy link
Collaborator

@anonrig
Copy link
Member Author

anonrig commented Dec 10, 2024

@nodejs/build the current state of macOS (it is too outdated and doesn't have all C++20 features) is going to block having this upgrade, which is OK, but after landing this PR, I'm planning on opening a PR for URLPattern. Would someone share a status update? All that work for URLPattern would be for waste if we can't update our infra.

18:43:13 ../deps/ada/ada.h:977:12: error: no member named 'bit_cast' in namespace 'std'
18:43:13       std::bit_cast<uint16_t>(static_cast<uint16_t>(0x7830));
18:43:13       ~~~~~^
18:43:13 ../deps/ada/ada.h:977:21: error: unexpected type name 'uint16_t': expected expression
18:43:13       std::bit_cast<uint16_t>(static_cast<uint16_t>(0x7830));
18:43:13                     ^
18:43:13 ../deps/ada/ada.h:973:16: error: no return statement in constexpr function
18:43:13 constexpr bool has_hex_prefix_unsafe(std::string_view input) {
18:43:13                ^
18:43:13 ../deps/ada/ada.h:989:16: error: no return statement in constexpr function
18:43:13 constexpr bool has_hex_prefix(std::string_view input) {
18:43:13                ^
18:43:13   cc -o /Users/iojs/build/workspace/node-test-commit-osx-

@anonrig
Copy link
Member Author

anonrig commented Dec 10, 2024

cc @nodejs/platform-smartos smartOS has missing implementation for std::bit_cast. This is blocking updating Ada in the future.

18:45:57 ../deps/ada/ada.h:977:12: error: 'bit_cast' is not a member of 'std'; did you mean 'bad_cast'?
18:45:57   977 |       std::bit_cast<uint16_t>(static_cast<uint16_t>(0x7830));
18:45:57       |            ^~~~~~~~
18:45:57       |            bad_cast
18:45:57 ../deps/ada/ada.h:977:29: error: expected primary-expression before '>' token
18:45:57   977 |       std::bit_cast<uint16_t>(static_cast<uint16_t>(0x7830));
18:45:57       |                             ^
18:45:57 In file included from ../deps/ada/ada.cpp:3:

@anonrig anonrig added macos Issues and PRs related to the macOS platform / OSX. smartos Issues and PRs related to the SmartOS platform. blocked PRs that are blocked by other issues or PRs. labels Dec 10, 2024
@anonrig
Copy link
Member Author

anonrig commented Dec 11, 2024

Note: All other failures are from unexpected passes from WPT

@bahamat
Copy link

bahamat commented Dec 11, 2024

cc @nodejs/platform-smartos smartOS has missing implementation for std::bit_cast. This is blocking updating Ada in the future.

As I understand it, gcc11 is the requirement for this. I've proposed we move to building using the 22.4.0 image which has gcc12.

@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.54%. Comparing base (e698bd0) to head (e9794ec).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56218      +/-   ##
==========================================
+ Coverage   88.53%   88.54%   +0.01%     
==========================================
  Files         657      657              
  Lines      190203   190203              
  Branches    36528    36524       -4     
==========================================
+ Hits       168402   168423      +21     
+ Misses      14987    14983       -4     
+ Partials     6814     6797      -17     

see 23 files with indirect coverage changes

@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked PRs that are blocked by other issues or PRs. build-agenda dependencies Pull requests that update a dependency file. macos Issues and PRs related to the macOS platform / OSX. needs-ci PRs that need a full CI run. smartos Issues and PRs related to the SmartOS platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants