Skip to content

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

Closed
anonrig wants to merge 1 commit into
nodejs:mainfrom
anonrig:yagiz/update-ada
Closed

[do not land] update ada to v3.0-pre#56218
anonrig wants to merge 1 commit into
nodejs:mainfrom
anonrig:yagiz/update-ada

Conversation

@anonrig

@anonriganonrig commented Dec 10, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator

Review requested:

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

@nodejs-github-botnodejs-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
Copy Markdown
Collaborator

@anonrig

Copy link
Copy Markdown
MemberAuthor

@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
Copy Markdown
MemberAuthor

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:

@anonriganonrig 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
Copy Markdown
MemberAuthor

Note: All other failures are from unexpected passes from WPT

@bahamat

Copy link
Copy Markdown

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
Copy Markdown
Collaborator

@codecov

codecovBot commented Dec 13, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.54%. Comparing base (e698bd0) to head (e9794ec).
Report is 234 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
Copy Markdown
Collaborator

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blockedPRs that are blocked by other issues or PRs.build-agendadependenciesPull requests that update a dependency file.macosIssues and PRs related to the macOS platform / OSX.needs-ciPRs that need a full CI run.smartosIssues and PRs related to the SmartOS platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@anonrig@nodejs-github-bot@bahamat